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

enhancements: update docs and fix bin #122

Merged
merged 5 commits into from
May 8, 2017
Merged

Conversation

evenstensberg
Copy link
Member

@evenstensberg evenstensberg commented May 8, 2017

Updates documentation to use webpack-cli init instead of webpack-cli --init and fixes the bin folder accordingly.

@evenstensberg evenstensberg requested a review from okonet May 8, 2017 12:23
SCAFFOLDING.md Outdated

We ask several questions in the default generator to get you started.

</hr>
Copy link

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.
Copy link

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).

Copy link
Member Author

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);
Copy link

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) {
Copy link

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",
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants