38 lines
1.6 KiB
JSON
38 lines
1.6 KiB
JSON
{
|
|
"name": "root",
|
|
"private": true,
|
|
"scripts": {
|
|
"lint": "npm-run-all lint:*",
|
|
"lint:packages": "npm run lint --workspace=packages --if-present",
|
|
"lint:root": "eslint tests",
|
|
"build": "npm run build --workspace=packages --if-present",
|
|
"pretest": "npm run build",
|
|
"serve": "http-server -c-1 -s -p 3000 .",
|
|
"test": "server-test test:browser:server 3000 test:all",
|
|
"test:all": "npm-run-all test:browser:*:*",
|
|
"test:browser": "mocha-headless-chrome -a enable-features=SharedArrayBuffer",
|
|
"test:browser:core:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-core-mt.test.html",
|
|
"test:browser:core:st": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-core-st.test.html",
|
|
"test:browser:ffmpeg:mt": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-mt.test.html",
|
|
"test:browser:ffmpeg:st": "npm run test:browser -- -f http://localhost:3000/tests/ffmpeg-st.test.html",
|
|
"test:browser:server": "npm run serve",
|
|
"test:node": "mocha --exit --bail -t 60000",
|
|
"test:node:core:mt": "npm run test:node -- --require tests/test-helper-mt.js tests/ffmpeg-core.test.js",
|
|
"test:node:core:st": "npm run test:node -- --require tests/test-helper-st.js tests/ffmpeg-core.test.js",
|
|
"prepublishOnly": "npm run build",
|
|
"postinstall": "npm run build"
|
|
},
|
|
"workspaces": [
|
|
"packages/*",
|
|
"apps/*"
|
|
],
|
|
"devDependencies": {
|
|
"chai": "^4.3.7",
|
|
"http-server": "^14.1.1",
|
|
"mocha": "^10.2.0",
|
|
"mocha-headless-chrome": "^4.0.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"start-server-and-test": "^2.0.0"
|
|
}
|
|
}
|