mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
readme update, setup script update
This commit is contained in:
parent
ba89f4a342
commit
1847970120
3 changed files with 8 additions and 78 deletions
|
@ -8,7 +8,7 @@ hr() {
|
|||
|
||||
log() {
|
||||
hr
|
||||
echo -e "\033[0;32m${@}\033[0m"
|
||||
echo -e "\033[0;34m${@}\033[0m"
|
||||
hr
|
||||
}
|
||||
|
||||
|
@ -45,8 +45,8 @@ checkFile "$PWD/src/server.ts"
|
|||
checkFile "$PWD/package.json"
|
||||
checkFile "$PWD/package-lock.json"
|
||||
|
||||
git pull
|
||||
git submodule update --init --recursive
|
||||
git pull || exit
|
||||
git submodule update --init --recursive || exit
|
||||
|
||||
|
||||
log "Making project"
|
||||
|
@ -54,7 +54,6 @@ npm install
|
|||
npm audit fix > /dev/null 2> /dev/null
|
||||
npm run export
|
||||
|
||||
log "Seting up next.js static stuff..."
|
||||
mkdir "$PWD/nextStatic"
|
||||
|
||||
# ------------------------------------------------------------------------------------
|
||||
|
@ -100,4 +99,4 @@ fi
|
|||
log "Disabling next telemetry"
|
||||
npx --yes next telemetry disable
|
||||
|
||||
log "Done!"
|
||||
log "Done! development mode: 'npm run dev', prod mode: 'npm run start', tests: 'npm run test'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue