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.
19 lines
458 B
19 lines
458 B
2 years ago
|
npm install;
|
||
|
cat >.env <<EOF
|
||
|
VITE_FRONT_FPS=$FRONT_FPS
|
||
|
VITE_HOST=$HOST
|
||
|
VITE_BACK_PORT=$BACK_PORT
|
||
|
EOF
|
||
|
|
||
|
npm install;
|
||
|
if [[ $NODE_ENV == "production" ]]; then
|
||
|
npm run build && npm run preview;
|
||
|
elif [[ $NODE_ENV == "development" ]]; then
|
||
|
npm run dev;
|
||
|
elif [[ $NODE_ENV == "debug" ]]; then
|
||
|
npm run dev;
|
||
|
elif [[ $NODE_ENV == "check" ]]; then
|
||
|
npm run format && npm run check; echo "=== FINISH ==="
|
||
|
else echo "Nothing to do for that NODE_ENV context.";
|
||
|
fi;
|