-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
23 lines (23 loc) · 864 Bytes
/
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
{
"name": "elm-15puzzle",
"author": {
"name": "Srinath Sankar",
"email": "srinath@iambot.net"
},
"private": true,
"devDependencies": {
"elm-format": "^0.8.3",
"elm-test": "^0.19.1-revision2",
"uglify-js": "^3.9.1"
},
"scripts": {
"clean": "rm -rf dist && rm -rf docs",
"build:dev": "elm make src/Main.elm --debug --output dist/bundle.js",
"prebuild": "yarn clean",
"build": "elm make src/Main.elm --optimize --output dist/bundle.js",
"postbuild": "yarn compress && mkdir -p docs && cp -R index.html dist docs/",
"start": "yarn build:dev && python3 -m http.server",
"test": "elm-test",
"compress": "uglifyjs dist/bundle.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=dist/bundle.js"
}
}