Skip to content

Commit

Permalink
Prevent nodemon restart on component *.mjs
Browse files Browse the repository at this point in the history
Only Node.js review app `*.mjs` files should restart the server
  • Loading branch information
colinrotherham committed Mar 22, 2023
1 parent 4bb8756 commit a39a8ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/nodemon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"watch": ["./src", "../src/govuk"],
"watch": ["./src", "../src/govuk/**/*.{json,yaml}"],
"ignore": ["**/*.test.*"],
"ext": "mjs,json,yaml",
"quiet": true
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm scripts are defined in `package.json`. These trigger a number of Gulp tasks.

**`npm run serve` will do the following:**

- start up Express, restarting when `.js` files change
- start up Express, restarting when `.mjs`, `.json` or `.yaml` files change

**`npm run heroku` runs on Heroku build/PR and it will:**

Expand Down

0 comments on commit a39a8ec

Please sign in to comment.