Commit project
This commit is contained in:
parent
28471965a0
commit
3ac017a5ad
1030 changed files with 94062 additions and 0 deletions
41
node_modules/nodemon/doc/arch.md
generated
vendored
Normal file
41
node_modules/nodemon/doc/arch.md
generated
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
# nodemon code arch
|
||||
|
||||
```
|
||||
CLI -> parser -> nodemon options -> rules
|
||||
|
||||
rules -> configure -> watch -> start process
|
||||
```
|
||||
|
||||
## CLI examples
|
||||
|
||||
Watch src but only *.js and *.coffee
|
||||
|
||||
nodemon --watch src/ -e js,coffee app.js
|
||||
|
||||
Parsed to:
|
||||
|
||||
{
|
||||
watch: ['src/'],
|
||||
ignore: [],
|
||||
script: 'app.js'
|
||||
options: {
|
||||
extensions: ['js', 'coffee'],
|
||||
exec: 'node'
|
||||
}
|
||||
}
|
||||
|
||||
Watch with no args:
|
||||
|
||||
nodemon
|
||||
|
||||
Parsed to (assuming a package.json or index.js is found):
|
||||
|
||||
{
|
||||
watch: [], // meaning all subdirectories
|
||||
ignore: [],
|
||||
script: 'index.js',
|
||||
options: {
|
||||
extensions: ['js'],
|
||||
exec: 'node'
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue