This repository has been archived by the owner on Oct 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
31 lines (31 loc) · 1.58 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
{
"name": "svmdev-web",
"author": "Wei Tang",
"scripts": {
"scss": "mkdir -p dist/html/ && node-sass --output-style compressed scss/style.scss dist/html/style.css",
"uglify": "mkdir -p dist/html/ && uglifyjs dist/html/lib.js -o dist/html/lib.js -c -m && uglifyjs dist/html/rts.js -o dist/html/rts.js -c -m && uglifyjs dist/html/out.js -o dist/html/out.js -c -m",
"copy:stackbuild": "mkdir -p dist/html/ && cp -R dist/build/svmdev-web/svmdev-web.jsexe/. dist/html",
"clean:haskell": "cabal clean",
"clean:dist": "rm -rf dist",
"clean:all": "npm run clean:haskell && npm run clean:dist",
"build:js": "make config && make build && npm run copy:stackbuild && npm run uglify",
"build:js-dev": "make build && npm run copy:stackbuild",
"build:css": "npm run scss",
"build:static": "mkdir -p dist/html && cp -r static/* dist/html/",
"build:dist": "mkdir -p dist/html/ && npm run build:js && npm run build:css && npm run build:static",
"serve": "browser-sync start --server 'dist/html/' --files 'dist/html/**/*, **/*.html, !node_modules/**/*.html'",
"watch:index": "onchange 'app/**/*.hs' -- npm run build:js-dev",
"watch:css": "onchange 'scss/*.scss' -- npm run build:css",
"watch:static": "onchange 'static/**/*' -- npm run build:static",
"watch:all": "make config && npm-run-all -p serve watch:index watch:css watch:static"
},
"devDependencies": {
"autoprefixer": "^6.3.1",
"browser-sync": "^2.11.1",
"node-sass": "^3.4.2",
"npm-run-all": "^1.5.1",
"onchange": "^2.0.0",
"postcss-cli": "^2.4.0",
"uglify-js": "^2.6.1"
}
}