Skip to content

Commit

Permalink
Merge pull request #817 from misterdev/misc/improve-init-generator
Browse files Browse the repository at this point in the history
misc(init-generator) cli improvements & refactor
  • Loading branch information
evenstensberg committed May 30, 2019
2 parents de9c89c + 960e73a commit 5e27244
Show file tree
Hide file tree
Showing 25 changed files with 751 additions and 488 deletions.
2 changes: 1 addition & 1 deletion INIT.md
@@ -1,6 +1,6 @@
# webpack-cli init

`webpack-cli init` is used to initialize `webpack` projects quickly by scaffolding configuration and installing modules required for the project as per user preferences.
`webpack-cli init` is used to initialize `webpack` projects quickly by scaffolding configuration and creating a runnable project with all the dependencies based on the user preferences.

## Initial Setup

Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Expand Up @@ -8,8 +8,8 @@ webpack CLI is currently supporting webpack v4 and webpack v5. Security fixes ar

| webpack version | webpack-cli version | Supported |
| --------------- | ----------------------------- | ------------------ |
| >= 4.20.x | ^3.1.2 | :white_check_mark: |
| <= 4.19.x | ^3.1.1 | :white_check_mark: |
| >= 4.20.x | ^3.1.2 | :white_check_mark: |
| <= 4.19.x | ^3.1.1 | :white_check_mark: |
| 5.x.0 | ^3.1.2 | :white_check_mark: |
| 5.0.x | ^3.1.2 | :white_check_mark: |
| < 4.x.x | (CLI included in webpack < 4) | :x: |
Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/generators/.gitignore
Expand Up @@ -2,3 +2,4 @@
**/*.js
!*.test.js
!/**/*.test.js
!/templates/*.js
2 changes: 1 addition & 1 deletion packages/generators/add-generator.ts
Expand Up @@ -125,7 +125,7 @@ export default class AddGenerator extends Generator {
.then(
(entryTypeAnswer: { entryType: boolean }): Promise<void | {}> => {
// Ask different questions for entry points
return entryQuestions(self, entryTypeAnswer);
return entryQuestions(self, entryTypeAnswer.entryType);
}
)
.then(
Expand Down

0 comments on commit 5e27244

Please sign in to comment.