You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/sample-nodemon.md
+24-22Lines changed: 24 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -2,27 +2,29 @@
2
2
3
3
Here is an example (of a contrived) `nodemon.json` file:
4
4
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
+
```
27
29
28
30
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