Skip to content

Instantly share code, notes, and snippets.

@ucin
Last active August 29, 2015 14:15
Show Gist options
  • Save ucin/82c9893dce0cff7771c1 to your computer and use it in GitHub Desktop.
Save ucin/82c9893dce0cff7771c1 to your computer and use it in GitHub Desktop.
My build tools
"watch": "nodemon -e js,json,html -w app.js -w package.json -w ../mod-db -w controllers -w views app.js",
"watch-debug": "nodemon -e js,json,html -w app.js -w package.json -w ../mod-db -w controllers -w views --debug app.js",
"prewatch": "npm run clean && npm run dos2unix && npm run lint && npm run eslint && npm run jshint && npm run jscs ",
"prewatch-debug": "npm run clean && npm run dos2unix && npm run lint && npm run eslint && npm run jshint && npm run jscs ",
"clean": "rimraf dist temp coverage *.log npm-debug.log",
"dos2unix": "find ./ -type f \\( -iname \\*.json -o -iname \\*.js \\) -not -path */node_modules/* | xargs ../tools/dos2unix",
"lint": "npm run eslint && npm run jshint && npm run jscs",
"eslint": "eslint --ignore-path .eslintignore --ext .js -f stylish .",
"jshint": "jshint --reporter node_modules/jshint-stylish/stylish.js --verbose --extra-ext json .",
"jscs": "jscs --reporter=inline ."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment