-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
enhancements: update docs and fix bin #122
Conversation
SCAFFOLDING.md
Outdated
|
||
We ask several questions in the default generator to get you started. | ||
|
||
</hr> |
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.
I think ---
should be the same in Markdown like this:
Testing.
SCAFFOLDING.md
Outdated
|
||
1. `Will you be creating multiple bundles? (Y/n)` | ||
|
||
What we are meaning here, is if you want to provide your bundle a single or multiple [entry points](https://webpack.js.org/configuration/entry-context/#entry). If you have only one entry to your app, answer yes. If you got more modules you want to bundle, answer no. |
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.
Can you push the descriptions to the tool itself? Now it's going to be painful to maintain (two places to tweak if you change a question).
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.
I think the default generator is going to be like it is now, more or less
bin/webpack.js
Outdated
const filePaths = argv._; | ||
if(argv._.includes('init')) { | ||
const initPkgs = argv._.length === 1 ? [] : [argv._.pop()]; | ||
return require('../lib/initialize')(initPkgs); |
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.
I would add a newline before return
to improve readability.
bin/webpack.js
Outdated
const initPkgs = argv._.length === 1 ? [] : [argv._.pop()]; | ||
return require('../lib/initialize')(initPkgs); | ||
} else if(argv._.includes('migrate')) { | ||
const filePaths = argv._.length === 1 ? [] : [argv._.pop()]; | ||
if (!filePaths.length) { |
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.
Same here.
package.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "webpack-cli", | |||
"version": "1.3.0", | |||
"version": "1.3.1", |
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.
Maybe leave version bump for a separate commit?
Updates documentation to use
webpack-cli init
instead ofwebpack-cli --init
and fixes thebin
folder accordingly.