Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Smart install: Only executes if package.json's
- # modification date is later than node_module's
- node_modules: package.json
- npm install
- @rm -f node_modules/.modified
- @touch -m node_modules/.modified
- install: node_modules
- {
- "scripts": {
- "pre-run": "npm-smart-install",
- "my-script": "…"
- },
- "dependencies": {
- "npm-smart-install": "1.0.0"
- }
- }
Add Comment
Please, Sign In to add comment