Juri Strumpflohner c446aa5c1d
feat(storybook): add Webpack 5 support for React Storybook setups (#6791)
* feat(storybook): add Webpack 5 support for React Storybook setups

ISSUES CLOSED: #6703

* feat(storybook): adding storybook webpack 5 migration to web migrator

Co-authored-by: Katerina Skroumpelou <sk.katherine@gmail.com>
2021-10-08 21:51:04 -04:00
..
2021-09-20 16:39:13 -04:00

Nx - Smart, Extensible Build Framework

{{links}}


Web Plugin for Nx

{{what-is-nx}}

{{getting-started}}

? Workspace name (e.g., org name)     happyorg
? What to create in the new workspace web components    [a workspace with a single app built using web components]
? Application name                    myapp
? Default stylesheet format           CSS

If it's your first Nx project, the command will recommend you to install the nx package globally, so you can invoke nx directly without going through yarn or npm.

Serving Application

  • Run nx serve myapp to serve the newly generated application!
  • Run nx test myapp to test it.
  • Run nx e2e myapp-e2e to run e2e tests for it.

Adding Web Plugin Into an Existing Workspace

You can always add the web plugin to an existing workspace by installing @nrwl/web and then generating a web components application, as follows: nx g @nrwl/web:app myapp.

{{resources}}