Skip to content
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

misc(init-generator) cli improvements & refactor #817

Merged
merged 32 commits into from
May 30, 2019
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
99304c4
chore(utils): fix deprecated babylon
misterdev Apr 19, 2019
0a648f7
feat(webpack-scaffold): adds Input defaults, doc & tests
misterdev Apr 19, 2019
17e4511
misc(generators): refactor utils
misterdev Apr 19, 2019
d574846
misc(generators): refactor init-generator
misterdev Apr 19, 2019
6be9291
feat(generators): add generated file templates
misterdev Apr 19, 2019
9856bab
docs(init): improve description
misterdev Apr 19, 2019
fb23aa4
misc(init-generator): improve types & defaults
misterdev Apr 20, 2019
392fcfe
misc(generators/utils/style): refactor
misterdev Apr 20, 2019
f46f4e5
fix(genrators/utils/style): typo & fix
misterdev Apr 20, 2019
093a36d
feat(init): wip typescript support
misterdev Apr 22, 2019
283e089
feat(init): support ts in configuration
misterdev Apr 23, 2019
4627ea1
misc(init): small refactor
misterdev Apr 23, 2019
ac35a31
misc(generators): improve prompts
misterdev Apr 23, 2019
488b06c
misc(packages): complete rebase
misterdev Apr 23, 2019
1b07d2b
misc(init): refactor with async/await
misterdev Apr 23, 2019
263b83c
fix(generator): generate correct module.rule for babel & ts
misterdev Apr 26, 2019
25ab7e6
feat(init): generate tsconfig
misterdev Apr 26, 2019
c090b17
feat(init): generate README
misterdev Apr 26, 2019
8b6d47b
docs(utils): update prettier
misterdev Apr 26, 2019
85ef3e7
misc(types): correct types
misterdev May 3, 2019
a650e0e
misc(init-generator): use webpackOption types, improve test rules
misterdev May 22, 2019
782f56c
misc(generators): small text improvements
misterdev May 28, 2019
376dcbd
misc(generators): refactor
misterdev May 29, 2019
fb25bd2
tests(inputvalidate): remove undefined
misterdev May 29, 2019
dcf44c1
misc(init-generator): small refactor
misterdev May 29, 2019
f971632
misc(init-generator): improve readme
misterdev May 30, 2019
4e8bc76
fix: change parser options
evenstensberg May 30, 2019
2a92877
Merge branch 'master' of https://github.com/webpack/webpack-cli into …
evenstensberg May 30, 2019
bd06a69
misc(generators): remove comment
misterdev May 30, 2019
88fcfa8
feat: add htmlWebpackPlugin in development
evenstensberg May 30, 2019
0552f76
fix: remove type from inherited type
evenstensberg May 30, 2019
960e73a
fix: remove type from inherited type
evenstensberg May 30, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion INIT.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions packages/generators/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
**/*.js
!*.test.js
!/**/*.test.js
!/templates/*.js
2 changes: 1 addition & 1 deletion packages/generators/add-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,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);
misterdev marked this conversation as resolved.
Show resolved Hide resolved
}
)
.then(
Expand Down
Loading