Skip to content

Instantly share code, notes, and snippets.

@vincentdesmares
Created September 11, 2017 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincentdesmares/69838bb346b7e31516a41a6c261d033a to your computer and use it in GitHub Desktop.
Save vincentdesmares/69838bb346b7e31516a41a6c261d033a to your computer and use it in GitHub Desktop.
An example of commands stored in a package.json
{
"name": "my project name",
"...": "...",
"scripts": {
"release": "standard-version",
"db-reset": "rm -rf data/main.db && sequelize db:migrate && sequelize db:seed:all",
"db-migrate": "sequelize db:migrate",
"dev": "pm2 delete all; pm2 startOrReload ecosystem.config.js && pm2 start react-scripts --name web -- start",
"start": "pm2 startOrReload ecosystem.config.js",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"flow": "flow"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment