Skip to content

Commit

Permalink
feat: add nodemon and npm run dev
Browse files Browse the repository at this point in the history
  • Loading branch information
iwaduarte committed Oct 22, 2022
1 parent 00b64d7 commit 84d446b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/package.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@
"private": true,
"scripts": {
"start": "node ./bin/www",
"dev": "nodemon ./bin/www",
${opts.sequelize ? `"update-db": "node ./database/syncDatabase"\n` : ''} },
"dependencies": {
"cookie-parser": "~1.4.4",
"debug": "~2.6.9",
"express": "~4.18.2",
"http-errors": "~1.6.3",
"morgan": "~1.9.1",
"dotenv":"16.0.3",
"dotenv": "16.0.3",
${opts.compression ? `"compression":"~1.7.4",` : ''}
${opts.helmet ? `"helmet":"~6.0.0",` : ''}
${opts.sequelize ? `"sequelize":"~6.24.0",\n"pg-hstore": "2.3.4",\n"pg":"8.8.0",\n"bcrypt":"5.1.0"` : ''} },
"devDependencies": {
"prettier": "^2.7.1"
"prettier": "^2.7.1",
"nodemon": "2.0.20"
}
}
`;

0 comments on commit 84d446b

Please sign in to comment.