This commit is contained in:
2021-07-11 12:13:33 +00:00
parent b0cc502ab5
commit 84ccbd1ffa
4 changed files with 24 additions and 4 deletions

22
run.sh Normal file
View File

@@ -0,0 +1,22 @@
set -ex
rm -f yarn.lock
rm -rf .cache
export base=/nodejs
source $base/nvm.sh
nvm use --lts
rsync -ra --delete $base/node_modules/ node_modules/
npm install
export PATH=$base/bin:\$PATH
if [ -f vue.config.js ]; then
npm run-script serve
else
gridsome develop
fi