Skip to content

Instantly share code, notes, and snippets.

@AbraaoAlves
Created May 31, 2016 02:14
Show Gist options
  • Select an option

  • Save AbraaoAlves/a3dbca40bb2559122cbea01c5ea00b1c to your computer and use it in GitHub Desktop.

Select an option

Save AbraaoAlves/a3dbca40bb2559122cbea01c5ea00b1c to your computer and use it in GitHub Desktop.
Sample typescript watch
# 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
{
"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