chore: simplify dev commands

This commit is contained in:
Pitu 2021-06-08 00:12:38 +09:00
parent 5f5716963d
commit 3358cf6939
2 changed files with 8 additions and 6 deletions

2
package-lock.json generated
View File

@ -78,7 +78,7 @@
"jest": "^26.6.3",
"jest-serializer-vue": "^2.0.2",
"node-sass": "^5.0.0",
"nodemon": "^1.19.3",
"nodemon": "^1.19.4",
"postcss-css-variables": "^0.11.0",
"postcss-nested": "^3.0.0",
"puppeteer": "^5.5.0",

View File

@ -10,12 +10,10 @@
},
"scripts": {
"setup": "node src/setup.js && npm run migrate && npm run seed && npm run build",
"build": "nuxt build",
"start": "npm run migrate && cross-env NODE_ENV=production node src/api/structures/Server",
"dev": "nuxt",
"start": "nuxt build && npm run migrate && cross-env NODE_ENV=production node src/api/structures/Server",
"dev": "nodemon src/api/structures/Server",
"migrate": "knex migrate:latest",
"seed": "knex seed:run",
"api": "node src/api/structures/Server",
"update": "git pull && npm install && npm run migrate && npm run build && npm run restart",
"restart": "pm2 restart chibisafe",
"overwrite-config": "cross-env OVERWRITE_SETTINGS=true",
@ -105,7 +103,7 @@
"jest": "^26.6.3",
"jest-serializer-vue": "^2.0.2",
"node-sass": "^5.0.0",
"nodemon": "^1.19.3",
"nodemon": "^1.19.4",
"postcss-css-variables": "^0.11.0",
"postcss-nested": "^3.0.0",
"puppeteer": "^5.5.0",
@ -133,6 +131,10 @@
}
}
},
"nodemonConfig": {
"watch": ["src/api/*"],
"delay": 2500
},
"keywords": [
"chibisafe",
"lolisafe",