#586 fix npm scripts for demo app and demo projects

- pre-build TypeScript code before running watchers
- don’t clean (rimraf) destination folders on watcher (done on
pre-build, fixes many browser load errors)
- simplified ‘tslint’ tasks for demo projects
- running ’tsc’ and ‘tsc -w’ from local node_modules (don’t expect
global typescript compiler)
This commit is contained in:
Denys Vuika
2016-08-23 14:10:42 +01:00
parent 92fe0f5307
commit 3dc95dc4ed
11 changed files with 57 additions and 80 deletions

View File

@@ -6,7 +6,8 @@
"scripts": {
"postinstall": "typings install",
"clean": "rimraf node_modules typings",
"start": "npm run tslint && concurrently \"npm run tsc:w\" \"license-check\" \"npm run serve\" ",
"build": "npm run tslint && npm run tsc && npm run licensecheck",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run serve\" ",
"aws": "node app.js",
"tsc": "tsc",
"tsc:w": "tsc -w",