Skip to content

Instantly share code, notes, and snippets.

@Qard
Created February 17, 2014 03:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Qard/9044444 to your computer and use it in GitHub Desktop.
Save Qard/9044444 to your computer and use it in GitHub Desktop.
This would be several hundred lines in grunt.
{
"start": "node --harmony server.js",
"dev": "exec-parallel 'npm run watch' 'npm run watch:test' 'nodemon --harmony server.js'",
"test": "mocha --harmony",
"coverage": "npm run coverage:report",
"coverage:build": "rm -rf coverage && node --harmony istanbul cover _mocha",
"coverage:report": "npm run coverage:build && istanbul report",
"coverage:html": "npm run coverage && node-open coverage/lcov-report/index.html",
"build": "exec-parallel 'npm run build:js' 'npm run build:css'",
"build:js": "browserify assets/js/main.js -o public/js/bundle.js",
"build:css": "stylus --compress --out public/css assets/css",
"watch": "exec-parallel 'npm run watch:js' 'npm run watch:css'",
"watch:js": "onchange 'assets/js/**/*.js' -- npm run build:js",
"watch:css": "onchange 'assets/css/**/*.styl' -- npm run build:css",
"watch:test": "onchange '*.js' 'controllers/*.js' 'models/*.js' 'public/js/**/*.js' 'test/**/*.js' -- npm test"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment