-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
18 lines (18 loc) · 996 Bytes
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"private": true,
"dependencies": {
"concurrently": "^6.2.0",
"elm": "^0.19.1-5",
"elm-format": "^0.8.5",
"elm-live": "^4.0.2",
"uglify-js": "^3.13.10"
},
"scripts": {
"elm-server": "elm-live src/Main.elm --host 0.0.0.0 -- --debug --output=main.js",
"wasm-watch": "cd image-processor && cargo watch -s 'wasm-pack build --target no-modules --dev --no-typescript -- --color=always && rm pkg/.gitignore'",
"dev-server": "concurrently \"yarn run elm-server\" \"yarn run wasm-watch\"",
"compile-wasm": "wasm-pack build --target no-modules --release --no-typescript image-processor && rm image-processor/pkg/.gitignore",
"compile-min-elm": "elm make src/Main.elm --optimize --output=main.js && uglifyjs main.js --compress 'pure_funcs=\"F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9\",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle --output main.js",
"compile-all": "yarn run compile-min-elm && yarn run compile-wasm"
}
}