opusdev/vector-similarity-api
1
1 2 Typically the options to control nodemon are passed in via the CLI and are3 listed under: nodemon --help options4 5 nodemon can also be configured via a local and global config file:6 7 * $HOME/nodemon.json8 * $PWD/nodemon.json OR --config <file>9 * nodemonConfig in package.json10 11 All config options in the .json file map 1-to-1 with the CLI options, so a12 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 you21 could use backticks on the CLI to use a variable, backticks won't work in22 the .json config).23 24 * {{pwd}} - the current directory25 * {{filename}} - the filename you pass to nodemon26 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 executables36 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 }45 