-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
70 lines (70 loc) · 4.14 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
{
"name": "wasp-hls",
"version": "0.4.2",
"description": "WebAssembly HLS Player Proof Of Concept",
"main": "build/es6/index.js",
"scripts": {
"build": "npm run build:all",
"build:all": "npm run clean && npm run build:wasm && npm run build:worker && npm run build:main",
"build:all:demo": "npm run clean && npm run build:wasm && npm run build:worker && npm run build:demo",
"build:demo": "esbuild demo/src/index.tsx --bundle --outfile=build/demo.js",
"build:demo:release": "esbuild demo/src/index.tsx --bundle --outfile=build/demo.js --minify",
"build:demo:watch": "esbuild demo/src/index.tsx --bundle --outfile=build/demo.js --watch",
"build:main": "esbuild src/ts-main/index.ts --bundle --outfile=build/main.js",
"build:main:es6": "rm -rf build/es6 && tsc -p src/tsconfig.json --outDir \"./build/es6\" && mkdir build/es6/wasm && cp -r src/wasm/wasp_hls.js src/wasm/wasp_hls.d.ts build/es6/wasm/",
"build:main:release": "esbuild src/ts-main/index.ts --bundle --outfile=build/main.js --minify",
"build:release": "npm run clean && npm run build:wasm:release && npm run build:worker:release && npm run build:main:release",
"build:wasm": "npm run compile:rs && npm run move:wasm",
"build:wasm:release": "npm run compile:rs:release && npm run move:wasm && node scripts/wasm-strip.js build/wasp_hls_bg.wasm",
"build:worker": "esbuild src/ts-worker/index.ts --bundle --outfile=build/worker.js",
"build:worker:release": "esbuild src/ts-worker/index.ts --bundle --outfile=build/worker.js --minify",
"check": "npm run types && npm run lint",
"check:demo": "npm run types:demo && npm run lint:demo",
"check:main": "npm run types:main && npm run lint:main",
"check:worker": "npm run types:worker && npm run lint:worker && npm run lint:transmux",
"clean": "find ./build ! -name 'index.html' ! -name 'favicon.png' ! -name 'build' ! -name 'style.css' ! -name 'demo.js' ! -name 'logo-white.png' -exec rm -rf {} +",
"clippy": "cargo clippy",
"compile:rs": "cargo build --target=wasm32-unknown-unknown && wasm-bindgen --keep-debug --target web ./target/wasm32-unknown-unknown/debug/wasp_hls.wasm --out-dir src/wasm",
"compile:rs:release": "cargo build --release --target=wasm32-unknown-unknown && wasm-bindgen --target web ./target/wasm32-unknown-unknown/release/wasp_hls.wasm --out-dir src/wasm",
"doc": "rm -rf doc/generated && docgen.ico doc build/doc",
"fmt": "npm run fmtr && npm run fmtt",
"fmtr": "cargo fmt",
"fmtr:check": "cargo fmt --check",
"fmtt": "prettier --write . --loglevel warn",
"fmtt:check": "prettier . --check",
"fmt:check": "npm run fmtr:check && npm run fmtt:check",
"install:binaryen": "./scripts/install_binaryen.sh",
"lint": "npm run lint:main && npm run lint:worker && npm run lint:transmux && npm run lint:common && npm run lint:demo",
"lint:common": "cd src/ts-common && eslint .",
"lint:demo": "cd demo && eslint src/**/*",
"lint:main": "cd src/ts-main && eslint .",
"lint:transmux": "cd src/ts-worker && eslint .",
"lint:worker": "cd src/ts-worker && eslint .",
"list": "node ./scripts/list-npm-scripts.mjs",
"move:wasm": "cp src/wasm/wasp_hls_bg.wasm build/wasp_hls_bg.wasm",
"prepublishOnly": "npm install && npm run build:release && npm run build:main:es6 && node scripts/generate_embedded_wasm.js && node scripts/generate_embedded_worker.js",
"serve": "http-server ./build",
"types": "npm run types:main && npm run types:worker && npm run types:demo",
"types:demo": "tsc --project ./demo --noEmit",
"types:main": "tsc --project ./src/ts-main --noEmit",
"types:worker": "tsc --project ./src/ts-worker --noEmit"
},
"author": "peaberberian",
"license": "MIT",
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"docgen.ico": "^0.2.3",
"esbuild": "^0.23.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^50.2.2",
"http-server": "^14.1.1",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.5.4"
}
}