File tree 4 files changed +7
-19
lines changed
config-format/typescript-esnext
4 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,14 @@ This folder is the collection of those packages.
14
14
## Packages
15
15
16
16
1 . [ configtest] ( https://github.com/webpack/webpack-cli/tree/master/packages/configtest )
17
- 2 . [ generators ] ( https://github.com/webpack/webpack-cli/tree/master/packages/generators )
17
+ 2 . [ create-webpack-app ] ( https://github.com/webpack/webpack-cli/tree/master/packages/create-webpack-app )
18
18
3 . [ info] ( https://github.com/webpack/webpack-cli/tree/master/packages/info )
19
19
4 . [ serve] ( https://github.com/webpack/webpack-cli/tree/master/packages/serve )
20
20
5 . [ webpack-cli] ( https://github.com/webpack/webpack-cli/tree/master/packages/webpack-cli )
21
21
22
22
## Generic Installation
23
23
24
- 1 . Standalone installation of packages
25
-
26
- ``` shell
27
- npm install @webpack-cli/< package>
28
- ```
29
-
30
- 2 . Installation of respective ` package ` with ` webpack-cli ` [ Recommended]
24
+ Standalone installation of packages (except ` create-webpack-app ` , it is a self-sufficient package)
31
25
32
26
``` shell
33
27
npm install webpack-cli @webpack-cli/< package>
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ describe("webpack cli", () => {
14
14
env,
15
15
} ) ;
16
16
17
- console . log ( stderr ) ;
18
- console . log ( stdout ) ;
19
-
20
17
expect ( stderr ) . not . toBeFalsy ( ) ; // Deprecation warning logs on stderr
21
18
expect ( stdout ) . toBeTruthy ( ) ;
22
19
expect ( exitCode ) . toBe ( 0 ) ;
Original file line number Diff line number Diff line change @@ -120,9 +120,6 @@ describe("--config-name flag", () => {
120
120
false ,
121
121
) ;
122
122
123
- console . log ( stdout ) ;
124
- console . log ( stderr ) ;
125
-
126
123
expect ( exitCode ) . toBe ( 0 ) ;
127
124
expect ( stderr ) . toBeFalsy ( ) ;
128
125
expect ( stdout ) . toContain ( "first" ) ;
Original file line number Diff line number Diff line change @@ -130,16 +130,16 @@ function createPathDependentUtils(cli) {
130
130
} ;
131
131
/*
132
132
* runPromptWithAnswers
133
- * @param {string } location location of current working directory
133
+ * @param {string } location of current working directory
134
134
* @param {string[] } args CLI args to pass in
135
- * @param {string[] } answers answers to be passed to stdout for inquirer question
135
+ * @param {string[] } answers to be passed to stdout for inquirer question
136
136
*/
137
137
const runPromptWithAnswers = ( location , args , answers ) => {
138
138
const process = runAndGetProcess ( location , args ) ;
139
139
140
140
process . stdin . setDefaultEncoding ( "utf-8" ) ;
141
141
142
- const delay = 2000 ;
142
+ const delay = 1000 ;
143
143
let outputTimeout ;
144
144
let currentAnswer = 0 ;
145
145
@@ -162,12 +162,12 @@ function createPathDependentUtils(cli) {
162
162
write ( chunk , encoding , callback ) {
163
163
const output = chunk . toString ( "utf8" ) ;
164
164
165
- if ( output ) {
165
+ if ( output . length > 0 ) {
166
166
if ( outputTimeout ) {
167
167
clearTimeout ( outputTimeout ) ;
168
168
}
169
169
170
- // we must receive new stdout, then have 2 seconds
170
+ // we must receive new stdout, then have 1 second
171
171
// without any stdout before writing the next answer
172
172
outputTimeout = setTimeout ( ( ) => {
173
173
writeAnswer ( output ) ;
You can’t perform that action at this time.
0 commit comments