mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#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:
@@ -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": {
|
||||
|
Reference in New Issue
Block a user