20 lines
348 B
Plaintext
20 lines
348 B
Plaintext
node -v
|
|
npm -v
|
|
|
|
pwd
|
|
rm -rf dist
|
|
rm -rf node_modules
|
|
echo "-----删除成功-----"
|
|
ls -a
|
|
|
|
#下载依赖
|
|
npm install --unsafe-perm=true --allow-root --registry=http://25.12.10.69:8081/repository/aliyun-npm/
|
|
#打包成静态资源
|
|
npm run build:app-plus:${ENV_NAME}
|
|
echo "打包成功"
|
|
|
|
#压缩静态资源
|
|
cd dist/build/
|
|
tar -czvf app.tar.gz app/
|
|
|