Skip to content

Instantly share code, notes, and snippets.

@roboshoes
Created July 27, 2016 18:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roboshoes/e420083c3964c4c49bf82704e57f00dc to your computer and use it in GitHub Desktop.
Save roboshoes/e420083c3964c4c49bf82704e57f00dc to your computer and use it in GitHub Desktop.
NPM Scripts only build process for: TypeScript + Browserify, Jade, Less and serving and watching through Lite Server
{
"name": "",
"version": "0.1.0",
"scripts": {
"start": "npm run all && concurrently \"npm run tsc:w\" \"npm run less:w\" \"npm run watchify\" \"npm run lite\" \"npm run pug:w\" ",
"all" : "npm run prep && npm run assets && tsc && npm run browserify && npm run pug",
"lite": "lite-server public",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"pug": "pug views/index.pug --out public",
"pug:w": "pug views/index.pug --out public --watch",
"typings": "typings",
"prep": "mkdirp public/javascripts public/styles",
"watchify": "watchify javascripts/main.js -o public/javascripts/bundle.js",
"browserify": "browserify javascripts/main.js > public/javascripts/bundle.js",
"assets": "cp -R assets/ public/",
"less:w": "autoless less/ public/styles/",
"rebuild": "rm -rf public && npm run all"
},
"dependencies": {},
"devDependencies": {
"autoless": "^0.1.7",
"browserify": "^13.1.0",
"concurrently": "^2.0.0",
"less": "^2.7.1",
"lite-server": "^2.2.0",
"mkdirp": "^0.5.1",
"pug": "^2.0.0-beta4",
"pug-cli": "^1.0.0-alpha6",
"typescript": "^1.8.10",
"typings": "^1.0.4",
"watchify": "^3.7.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment