summaryrefslogtreecommitdiffstats
path: root/node_modules/nodemon/doc/cli/config.txt
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-16 00:10:28 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-16 00:10:28 +0100
commite06ec920f7a5d784e674c4c4b4e6d1da3dc7391d (patch)
tree55713f725f77b44ebfec86e4eec3ce33e71458ca /node_modules/nodemon/doc/cli/config.txt
downloadwebsite_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.tar.gz
website_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.tar.bz2
website_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.zip
api, login, auth
Diffstat (limited to 'node_modules/nodemon/doc/cli/config.txt')
-rw-r--r--node_modules/nodemon/doc/cli/config.txt44
1 files changed, 44 insertions, 0 deletions
diff --git a/node_modules/nodemon/doc/cli/config.txt b/node_modules/nodemon/doc/cli/config.txt
new file mode 100644
index 0000000..5de9bba
--- /dev/null
+++ b/node_modules/nodemon/doc/cli/config.txt
@@ -0,0 +1,44 @@
+
+ Typically the options to control nodemon are passed in via the CLI and are
+ listed under: nodemon --help options
+
+ nodemon can also be configured via a local and global config file:
+
+ * $HOME/nodemon.json
+ * $PWD/nodemon.json OR --config <file>
+ * nodemonConfig in package.json
+
+ All config options in the .json file map 1-to-1 with the CLI options, so a
+ config could read as:
+
+ {
+ "ext": "*.pde",
+ "verbose": true,
+ "exec": "processing --sketch=game --run"
+ }
+
+ There are a limited number of variables available in the config (since you
+ could use backticks on the CLI to use a variable, backticks won't work in
+ the .json config).
+
+ * {{pwd}} - the current directory
+ * {{filename}} - the filename you pass to nodemon
+
+ For example:
+
+ {
+ "ext": "*.pde",
+ "verbose": true,
+ "exec": "processing --sketch={{pwd}} --run"
+ }
+
+ The global config file is useful for setting up default executables
+ instead of repeating the same option in each of your local configs:
+
+ {
+ "verbose": true,
+ "execMap": {
+ "rb": "ruby",
+ "pde": "processing --sketch={{pwd}} --run"
+ }
+ }