Comparing version 0.7.0 to 0.8.0
{ | ||
"name": "npm-watch", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "run scripts from package.json when files change", | ||
"main": "index.js", | ||
"dependencies": { | ||
"nodemon": "^2.0.3", | ||
"through2": "^2.0.0" | ||
"nodemon": "^2.0.7", | ||
"through2": "^4.0.2" | ||
}, | ||
"devDependencies": { | ||
"crlf": "^1.1.0" | ||
"crlf": "^1.1.1" | ||
}, | ||
@@ -13,0 +13,0 @@ "bin": "./cli.js", |
@@ -26,3 +26,3 @@ # npm-watch | ||
Possibilty to watch for different tasks | ||
There is the possibility to watch for different tasks | ||
@@ -63,3 +63,3 @@ ```javascript | ||
> The `quiet` flag was changed from a `string` to a `boolean` in `0.1.5`. Backwards compatability will be kept for two patch versions. | ||
> The `quiet` flag was changed from a `string` to a `boolean` in `0.1.5`. Backwards compatibility will be kept for two patch versions. | ||
@@ -132,14 +132,49 @@ Use `runOnChangeOnly` to set the nodemon option [--on-change-only](https://github.com/remy/nodemon/blob/master/doc/cli/options.txt "--on-change-only"). Setting this to `true` tells nodemon to execute script on change only, not startup. | ||
Array of paths to watch | ||
```javascript | ||
"patterns": ["src", "test"] | ||
``` | ||
#### `extensions` | ||
Array of file extensions to watch | ||
Comma delimited list of file extensions to watch | ||
```javascript | ||
"extensions": "js,jsx" | ||
``` | ||
#### `ignore` | ||
String or array of paths to ignore | ||
Add an `ignore` property to your `watch` object. The value of `ignore` can be a string if you only want to ignore | ||
a single glob: | ||
``` | ||
"watch": { | ||
"build": { | ||
"ignore": "build", | ||
... | ||
} | ||
... | ||
} | ||
``` | ||
Or an array if you want to ignore multiple globs: | ||
``` | ||
"watch": { | ||
"build": { | ||
"ignore": [ | ||
"build", | ||
"node_modules" | ||
], | ||
... | ||
} | ||
... | ||
} | ||
``` | ||
#### `quiet` | ||
Boolean to hide the script name in any output on stdout and stderr | ||
```javascript | ||
"quiet": false | ||
``` | ||
@@ -149,2 +184,5 @@ #### `inherit` | ||
Boolean to preserve the original process' stdout and stderr | ||
```javascript | ||
"inherit": false | ||
``` | ||
@@ -154,2 +192,5 @@ #### `legacyWatch` | ||
Boolean to enable [legacy watch](https://github.com/remy/nodemon#application-isnt-restarting) | ||
```javascript | ||
"legacyWatch": true | ||
``` | ||
@@ -159,2 +200,5 @@ #### `delay` | ||
Number of milliseconds to [delay](https://github.com/remy/nodemon#delaying-restarting) before checking for new files | ||
```javascript | ||
"delay": 2500 | ||
``` | ||
@@ -164,2 +208,5 @@ #### `clearBuffer` | ||
Boolean to clear the buffer after detecting a new change | ||
```javascript | ||
"clearBuffer": true | ||
``` | ||
@@ -169,2 +216,5 @@ #### `verbose` | ||
Boolean to turn on the nodemons verbose mode | ||
```javascript | ||
"verbose": true | ||
``` | ||
@@ -176,32 +226,6 @@ #### `silent` | ||
#### `Ignore files` | ||
Add an `ignore` property to your `watch` object. The value of `ignore` can be a string if you only want to ignore | ||
a single glob: | ||
```javascript | ||
"silent": true | ||
``` | ||
"watch": { | ||
"build": { | ||
"ignore": "build", | ||
... | ||
} | ||
... | ||
} | ||
``` | ||
Or an array if you want to ignore multiple globs: | ||
``` | ||
"watch": { | ||
"build": { | ||
"ignore": [ | ||
"build", | ||
"node_modules" | ||
], | ||
... | ||
} | ||
... | ||
} | ||
``` | ||
## Acknowledgements | ||
@@ -208,0 +232,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12872
230
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedthrough2@4.0.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedisarray@1.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedxtend@4.0.2(transitive)
Updatednodemon@^2.0.7
Updatedthrough2@^4.0.2