-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpackage.json
29 lines (29 loc) · 1.36 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
{
"name": "js13k-rewire",
"version": "1.0.0",
"description": "Puzzle game for the 2018 Js13kGames. Bring the System back online by rewiring the power nodes.",
"main": "index.js",
"author": "Jan Mankopf",
"scripts": {
"clean": "rimraf dist",
"compile": "tsc",
"minify-js": "uglifyjs \"./dist/app.js\" -o \"./dist/app.min.js\" --mangle-props --compress --mangle --toplevel && dir \"dist\" | findstr .js",
"watch-compile": "tsc --watch",
"watch-copy-html": "cpx \"src/index.html\" dist --watch",
"dev-server": "live-server dist --no-browser",
"minify-html": "html-minifier --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --use-short-doctype --minify-css true .\\dist\\rewire.html -o .\\dist\\rewire.min.html",
"DEV": "npm run clean && run-p watch-compile watch-copy-html dev-server",
"BUILD": "npm run clean && tsc && cpx \"src/index.html\" dist && npm run minify-js && replace 'app.js' 'app.min.js' dist/index.html && html-inline dist/index.html -o dist/rewire.html && npm run minify-html"
},
"devDependencies": {
"cpx": "^1.5.0",
"html-inline": "^1.2.0",
"html-minifier": "^3.5.20",
"live-server": "^1.2.0",
"npm-run-all": "^4.1.3",
"replace": "^1.0.0",
"rimraf": "^2.6.2",
"typescript": "^3.0.3",
"uglify-es": "^3.3.9"
}
}