-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: add watchFiles option #3136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
f5ddd62
53e7655
2704329
54d10af
d0978ef
180cb62
3567bf5
69ca3a4
acad48f
b8c0012
681f8d7
e6407f5
12f045f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,35 @@ | |
| ] | ||
| } | ||
| } | ||
| }, | ||
| "WatchFilesString": { | ||
| "type": "string", | ||
| "minLength": 1 | ||
| }, | ||
| "WatchFilesObject": { | ||
| "type": "object", | ||
| "properties": { | ||
| "paths": { | ||
| "anyOf": [ | ||
| { | ||
| "type": "string", | ||
| "minLength": 1 | ||
| }, | ||
| { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "minLength": 1 | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "options": { | ||
| "type": "object", | ||
| "additionalProperties": true | ||
| } | ||
| }, | ||
| "additionalProperties": false | ||
| } | ||
| }, | ||
| "properties": { | ||
|
|
@@ -424,6 +453,29 @@ | |
| "enum": ["sockjs", "ws"] | ||
| } | ||
| ] | ||
| }, | ||
| "watchFiles": { | ||
| "anyOf": [ | ||
| { | ||
| "$ref": "#/definitions/WatchFilesString" | ||
| }, | ||
| { | ||
| "$ref": "#/definitions/WatchFilesObject" | ||
| }, | ||
|
anshumanv marked this conversation as resolved.
|
||
| { | ||
| "type": "array", | ||
| "items": { | ||
| "anyOf": [ | ||
| { | ||
| "$ref": "#/definitions/WatchFilesString" | ||
| }, | ||
| { | ||
| "$ref": "#/definitions/WatchFilesObject" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| }, | ||
| "errorMessage": { | ||
|
|
@@ -443,13 +495,14 @@ | |
| "onAfterSetupMiddleware": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverafter)", | ||
| "onBeforeSetupMiddleware": "should be {Function} (https://webpack.js.org/configuration/dev-server/#devserverbefore)", | ||
| "onListening": "should be {Function} (https://webpack.js.org/configuration/dev-server/#onlistening)", | ||
| "open": "should be {Boolean|String|(STRING | Object)[]} (https://webpack.js.org/configuration/dev-server/#devserveropen)", | ||
| "open": "should be {Boolean|String|(String | Object)[]} (https://webpack.js.org/configuration/dev-server/#devserveropen)", | ||
| "port": "should be {Number|String|Null} (https://webpack.js.org/configuration/dev-server/#devserverport)", | ||
| "proxy": "should be {Object|Array} (https://webpack.js.org/configuration/dev-server/#devserverproxy)", | ||
| "public": "should be {String} (https://webpack.js.org/configuration/dev-server/#devserverpublic)", | ||
| "setupExitSignals": "should be {Boolean} (https://webpack.js.org/configuration/dev-server/#devserversetupexitsignals)", | ||
| "static": "should be {Boolean|String|Object|Array} (https://webpack.js.org/configuration/dev-server/#devserverstatic)", | ||
| "transportMode": "should be {String|Object} (https://webpack.js.org/configuration/dev-server/#devservertransportmode)" | ||
| "transportMode": "should be {String|Object} (https://webpack.js.org/configuration/dev-server/#devservertransportmode)", | ||
| "watchFiles": "should be {String|Array} (https://webpack.js.org/configuration/dev-server/#devserverwatchfiles)" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it can also be object
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just not, this is not work right now, we need move them to Should be easy task |
||
| } | ||
| }, | ||
| "additionalProperties": false | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.