Skip to content

Instantly share code, notes, and snippets.

@willshepp28
Created November 29, 2020 21:39
Show Gist options
  • Save willshepp28/2c34edbbf32f4e87a7bfa3b88290d985 to your computer and use it in GitHub Desktop.
Save willshepp28/2c34edbbf32f4e87a7bfa3b88290d985 to your computer and use it in GitHub Desktop.
Set of scripts we can run in our package.json
"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