build.sh 319 B

1234567891011
  1. CUR=$(pwd)/$(dirname $0)
  2. if test "$1" = 'clean'; then
  3. echo "Removing node_modules"
  4. rm -rf $CUR/corejs/node_modules/
  5. fi
  6. rm -r $CUR/corejs/dist
  7. echo "Building corejs"
  8. cd $CUR/corejs && npm install && npm run build
  9. curl -fsSL https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.min.js > $CUR/corejs/dist/vue.min.js