mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
139 lines
12 KiB
JSON
139 lines
12 KiB
JSON
{
|
|
"name": "artplayer-packages",
|
|
"type": "module",
|
|
"version": "6.1.0",
|
|
"private": true,
|
|
"packageManager": "yarn@1.22.22",
|
|
"description": "ArtPlayer.js is a modern and full featured HTML5 video player",
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"author": "Harvey Zhao <laozhaochaguan@gmail.com>",
|
|
"license": "MIT",
|
|
"homepage": "https://artplayer.org",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/zhw2590582/ArtPlayer.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/zhw2590582/ArtPlayer/issues"
|
|
},
|
|
"keywords": [
|
|
"video",
|
|
"player"
|
|
],
|
|
"engines": {
|
|
"node": "^20.19.0 || >=22.12.0"
|
|
},
|
|
"scripts": {
|
|
"bootstrap": "npx lerna link",
|
|
"postinstall": "npx lerna run prepare",
|
|
"build:ts": "node ./scripts/build-ts.js",
|
|
"build:llm": "node ./scripts/build-llm.js",
|
|
"build:docs": "node ./scripts/build-docs.js",
|
|
"build:i18n": "node ./scripts/build-i18n.js",
|
|
"build:test": "node ./scripts/build-test.js",
|
|
"test:playback": "node --test test/playback.test.js",
|
|
"test:ads": "node --test test/ads.test.js test/ads-lifecycle.test.js",
|
|
"trans:docs": "node ./scripts/trans-docs.js",
|
|
"create:plugin": "node ./scripts/plugin/create.js",
|
|
"test:dash-control": "node --test test/dash-control.test.js test/dash-contract.test.js test/dash-lifecycle.test.js test/dash-events.test.js",
|
|
"dev": "npx cross-env NODE_ENV=development node ./scripts/dev.js",
|
|
"build": "npx cross-env NODE_ENV=production node ./scripts/build.js",
|
|
"lint": "eslint \"packages/*/{src,public,types,package.json}\" \"scripts/*.{js,mjs}\" \"test/*\" \"docs/assets/ts/*\" \"types/*.d.ts\" \"playwright*.config.js\" --no-fix",
|
|
"build:all": "yarn ci:build && yarn lint",
|
|
"check:toolchain": "node scripts/check-toolchain.mjs",
|
|
"lint:fix": "eslint \"packages/*/{src,public,types,package.json}\" \"scripts/*.{js,mjs}\" \"test/*\" \"docs/assets/ts/*\" \"types/*.d.ts\" \"playwright*.config.js\" --fix",
|
|
"check:plan": "node refactor/scripts/plan.mjs --check",
|
|
"test:node": "yarn test:unit && node --test test/toolchain.test.js test/build-docs.test.js test/package-check.test.js test/declarations.test.js test/editor-types.test.js test/coverage.test.js test/performance-report.test.js test/media-gate.test.js test/ci-summary.test.js test/package-runtime.test.js test/library-build.test.js",
|
|
"test:baseline": "node --test refactor/scripts/*.test.mjs",
|
|
"ci:check": "yarn check:toolchain --strict && yarn check:commits --report && yarn check:impact --report && yarn check:ci && yarn test:contracts && yarn check:contracts --report && yarn check:plan && yarn lint && yarn check:types && yarn typecheck && yarn test",
|
|
"ci:build": "yarn build:types && yarn build all && yarn build:i18n && yarn build:ts && yarn build:docs && yarn test:imports",
|
|
"test:imports": "node --test test/esm.test.js test/i18n.test.js test/ssr.test.js test/asr-distribution.test.js",
|
|
"typecheck": "node scripts/typecheck.mjs",
|
|
"test:unit": "node --test test/danmuku-scheduler.test.js test/danmuku-worker-client.test.js test/danmuku-input.test.js test/danmuku-parser.test.js test/danmuku-failures.test.js test/danmuku-mask-failures.test.js test/asr-encoding.test.js test/asr-lifecycle.test.js test/asr-audio.test.js test/asr.test.js test/jassub.test.js test/multiple-subtitles-merge.test.js test/multiple-subtitles-lifecycle.test.js test/multiple-subtitles-failures.test.js test/multiple-subtitles.test.js test/multiple-subtitles-vendor.test.js test/vtt-thumbnail-parser.test.js test/vtt-thumbnail-lifecycle.test.js test/vtt-thumbnail.test.js test/auto-thumbnail-frames.test.js test/auto-thumbnail-lifecycle.test.js test/auto-thumbnail.test.js test/thumbnail-emitter.test.js test/thumbnail-runtime.test.js test/thumbnail-vendor.test.js test/thumbnail-lifecycle.test.js test/thumbnail-input.test.js test/thumbnail.test.js test/iframe-navigation.test.js test/iframe-boundaries.test.js test/iframe-lifecycle.test.js test/iframe.test.js test/mediabunny.test.js test/mediabunny-shim.test.js test/mediabunny-coordination.test.js test/mediabunny-video.test.js test/mediabunny-audio.test.js test/mediabunny-hls.test.js test/mediabunny-entry.test.js test/mediabunny-capability.test.js test/mediabunny-load.test.js test/mediabunny-input.test.js test/dpip.test.js test/dpip-lifecycle.test.js test/canvas.test.js test/canvas-lifecycle.test.js test/ambilight.test.js test/ambilight-lifecycle.test.js test/ambilight-proxy.test.js test/vast.test.js test/vast-lifecycle.test.js test/ads.test.js test/ads-lifecycle.test.js test/playback.test.js test/dash-control.test.js test/dash-contract.test.js test/dash-lifecycle.test.js test/dash-events.test.js test/hls-control.test.js test/audio-track.test.js test/public-behavior.test.js test/helpers.test.js test/chapter.test.js test/utils.test.js test/resource-scope.test.js test/instance-lifecycle.test.js test/options.test.js test/media-hosts.test.js test/plugins.test.js test/source.test.js test/playback-properties.test.js test/media-events.test.js test/template-resources.test.js test/core-vendor.test.js test/component-resources.test.js test/setting-model.test.js test/setting-layout.test.js test/setting-resources.test.js test/subtitle.test.js test/display-native.test.js test/display-video-fullscreen.test.js test/display-pip.test.js test/display-mini.test.js test/display-sizing.test.js test/display-orientation.test.js test/hotkey.test.js test/listener-registry.test.js test/global-events.test.js test/pointer-events.test.js test/gesture.test.js test/event-scheduling.test.js test/notice.test.js test/fast-forward.test.js test/auto-playback.test.js test/builtin-layers.test.js test/prompt-components.test.js test/screenshot.test.js test/thumbnails.test.js test/progress.test.js test/environment.test.js test/storage.test.js test/facade-properties.test.js test/dom-boundaries.test.js test/initialization.test.js test/entry.test.js test/accessibility-button.test.js test/accessibility-focus.test.js test/accessibility-slider.test.js test/asr-fallback-routing.test.js test/asr-local-example.test.js test/asr-explicit-capture.test.js test/chromecast.test.js test/chromecast-failures.test.js test/chromecast-runtime.test.js",
|
|
"test:coverage": "node --test test/coverage.test.js && node scripts/coverage.mjs",
|
|
"test": "yarn test:node && yarn test:baseline",
|
|
"test:browser": "playwright test",
|
|
"test:iframe-history": "playwright test --config playwright.iframe-history.config.js",
|
|
"test:performance": "playwright test --config playwright.performance.config.js",
|
|
"test:browser:install": "playwright install chromium firefox webkit",
|
|
"test:browser:report": "playwright show-report refactor/.cache/browser/html",
|
|
"test:package": "node scripts/package-check.mjs",
|
|
"test:package:release": "node scripts/package-check.mjs --release",
|
|
"build:types": "node scripts/build-types.mjs --write",
|
|
"check:types": "node scripts/build-types.mjs --check",
|
|
"test:dash-types-package": "node refactor/scripts/dash-package-types.mjs",
|
|
"test:ads-types-package": "node refactor/scripts/ads-package-types.mjs",
|
|
"test:ads-native-visibility": "node refactor/scripts/ads-native-visibility.mjs",
|
|
"test:vast": "node --test test/vast.test.js test/vast-lifecycle.test.js",
|
|
"check:commits": "node refactor/scripts/commit-audit.mjs",
|
|
"check:impact": "node refactor/scripts/impact.mjs",
|
|
"check:contracts": "node refactor/scripts/contracts.mjs",
|
|
"test:contracts": "node refactor/scripts/run-contracts.mjs",
|
|
"test:ambilight": "node --test test/ambilight.test.js test/ambilight-lifecycle.test.js test/ambilight-proxy.test.js",
|
|
"test:ambilight-types-package": "node refactor/scripts/ambilight-package-types.mjs",
|
|
"test:canvas": "node --test test/canvas.test.js test/canvas-lifecycle.test.js",
|
|
"test:canvas-types-package": "node refactor/scripts/canvas-package-types.mjs",
|
|
"test:dpip": "node --test test/dpip.test.js test/dpip-lifecycle.test.js",
|
|
"test:dpip-types-package": "node refactor/scripts/dpip-package-types.mjs",
|
|
"test:mediabunny": "node --test test/mediabunny.test.js test/mediabunny-shim.test.js test/mediabunny-coordination.test.js test/mediabunny-video.test.js test/mediabunny-audio.test.js test/mediabunny-hls.test.js test/mediabunny-entry.test.js test/mediabunny-capability.test.js test/mediabunny-load.test.js test/mediabunny-input.test.js",
|
|
"test:mediabunny-types-package": "node refactor/scripts/mb-package-types.mjs",
|
|
"test:mediabunny-soak": "playwright test --config playwright.soak.config.js",
|
|
"generate:media:hls": "node scripts/generate-hls-fixture.mjs",
|
|
"test:iframe": "node --test test/iframe-navigation.test.js test/iframe-boundaries.test.js test/iframe.test.js test/iframe-lifecycle.test.js refactor/scripts/iframe-contract.test.mjs refactor/scripts/iframe-types.test.mjs",
|
|
"test:iframe-types-package": "node refactor/scripts/iframe-package-types.mjs",
|
|
"test:thumbnail": "node --test test/thumbnail-emitter.test.js test/thumbnail-runtime.test.js test/thumbnail-vendor.test.js test/thumbnail-lifecycle.test.js test/thumbnail-input.test.js test/thumbnail.test.js refactor/scripts/thumbnail-contract.test.mjs refactor/scripts/thumbnail-types.test.mjs",
|
|
"test:thumbnail-types-package": "node refactor/scripts/thumbnail-package-types.mjs",
|
|
"test:auto-thumbnail": "node --test test/auto-thumbnail-frames.test.js test/auto-thumbnail-lifecycle.test.js test/auto-thumbnail.test.js refactor/scripts/auto-thumbnail-contract.test.mjs",
|
|
"test:vtt-thumbnail": "node --test test/vtt-thumbnail-parser.test.js test/vtt-thumbnail-lifecycle.test.js test/vtt-thumbnail.test.js refactor/scripts/vtt-thumbnail-contract.test.mjs refactor/scripts/vtt-thumbnail-types.test.mjs",
|
|
"test:vtt-thumbnail-types-package": "node refactor/scripts/vtt-thumbnail-package-types.mjs",
|
|
"test:multiple-subtitles": "node --test test/multiple-subtitles-merge.test.js test/multiple-subtitles-lifecycle.test.js test/multiple-subtitles-failures.test.js test/multiple-subtitles.test.js test/multiple-subtitles-vendor.test.js refactor/scripts/multiple-subtitles-contract.test.mjs refactor/scripts/multiple-subtitles-runtime-types.test.mjs refactor/scripts/multiple-subtitles-types.test.mjs",
|
|
"test:multiple-subtitles-types-package": "node refactor/scripts/multiple-subtitles-package-types.mjs",
|
|
"test:jassub": "node --test test/jassub.test.js refactor/scripts/jassub-contract.test.mjs",
|
|
"check:ci": "node refactor/scripts/ci-workflow.mjs",
|
|
"test:ci": "node --test test/ci-summary.test.js refactor/scripts/ci-workflow.test.mjs refactor/scripts/impact.test.mjs test/package-runtime.test.js",
|
|
"test:package:runtime": "node scripts/package-runtime.mjs --canonical",
|
|
"test:asr": "node --test test/asr.test.js test/asr-audio.test.js test/asr-encoding.test.js test/asr-lifecycle.test.js test/asr-distribution.test.js test/asr-fallback-routing.test.js test/asr-local-example.test.js test/asr-explicit-capture.test.js",
|
|
"test:asr-types-package": "node refactor/scripts/asr-package-types.mjs",
|
|
"test:asr-demo": "node refactor/scripts/asr-local-demo.mjs",
|
|
"test:chromecast": "node --test test/chromecast.test.js test/chromecast-failures.test.js test/chromecast-runtime.test.js",
|
|
"test:chromecast-types-package": "node refactor/scripts/chromecast-package-types.mjs",
|
|
"test:danmuku-mask": "node --test test/danmuku-mask-failures.test.js refactor/scripts/danmuku-mask-contract.test.mjs",
|
|
"test:danmuku": "node --test test/danmuku-scheduler.test.js test/danmuku-worker-client.test.js test/danmuku-input.test.js test/danmuku-parser.test.js test/danmuku-failures.test.js refactor/scripts/danmuku-contract.test.mjs"
|
|
},
|
|
"browserslist": "last 1 Chrome version",
|
|
"devDependencies": {
|
|
"@antfu/eslint-config": "5.4.1",
|
|
"@playwright/test": "1.63.0",
|
|
"@vue/compiler-sfc": "3.5.28",
|
|
"@yarnpkg/lockfile": "1.1.0",
|
|
"c8": "12.0.0",
|
|
"cpy": "13.2.3",
|
|
"cross-env": "10.1.0",
|
|
"cross-spawn": "7.0.6",
|
|
"dotenv": "17.2.4",
|
|
"dts-bundle-generator": "9.5.1",
|
|
"esbuild": "0.27.7",
|
|
"eslint": "9.39.2",
|
|
"eslint-plugin-format": "2.0.1",
|
|
"glob": "13.0.6",
|
|
"lerna": "8.2.4",
|
|
"less": "4.5.1",
|
|
"prompts": "2.4.2",
|
|
"semver": "7.7.4",
|
|
"servor": "4.0.2",
|
|
"svgo": "4.1.0",
|
|
"terser": "5.51.2",
|
|
"typescript": "5.9.3",
|
|
"typescript-compat": "npm:typescript@4.3.5",
|
|
"typescript-runtime-compat": "npm:typescript@5.1.6",
|
|
"vite": "7.3.6",
|
|
"yaml": "2.8.2"
|
|
},
|
|
"resolutions": {
|
|
"**/@types/dom-webcodecs": "0.1.19",
|
|
"dts-bundle-generator/typescript": "5.9.3"
|
|
}
|
|
}
|