-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathpackage.json
More file actions
146 lines (146 loc) · 6.56 KB
/
Copy pathpackage.json
File metadata and controls
146 lines (146 loc) · 6.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "hls.js",
"license": "Apache-2.0",
"description": "JavaScript HLS client using MediaSourceExtension",
"homepage": "https://github.com/video-dev/hls.js",
"authors": "Guillaume du Pontavice <g.du.pontavice@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/video-dev/hls.js"
},
"bugs": {
"url": "https://github.com/video-dev/hls.js/issues"
},
"main": "./dist/hls.js",
"module": "./dist/hls.mjs",
"types": "./dist/hls.d.ts",
"exports": {
".": {
"import": "./dist/hls.mjs",
"require": "./dist/hls.js"
},
"./light": {
"import": "./dist/hls.light.mjs",
"require": "./dist/hls.light.js"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"files": [
"dist/**/*",
"src/**/*"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "rollup --config && npm run build:types",
"build:ci": "rollup --config && tsc --build tsconfig-lib.json && api-extractor run && npm run build:copy-types && es-check",
"build:debug": "rollup --config --configType full --configType demo",
"build:watch": "rollup --config --configType full --configType demo --watch",
"build:types": "tsc --build tsconfig-lib.json && api-extractor run --local && npm run build:copy-types",
"build:copy-types": "cp ./dist/hls.d.ts ./dist/hls.d.mts && cp ./dist/hls.d.ts ./dist/hls.js.d.ts",
"dev": "run-p build:watch serve",
"serve": "http-server -o /demo .",
"docs": "doctoc ./docs/API.md && api-documenter markdown -i api-extractor -o api-extractor/api-documenter && rm api-extractor/api-documenter/index.md && npm run docs-md-to-html",
"docs-md-to-html": "generate-md --layout github --input api-extractor/api-documenter --output api-docs",
"lint": "eslint --cache src/ tests/ --ext .js --ext .ts",
"lint:fix": "npm run lint -- --fix",
"lint:quiet": "npm run lint -- --quiet",
"lint:staged": "lint-staged",
"prettier": "prettier --cache --write .",
"prettier:verify": "prettier --cache --check .",
"pretest": "npm run lint",
"sanity-check": "npm run lint && npm run prettier:verify && npm run type-check && npm run build && es-check && npm run docs && npm run test:unit",
"start": "npm run dev",
"test": "npm run test:unit && npm run test:func",
"test:unit": "karma start karma.conf.js",
"test:unit:debug": "DEBUG_UNIT_TESTS=1 karma start karma.conf.js --auto-watch --no-single-run --browsers Chrome",
"test:unit:watch": "karma start karma.conf.js --auto-watch --no-single-run",
"test:func": "BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
"test:func:light": "BABEL_ENV=development HLSJS_LIGHT=1 mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
"test:func:sauce": "SAUCE=1 UA=safari OS='OS X 10.15' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
"test:func:browserstack": "BROWSERSTACK=1 UA=safari OS='macOS 15' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
"test:func:android": "BROWSERSTACK=1 UA=chrome DEVICE='Samsung Galaxy S24' OS='Android 14' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
"test:func:android:tablet": "BROWSERSTACK=1 UA=chrome DEVICE='Samsung Galaxy Tab S9' OS='Android 13' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
"test:func:ios": "BROWSERSTACK=1 UA=safari DEVICE='iPhone 16' OS='iOS 18' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
"test:func:ipad": "BROWSERSTACK=1 UA=safari DEVICE='iPad Pro 12.9 2022' OS='iOS 16' BABEL_ENV=development mocha --require @babel/register tests/functional/auto/setup.js --timeout 40000 --exit",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"prepare": "husky"
},
"devDependencies": {
"@babel/core": "7.29.6",
"@babel/helper-module-imports": "7.28.6",
"@babel/plugin-transform-class-properties": "7.28.6",
"@babel/plugin-transform-object-assign": "7.27.1",
"@babel/plugin-transform-object-rest-spread": "7.28.6",
"@babel/plugin-transform-optional-chaining": "7.28.6",
"@babel/preset-env": "7.29.2",
"@babel/preset-typescript": "7.28.5",
"@babel/register": "7.28.6",
"@microsoft/api-documenter": "7.30.5",
"@microsoft/api-extractor": "7.58.7",
"@rollup/plugin-alias": "5.1.1",
"@rollup/plugin-babel": "6.1.0",
"@rollup/plugin-commonjs": "28.0.9",
"@rollup/plugin-node-resolve": "16.0.3",
"@rollup/plugin-replace": "6.0.3",
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "12.3.0",
"@svta/cml-cmcd": "2.4.0",
"@svta/cml-id3": "1.0.6",
"@svta/cml-utils": "1.5.0",
"@types/chai": "5.2.3",
"@types/chart.js": "2.9.41",
"@types/mocha": "10.0.10",
"@types/sinon-chai": "4.0.0",
"@typescript-eslint/eslint-plugin": "8.54.0",
"@typescript-eslint/parser": "8.54.0",
"babel-loader": "10.1.1",
"babel-plugin-transform-remove-console": "6.9.4",
"browserstack-local": "1.5.13",
"chai": "6.2.2",
"chart.js": "2.9.4",
"chromedriver": "149.0.4",
"doctoc": "2.4.1",
"es-check": "9.6.4",
"eslint": "8.57.1",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-mocha": "10.5.0",
"eslint-plugin-n": "17.24.0",
"eslint-plugin-no-for-of-loops": "1.0.1",
"eslint-plugin-promise": "7.3.0",
"eventemitter3": "5.0.4",
"http-server": "14.1.1",
"husky": "9.1.7",
"jsonpack": "1.1.5",
"karma": "6.4.4",
"karma-chrome-launcher": "3.2.0",
"karma-coverage": "2.2.1",
"karma-mocha": "2.0.1",
"karma-mocha-reporter": "2.2.5",
"karma-rollup-preprocessor": "github:jlmakes/karma-rollup-preprocessor#7a7268d91149307b3cf2888ee4e65ccd079955a3",
"karma-sourcemap-loader": "0.4.0",
"lint-staged": "16.4.0",
"markdown-styles": "3.2.0",
"micromatch": "4.0.8",
"mocha": "11.7.5",
"nise": "6.1.5",
"node-fetch": "3.3.2",
"npm-run-all2": "8.0.4",
"prettier": "3.8.3",
"promise-polyfill": "8.3.0",
"rollup": "4.60.2",
"rollup-plugin-istanbul": "5.0.0",
"sauce-connect-launcher": "1.3.2",
"selenium-webdriver": "4.43.0",
"semver": "7.7.4",
"sinon": "21.1.2",
"sinon-chai": "4.0.1",
"typescript": "5.9.3",
"url-toolkit": "2.2.5",
"wrangler": "4.107.0"
}
}