Skip to content

Commit

Permalink
Fix nodemon debug
Browse files Browse the repository at this point in the history
  • Loading branch information
emagnier committed Feb 9, 2020
1 parent fead940 commit a61d255
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 3 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ src
.editorconfig
.eslintcache
.eslintrc.js
nodemon.json
tsconfig.json
webpack.config.js
serverless.yml
Expand Down
15 changes: 15 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"watch": [
"src"
],
"ext": "ts",
"ignore": [
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"verbose": true,
"env": {
"NODE_ENV": "development"
},
"exec": "node --inspect=0.0.0.0 --require ts-node/register --require tsconfig-paths/register src/server.ts"
}
20 changes: 19 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"node": ">=8.0.0"
},
"scripts": {
"start": "node_modules/.bin/nodemon src/server.ts --inspect",
"start": "node_modules/.bin/nodemon --config nodemon.json",
"build": "webpack-cli --config webpack.config.js",
"test": "jest",
"test:watch": "jest --watch",
Expand Down Expand Up @@ -63,6 +63,7 @@
"ts-jest": "^25.2.0",
"ts-loader": "^6.2.1",
"ts-node": "^8.6.2",
"tsconfig-paths": "^3.9.0",
"typescript": "^3.7.5",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/routes/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default class Calendar {
if (params.calendar === 'liturgical') config.type = 'liturgical';

// Country calendar

if (romcal.Countries.indexOf(params.country) === -1) {
if (!params.country) {
return res.status(404).send({
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"baseUrl": "./",
"target": "es2017",
"outDir": "lib",
"resolveJsonModule": true,
"esModuleInterop": true
},
"include": ["./**/*.ts"],
"exclude": [
"./src/**/*.spec.ts",
"./src/**/*.test.ts",
"node_modules/**/*",
".serverless/**/*",
Expand Down

0 comments on commit a61d255

Please sign in to comment.