Created
November 29, 2020 21:39
-
-
Save willshepp28/2c34edbbf32f4e87a7bfa3b88290d985 to your computer and use it in GitHub Desktop.
Set of scripts we can run in our package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"test": "cross-env NODE_ENV=test jest --testTimeout=10000", | |
"test:watch": "jest --watch", | |
"start": "nodemon app.js", | |
"db:reset": "npx sequelize-cli db:drop && npx sequelize-cli db:create && npx sequelize-cli db:migrate && npx sequelize-cli db:seed:all", | |
"deploy": "git push heroku main", | |
"readme": "git add . && git commit -m 'updated readme' && git push", | |
"createdb": " sequelize db:create", | |
"dropdb": "sequelize db:drop", | |
"migrate": "sequelize db:migrate", | |
"seedAll": "npx sequelize db:seed:all", | |
"dropcreatedb": "sequelize db:drop && sequelize db:create", | |
"migrate:reset": "npx sequelize-cli db:migrate:undo:all && npm run migrate", | |
"pretest": "cross-env NODE_ENV=test npm run migrate:reset" | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment