You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
282 B
14 lines
282 B
#!/bin/bash
|
|
NODE_HOME=/opt/nodejs/v12.22.12
|
|
export PATH=$NODE_HOME/bin:$PATH
|
|
export NODE_PATH=$NODE_HOME/lib/node_modules
|
|
node -v
|
|
npm -v
|
|
ls -al
|
|
npm set registry http://npmneibu.linkkids.cn
|
|
npm install
|
|
if [ "$ENV" == "prod" ]; then
|
|
npm run build:prod
|
|
else
|
|
npm run build:stage
|
|
fi
|
|
|