Skip to content

Commit 9d1afd7

Browse files
remychriscalo
andauthored
docs: add syntax highlighting to sample-nodemon.md (#1982) (#2004)
[skip ci] Co-authored-by: Chris Calo <[email protected]>
1 parent de5d32a commit 9d1afd7

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

doc/sample-nodemon.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,29 @@
22

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

5-
{
6-
"restartable": "rs",
7-
"ignore": [
8-
".git",
9-
"node_modules/**/node_modules"
10-
],
11-
"verbose": true,
12-
"execMap": {
13-
"js": "node --harmony"
14-
},
15-
"events": {
16-
"restart": "osascript -e 'display notification \"App restarted due to:\n'$FILENAME'\" with title \"nodemon\"'"
17-
},
18-
"watch": [
19-
"test/fixtures/",
20-
"test/samples/"
21-
],
22-
"env": {
23-
"NODE_ENV": "development"
24-
},
25-
"ext": "js,json"
26-
}
5+
```json
6+
{
7+
"restartable": "rs",
8+
"ignore": [
9+
".git",
10+
"node_modules/**/node_modules"
11+
],
12+
"verbose": true,
13+
"execMap": {
14+
"js": "node --harmony"
15+
},
16+
"events": {
17+
"restart": "osascript -e 'display notification \"App restarted due to:\n'$FILENAME'\" with title \"nodemon\"'"
18+
},
19+
"watch": [
20+
"test/fixtures/",
21+
"test/samples/"
22+
],
23+
"env": {
24+
"NODE_ENV": "development"
25+
},
26+
"ext": "js,json"
27+
}
28+
```
2729

2830
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 commit comments

Comments
 (0)