-
-
Save AbraaoAlves/a3dbca40bb2559122cbea01c5ea00b1c to your computer and use it in GitHub Desktop.
Sample typescript watch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # to install dependencies | |
| npm install | |
| # to compile and recompile to changes | |
| npm run build:watch | |
| #Use 'concurrently' when start many watchers in same time, like server+styles+preprocessors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "sample-watch", | |
| "version": "0.0.1", | |
| "private": true, | |
| "scripts": { | |
| "build:watch": "concurrently \"npm run jade:w\" \"npm run tsc:w\" ", | |
| "jade:w": "jade -w index.jade", | |
| "tsc:w": "tsc -w -p .", | |
| "postinstall": "typings install" | |
| }, | |
| "devDependencies": { | |
| "concurrently": "~2.0.0", | |
| "typings": "^1.0.0", | |
| "jade": "~1.11.0", | |
| "typesript":"^1.8.10" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment