forked from canalplus/rx-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
202 lines (202 loc) · 10.4 KB
/
package.json
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"name": "rx-player",
"author": "Canal+",
"version": "3.26.0",
"description": "Canal+ HTML5 Video Player",
"main": "./dist/rx-player.js",
"keywords": [
"dash",
"eme",
"hss",
"html5",
"mediasource",
"mse",
"reactive",
"rx",
"rxjs",
"smooth",
"streaming",
"typescript",
"video"
],
"browser": "./dist/rx-player.js",
"homepage": "https://github.com/canalplus/rx-player",
"bugs": "https://github.com/canalplus/rx-player/issues",
"license": "Apache-2.0",
"sideEffects": false,
"scripts": {
"build": "webpack --progress --config webpack.config.js --env production",
"build:all": "npm run build && npm run build:min && npm run build:wasm:release && npm run build:modular",
"build:min": "webpack --progress --config webpack.config.js --env minify --env production",
"build:min:report": "webpack --progress --config webpack.config.js --env minify --env production --env reportSize",
"build:modular": "./scripts/build/generate_build.js",
"build:report": "webpack --progress --config webpack.config.js --env production --env reportSize",
"build:rxp:all": "npm run build && npm run build:min && npm run build:modular",
"build:watch": "webpack --progress --config webpack.config.js -w -env production",
"build:min:watch": "webpack --progress --config webpack.config.js -w --env production --env minify",
"build:wasm:debug": "cd ./src/parsers/manifest/dash/wasm-parser && cargo build --target wasm32-unknown-unknown && cp target/wasm32-unknown-unknown/debug/mpd_node_parser.wasm ../../../../../dist/mpd-parser.wasm",
"build:wasm:release": "cd ./src/parsers/manifest/dash/wasm-parser && cargo build --target wasm32-unknown-unknown --release && wasm-opt -O3 -o ../../../../../dist/mpd-parser.wasm target/wasm32-unknown-unknown/release/mpd_node_parser.wasm && cd ../../../../../ && npm run wasm-strip",
"certificate": "./scripts/generate_certificate",
"check": "npm run check:types && npm run lint && npm run test:unit",
"check:all": "npm run check:types && npm run lint && npm run lint:demo && npm run lint:tests && npm run test && npm run test:memory && node -r esm ./scripts/check_nodejs_import_compatibility.js",
"check:appveyor": "npm run check:types && npm run lint && npm run lint:demo && npm run lint:tests && npm run test:appveyor",
"check:travis": "npm run check:types && npm run lint && npm run lint:demo && npm run lint:tests && npm run test:travis",
"check:types": "tsc --noEmit --project .",
"check:types:watch": "tsc --noEmit --watch --project .",
"demo": "node ./scripts/generate_full_demo.js --production-mode",
"demo:min": "node ./scripts/generate_full_demo.js --production-mode --minify",
"demo:watch": "node ./scripts/generate_full_demo.js --watch --production-mode",
"doc": "rm -rf doc/generated; node ./scripts/doc-generator/index.js doc/ doc/generated",
"lint": "eslint src -c .eslintrc.js",
"lint:demo": "eslint demo/full/scripts",
"lint:tests": "eslint tests/**/*.js",
"list": "node scripts/list-npm-scripts.js",
"prepublishOnly": "npm run build:modular",
"standalone": "node ./scripts/run_standalone_demo.js",
"start": "node ./scripts/start_demo_web_server.js",
"wasm-strip": "node scripts/wasm-strip.js dist/mpd-parser.wasm",
"test:appveyor": "npm run test:unit && npm run test:memory",
"test:integration": "node tests/integration/run.js --bchromehl --bfirefoxhl",
"test:integration:appveyor": "node --max-old-space-size=2048 ./tests/integration/run.js --bchromehl",
"test:integration:chrome": "node tests/integration/run.js --bchrome",
"test:integration:chrome:watch": "node tests/integration/run.js --bchrome --watch",
"test:integration:coverage": "node tests/integration/run.js --bchromehl --bfirefoxhl --coverage",
"test:integration:firefox": "node tests/integration/run.js --bfirefox",
"test:integration:firefox:watch": "node tests/integration/run.js --bfirefox --watch",
"test:integration:travis": "node tests/integration/run.js --bchromehl",
"test:memory": "node tests/memory/run.js --bchromehl",
"test:memory:chrome:watch": "node tests/memory/run.js --bchrome --watch",
"test:travis": "npm run test:unit && npm run test:integration:travis",
"test:unit": "jest",
"test:unit:coverage": "jest --coverage",
"update-version": "npm run version --git-tag-version=false",
"version": "./scripts/update-version"
},
"repository": {
"type": "git",
"url": "git://github.com/canalplus/rx-player.git"
},
"dependencies": {
"next-tick": "1.1.0",
"pinkie": "2.0.4",
"rxjs": "7.3.0"
},
"devDependencies": {
"@babel/core": "7.15.0",
"@babel/plugin-transform-runtime": "7.15.0",
"@babel/preset-env": "7.15.0",
"@babel/preset-react": "7.14.5",
"@types/chai": "4.2.21",
"@types/jest": "27.0.1",
"@types/mocha": "9.0.0",
"@types/node": "16.7.10",
"@types/sinon": "10.0.2",
"@typescript-eslint/eslint-plugin": "4.30.0",
"@typescript-eslint/eslint-plugin-tslint": "4.30.0",
"@typescript-eslint/parser": "4.30.0",
"arraybuffer-loader": "1.0.8",
"babel-loader": "8.2.2",
"chai": "4.3.4",
"cheerio": "1.0.0-rc.10",
"core-js": "3.17.1",
"eslint": "7.32.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-jsdoc": "36.0.8",
"eslint-plugin-react": "7.25.1",
"esm": "3.2.25",
"express": "4.17.1",
"highlight.js": "11.2.0",
"istanbul-instrumenter-loader": "3.0.1",
"jest": "27.1.0",
"karma": "6.3.4",
"karma-chrome-launcher": "3.1.0",
"karma-coverage-istanbul-reporter": "3.0.3",
"karma-firefox-launcher": "2.1.1",
"karma-mocha": "2.0.1",
"karma-mocha-reporter": "2.2.5",
"karma-webpack": "5.0.0",
"markdown-it": "12.2.0",
"markdown-it-emoji": "2.0.0",
"mocha": "9.1.1",
"mocha-loader": "5.1.5",
"raw-loader": "4.0.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"regenerator-runtime": "0.13.9",
"rimraf": "3.0.2",
"sanitize-html": "2.4.0",
"semver": "7.3.5",
"sinon": "11.1.2",
"terser-webpack-plugin": "5.2.1",
"ts-jest": "27.0.5",
"ts-loader": "9.2.5",
"tslint": "6.1.3",
"typescript": "4.4.2",
"webpack": "5.51.2",
"webpack-bundle-analyzer": "4.4.2",
"webpack-cli": "4.8.0"
},
"scripts-list": {
"Build a demo page (e.g. to test a code change)": {
"start": "Build the \"full\" demo (with a UI) with the non-minified RxPlayer and serve it on a local server. Re-build on file updates.",
"demo": "Build the demo in demo/bundle.js",
"demo:min": "Build the demo and minify it in demo/bundle.js",
"demo:watch": "Build the demo in demo/bundle.js each times the files update.",
"standalone": "Build and launch the \"standalone\" demo (without any UI) on a local server. Re-build on file updates.",
"certificate": "Generate a certificate to be able to use HTTPS locally for the demo pages (`npm run start` and `npm run standalone` will then listen to HTTPS requests through a communicated port)"
},
"Type-check or lint the current code": {
"check": "Check the validity of the src directory by running the linter, type checker and unit tests",
"check:all": "Check the validity of the whole project by running linters, type checkers and every tests",
"check:types": "Check TypeScript typings in src",
"lint": "Lint rx-player source files",
"lint:demo": "Lint demo source files",
"lint:tests": "Lint integration tests source files"
},
"Run tests": {
"Integration tests (test the whole API)": {
"test:integration": "Launch integration tests in multiple browser environments",
"test:integration:chrome": "Launch integration tests in a Chrome browser.",
"test:integration:chrome:watch": "Launch integration tests in Chrome each times the files update",
"test:integration:coverage": "Launch integration tests in multiple browser environments and produce a coverage report in tests/integration/coverage",
"test:integration:firefox": "Launch integration tests in a Firefox browser.",
"test:integration:firefox:watch": "Launch integration tests in Firefox each times the files update"
},
"Unit tests (test particular functions)": {
"test:unit": "Launch unit tests",
"test:unit:coverage": "Launch unit tests and produce a coverage report"
},
"Memory tests (test memory usage to avoid memory leaks)": {
"test:memory": "Launch memory tests",
"test:memory:chrome:watch": "Launch memory tests in Chrome each times the files update"
}
},
"Build the player or one of its sub-parts": {
"Modular builds (then imported through the rx-player/minimal path)": {
"build:modular": "Build the modular build of the rx-player and create corresponding files and directories."
},
"Legacy builds (bundles)": {
"build": "Build the player in dist/rx-player.js",
"build:min": "Build the player and minify it in dist/rx-player.min.js",
"build:min:report": "Build the player then minify it in dist/rx-player.min.js and display a report on its size",
"build:min:watch": "Build the player in dist/rx-player.js each times the files update",
"build:report": "Build the player in dist/rx-player.js and display a report on its size",
"build:watch": "Build the player as a minified version in dist/rx-player.min.js each times the files update"
},
"WebAssembly MPD parser builds (needs Rust, Cargo and binaryen)": {
"build:wasm:debug": "Build the DASH MPD parser written in rust as WebAssembly into debug mode, and output the result as dist/mpd-parser.wasm",
"build:wasm:release": "Build the DASH MPD parser written in rust as WebAssembly into release mode, and output the result as dist/mpd-parser.wasm"
},
"Combinations of multiple builds": {
"build:all": "Perform all possible builds of the player (regular RxPlayer builds and the WebAssembly DASH MPD parser release build).",
"build:rxp:all": "Perform all possible builds of the RxPlayer main code (that is, excluding the WebAssembly DASH MPD parser build)."
}
},
"Build the documentation pages": {
"doc": "Generate the HTML documentation in doc/generated/pages"
},
"Update the RxPlayer's version": {
"update-version": "Update the version to the string given in argument (example: `npm run update-version 3.8.0`). Will update the codebase and perform every builds."
}
}
}