File tree 6 files changed +182
-240
lines changed
6 files changed +182
-240
lines changed Original file line number Diff line number Diff line change @@ -198,29 +198,6 @@ if (openBrowser('http://localhost:3000')) {
198
198
}
199
199
```
200
200
201
- #### ` prompt(message: string, isYesDefault: boolean): Promise<boolean> `
202
-
203
- This function displays a console prompt to the user.
204
-
205
- By convention, "no" should be the conservative choice.<br >
206
- If you mistype the answer, we'll always take it as a "no".<br >
207
- You can control the behavior on ` <Enter> ` with ` isYesDefault ` .
208
-
209
- ``` js
210
- var prompt = require (' react-dev-utils/prompt' );
211
-
212
- prompt (
213
- ' Are you sure you want to eat all the candy?' ,
214
- /* isYesDefault */ false
215
- ).then (shouldEat => {
216
- if (shouldEat) {
217
- console .log (' You have successfully consumed all the candy.' );
218
- } else {
219
- console .log (' Phew, candy is still available!' );
220
- }
221
- });
222
- ```
223
-
224
201
#### ` webpackHotDevClient.js `
225
202
226
203
This is an alternative client for [ WebpackDevServer] ( https://github.com/webpack/webpack-dev-server ) that shows a syntax error overlay.
Original file line number Diff line number Diff line change 22
22
" launchEditor.js" ,
23
23
" openBrowser.js" ,
24
24
" openChrome.applescript" ,
25
- " prompt.js" ,
26
25
" WatchMissingNodeModulesPlugin.js" ,
27
26
" webpackHotDevClient.js"
28
27
],
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 47
47
"fs-extra" : " 0.30.0" ,
48
48
"html-webpack-plugin" : " 2.28.0" ,
49
49
"http-proxy-middleware" : " 0.17.3" ,
50
+ "inquirer" : " 3.0.6" ,
50
51
"jest" : " 18.1.0" ,
51
52
"object-assign" : " 4.1.1" ,
52
53
"postcss-loader" : " 1.3.3" ,
You can’t perform that action at this time.
0 commit comments