build.sh 300 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # set current working directory to directory of the shell script
  3. cd "$(dirname "$0")"
  4. # before
  5. npm install
  6. mkdir -p tmp
  7. # build
  8. node prism.js
  9. # copy
  10. cp tmp/prism.min.* ../../vendor/
  11. cp tmp/prism-okaidia.min.css ../../vendor/
  12. # after
  13. rm -r tmp/
  14. rm -rf node_modules/ package-lock.json