Skip to content

Commit

Permalink
docs: add syntax highlighting to sample-nodemon.md (#1982)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
chriscalo committed Apr 29, 2022
1 parent 0823f18 commit fdf7eda
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions doc/sample-nodemon.md
Expand Up @@ -2,27 +2,29 @@

Here is an example (of a contrived) `nodemon.json` file:

{
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"verbose": true,
"execMap": {
"js": "node --harmony"
},
"events": {
"restart": "osascript -e 'display notification \"App restarted due to:\n'$FILENAME'\" with title \"nodemon\"'"
},
"watch": [
"test/fixtures/",
"test/samples/"
],
"env": {
"NODE_ENV": "development"
},
"ext": "js,json"
}
```json
{
"restartable": "rs",
"ignore": [
".git",
"node_modules/**/node_modules"
],
"verbose": true,
"execMap": {
"js": "node --harmony"
},
"events": {
"restart": "osascript -e 'display notification \"App restarted due to:\n'$FILENAME'\" with title \"nodemon\"'"
},
"watch": [
"test/fixtures/",
"test/samples/"
],
"env": {
"NODE_ENV": "development"
},
"ext": "js,json"
}
```

Note that the `ignore` used is nodemon's default ignore rule. The complete defaults can be seen here: [defaults.js](https://github.com/remy/nodemon/blob/master/lib/config/defaults.js).

0 comments on commit fdf7eda

Please sign in to comment.