build.sh 257 B

12345678910111213
  1. #!/bin/bash
  2. # set current working directory to directory of the shell script
  3. cd "$(dirname "$0")"
  4. # before
  5. npm ci 2> /dev/null || npm i
  6. # copy
  7. cp node_modules/@panzoom/panzoom/dist/panzoom.min.js ../../vendor/panzoom.min.js
  8. # after
  9. rm -rf node_modules/