-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
45 lines (45 loc) · 2.05 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
{
"name": "eq-visualizer",
"module": "index.ts",
"type": "module",
"files": [
"src/index.ts",
"assets/*"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "bun run",
"tailwindcss": "npx tailwindcss -i ./styles.css -o ./dev/output.css --watch",
"tailwindcss_build": "npx tailwindcss -i ./styles.css -o ./dist/output.css --minify",
"watch": "npm-run-all --parallel build-ts tailwindcss cp-wasm-eq-dev cp-wasm-fft-dev cp-html-dev",
"buildall": "npm-run-all --parallel bundle tailwindcss_build cp-wasm-eq cp-wasm-fft cp-html",
"watch_no_wasm": "npm-run-all --parallel build-ts tailwindcss",
"run": "bun run clean && bun run build_wasm_visualizer && bun run build_wasm_fft && bun run watch",
"build": "bun run clean && bun run build_wasm_visualizer && bun run build_wasm_fft && bun run buildall",
"build_wasm_visualizer": "cd ./wasm-eq-visualizer && $HOME/.cargo/bin/wasm-pack build --target web",
"build_wasm_fft": "cd ./wasm-fft && $HOME/.cargo/bin/wasm-pack build --target web",
"cp-wasm-eq": "cp ./wasm-eq-visualizer/pkg/wasm_eq_visualizer_bg.wasm ./dist",
"cp-wasm-fft": "cp ./wasm-fft/pkg/wasm_fft_bg.wasm ./dist",
"cp-wasm-eq-dev": "cp ./wasm-eq-visualizer/pkg/wasm_eq_visualizer_bg.wasm ./dev",
"cp-wasm-fft-dev": "cp ./wasm-fft/pkg/wasm_fft_bg.wasm ./dev",
"build-ts": "chmod +x ./run.js && ./run.js",
"clean": "rm -rf ./dist/*",
"cp-html": "cp ./index.html ./dist",
"cp-html-dev": "cp ./index.html ./dev",
"bundle": "chmod +x build.js && ./build.js"
},
"devDependencies": {
"esbuild": "^0.21.4",
"esbuild-plugin-copy": "^2.1.1",
"npm-run-all": "^4.1.5",
"tailwindcss": "^3.4.3"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@vercel/analytics": "^1.3.1",
"wasm-eq-visualizer": "file:./wasm-eq-visualizer/pkg/",
"wasm-fft": "file:./wasm-fft/pkg/"
}
}