Skip to content

Commit

Permalink
Make the postinstall Jade build only what's needed
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Sep 24, 2016
1 parent e96e667 commit d43086f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"scripts": {
"build": "jade --client --extension jade.js --no-debug public/template",
"prepublish": "npm run build",
"postinstall": "cd $(dirname $(dirname $(echo $PATH | cut -d= -f2 | tr : '\n' | grep pump.io/node_modules/.bin))) && test $(ls public/template/*.jade.js | wc -l) = $(ls public/template/*.jade | wc -l) || npm run build",
"postinstall": "cd $(dirname $(dirname $(echo $PATH | cut -d= -f2 | tr : '\n' | grep pump.io/node_modules/.bin))) && for i in public/template/*.jade; do test \\( ! -e $i.js \\) -o $i -nt $i.js && jade --client --extension jade.js --no-debug $i; done || true",
"test": "npm run lint && vows -v test/*-test.js",
"lint": "npm run lint:jshint && npm run lint:jscs && npm run lint:jade",
"lint:jshint": "jshint --exclude 'public/javascript/libs' bin routes",
Expand Down

0 comments on commit d43086f

Please sign in to comment.