Guest User

Untitled

a guest
Sep 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. # Smart install: Only executes if package.json's
  2. # modification date is later than node_module's
  3.  
  4. node_modules: package.json
  5. npm install
  6. @rm -f node_modules/.modified
  7. @touch -m node_modules/.modified
  8.  
  9. install: node_modules
  10.  
  11. {
  12. "scripts": {
  13. "pre-run": "npm-smart-install",
  14. "my-script": "…"
  15. },
  16. "dependencies": {
  17. "npm-smart-install": "1.0.0"
  18. }
  19. }
Add Comment
Please, Sign In to add comment