refactoring, work on environment

This commit is contained in:
Géry Debongnie
2019-01-23 14:28:41 +01:00
parent 08938d2334
commit 76fedae5a9
18 changed files with 138 additions and 63 deletions
+3 -1
View File
@@ -9,6 +9,7 @@
"build": "cp -r web/ dist/app && npm run build:js && npm run build:css",
"build:css": "sass web/static/src/scss/app.scss dist/app/app.css",
"build:js": "tsc --allowjs -m amd --lib es2017,dom --target esnext --outfile dist/app/main.js web/static/src/ts/main.ts",
"minify": "uglifyjs dist/app/main.js -o dist/app/main.js --compress --mangle",
"serve": "live-server --entry-file=index.html dist/app/",
"predev": "npm run build",
"dev": "npm-run-all --parallel \"build:* -- --watch\" serve"
@@ -34,7 +35,8 @@
"snabbdom-to-html": "^5.1.1",
"source-map-support": "^0.5.10",
"ts-jest": "^23.10.5",
"typescript": "^3.2.2"
"typescript": "^3.2.2",
"uglify-es": "^3.3.9"
},
"dependencies": {
"snabbdom": "^0.7.3"