-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
30 lines (30 loc) · 1.59 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
{
"name": "svelte-wasi-with-rust",
"version": "1.1.0",
"scripts": {
"build": "rm -f public/wasm/* && yarn build-wasm-bindgen && yarn build-app",
"build-app": "cross-env NODE_ENV=production webpack",
"build-wasm-bindgen": "yarn build-wasm && wasm-bindgen --no-typescript src/rust-wasi/target/wasm32-wasi/release/rust-wasi.wasm --browser --out-dir . && yarn wbg-to-wasi && mv *.wasm public/wasm/ && mv rust-* src",
"build-wasm": "cd src/rust-wasi/ && cargo build --release --target=wasm32-wasi && mkdir -p ../../public/wasm",
"dev": "webpack-dev-server --watch-content-base --content-base public",
"dev-wasm": "cd src/rust-wasi/ && cargo build --target=wasm32-wasi && mkdir -p ../../public/wasm",
"dev-wasm-bindgen": "yarn dev-wasm && wasm-bindgen --no-typescript src/rust-wasi/target/wasm32-wasi/debug/rust-wasi.wasm --debug --keep-debug --out-dir . && yarn wbg-to-wasi && mv *.wasm public/wasm/ && mv rust-* src",
"watch-wasm-bindgen": "while true ; do inotifywait -qm --event modify @src/rust-wasi/target -r --format '' src/rust-wasi/ | yarn dev-wasm-bindgen; done",
"wbg-to-wasi": "./scripts/wbg_to_wasi.js --path ./js-wasi/ rust-wasi_bg.js rust-wasi_bg_wasi.js"
},
"devDependencies": {
"@wasmer/wasi": "^0.12.0",
"@wasmer/wasmfs": "^0.12.0",
"cross-env": "^5.2.0",
"css-loader": "^2.1.1",
"mini-css-extract-plugin": "^0.6.0",
"serve": "^11.0.0",
"style-loader": "^0.23.1",
"svelte": "^3.0.0",
"svelte-loader": "2.13.3",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.0",
"webpack-dev-server": "^3.3.1",
"yargs": "^16.2.0"
}
}