#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

@@ -14,12 +14,12 @@
"clean": "rimraf dist node_modules typings",
"postinstall": "npm run typings && npm run build",
"typings": "typings install",
"start": "rimraf dist && npm install && npm run server",
"server": "wsrv -o",
"build": "npm run tslint && rimraf dist && tsc",
"tslint": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
"tslint-root": "tslint -c tslint.json *.ts"
"build": "npm run tslint && rimraf dist && npm run tsc",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run server\" ",
"server": "wsrv -o -l -s",
"tsc": "tsc",
"tsc:w": "tsc -w",
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts"
},
"license": "Apache-2.0",
"dependencies": {