source: node_modules/nodemon/doc/cli/config.txt@ 81bc7da

finki-main main
Last change on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1
2 Typically the options to control nodemon are passed in via the CLI and are
3 listed under: nodemon --help options
4
5 nodemon can also be configured via a local and global config file:
6
7 * $HOME/nodemon.json
8 * $PWD/nodemon.json OR --config <file>
9 * nodemonConfig in package.json
10
11 All config options in the .json file map 1-to-1 with the CLI options, so a
12 config could read as:
13
14 {
15 "ext": "*.pde",
16 "verbose": true,
17 "exec": "processing --sketch=game --run"
18 }
19
20 There are a limited number of variables available in the config (since you
21 could use backticks on the CLI to use a variable, backticks won't work in
22 the .json config).
23
24 * {{pwd}} - the current directory
25 * {{filename}} - the filename you pass to nodemon
26
27 For example:
28
29 {
30 "ext": "*.pde",
31 "verbose": true,
32 "exec": "processing --sketch={{pwd}} --run"
33 }
34
35 The global config file is useful for setting up default executables
36 instead of repeating the same option in each of your local configs:
37
38 {
39 "verbose": true,
40 "execMap": {
41 "rb": "ruby",
42 "pde": "processing --sketch={{pwd}} --run"
43 }
44 }
Note: See TracBrowser for help on using the repository browser.