From fdf7eda10849c91d3be1241e04bd4ffd5cdccbea Mon Sep 17 00:00:00 2001 From: Chris Calo Date: Fri, 29 Apr 2022 06:06:53 -0400 Subject: [PATCH] docs: add syntax highlighting to sample-nodemon.md (#1982) [skip ci] --- doc/sample-nodemon.md | 46 ++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/doc/sample-nodemon.md b/doc/sample-nodemon.md index f44bd4a5..308d19f0 100644 --- a/doc/sample-nodemon.md +++ b/doc/sample-nodemon.md @@ -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).