webpack / webpack-cli

Webpack's Command Line Interface
https://webpack.js.org/api/cli
MIT License
2.56k stars 603 forks source link

Feat: init create webpack app #4167

Closed maverox closed 3 months ago

maverox commented 5 months ago

What kind of change does this PR introduce?

Did you add tests for your changes? yes If relevant, did you update the documentation?

Summary

Does this PR introduce a breaking change?

Other information

linux-foundation-easycla[bot] commented 5 months ago

CLA Signed

The committers listed above are authorized under a signed CLA.

maverox commented 5 months ago

@evenstensberg @snitin315 , I have resolved the problem with rendering pushed the changes in the latest commits please have a look.

maverox commented 5 months ago

@snitin315 I have made all the changes you asked! PTAL

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.52%. Comparing base (31f634a) to head (3fb7b98). Report is 64 commits behind head on master.

:exclamation: There is a different number of reports uploaded between BASE (31f634a) and HEAD (3fb7b98). Click for more details.

HEAD has 36 uploads less than BASE | Flag | BASE (31f634a) | HEAD (3fb7b98) | |------|------|------| ||40|4|
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/webpack/webpack-cli/pull/4167/graphs/tree.svg?width=650&height=150&src=pr&token=6B6NxtsZc3&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack)](https://app.codecov.io/gh/webpack/webpack-cli/pull/4167?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack) ```diff @@ Coverage Diff @@ ## master #4167 +/- ## =========================================== - Coverage 90.18% 68.52% -21.67% =========================================== Files 22 9 -13 Lines 1702 1366 -336 Branches 491 427 -64 =========================================== - Hits 1535 936 -599 - Misses 167 430 +263 ``` [see 18 files with indirect coverage changes](https://app.codecov.io/gh/webpack/webpack-cli/pull/4167/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/webpack/webpack-cli/pull/4167?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/webpack/webpack-cli/pull/4167?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack). Last update [cd1099a...3fb7b98](https://app.codecov.io/gh/webpack/webpack-cli/pull/4167?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=webpack).
snitin315 commented 4 months ago

@maverox I scaffolded the project with the following answers, but when I started the project there were some errors.

? Enter the project destination: /Users/nitin.kumar/Projects/open-source/webpack-cli/packages/create-webpack-app/test-project
? Enter your project name: test
? Which of the following JS solutions do you want to use? none
? Would you like to use Webpack Dev server? Yes
? Do you want to simplify the creation of HTML files for your bundle? Yes
? Do you want to add PWA support? No
? Which of the following CSS solution do you want to use? CSS only
? Do you want to use PostCSS in your project? Yes
? Do you want to extract CSS into separate files? Only for Production
? Which package manager do you want to use? yarn
Screenshot 2024-06-15 at 8 13 14 AM