update_deps.sh 320 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # go to root
  3. cd `dirname $0`
  4. # clear shrinkwrapped node_modules
  5. rm package-lock.json
  6. rm -rf node_modules/
  7. # abort if tests fail
  8. set -e
  9. # install dependencies
  10. npm install
  11. # build and test
  12. npm test
  13. # Add build files to git
  14. git add package-lock.json
  15. git commit -m "Update npm dependencies and package lock"