build.sh 280 B

12345678910111213
  1. # @snippet_begin(TiptapBuilderSH)
  2. CUR=$(pwd)/$(dirname $0)
  3. if test "$1" = 'clean'; then
  4. echo "Removing node_modules"
  5. rm -rf $CUR/tiptapjs/node_modules/
  6. fi
  7. rm -r $CUR/tiptapjs/dist
  8. echo "Building tiptapjs"
  9. cd $CUR/tiptapjs && npm install && npm run build
  10. # @snippet_end