Merge pull request 'dev' (#30) from dev into main

Reviewed-on: #30
This commit is contained in:
fanxb 2022-11-29 23:28:47 +08:00
commit 7d26e2fcd4
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
base=$(cd "$(dirname "$0")";pwd) base=$(cd "$(dirname "$0")";pwd)
cd $base cd $base
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerFront:/opt/front node:lts-buster-slim bash -c "cd /opt/front && yarn --registry https://registry.npmmirror.com && yarn build" docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerFront:/opt/front node:lts-buster-slim bash -c "cd /opt/front && yarn --registry https://registry.npmmirror.com && yarn build"
docker run -it --rm --name buildOpenRenamer -v $base/openRenamerBackend:/app node:lts-buster-slim bash -c "cd /app && npm config set registry=https://registry.npmmirror.com && npm install -g typescript && tsc"
rm -rf openRenamerBackend/static/* rm -rf openRenamerBackend/static/*
touch openRenamerBackend/static/.gitkeep touch openRenamerBackend/static/.gitkeep

View File

@ -1 +1 @@
npm config set registry=https://registry.npmmirror.com && npm install typescript -g && npm install && tsc && node dist/index.js npm config set registry=https://registry.npmmirror.com && npm install && tsc && node dist/index.js