65
loading...
This website collects cookies to deliver better user experience
workspace.json
and nx.json
files. For medium to large workspaces, these can be a source of merge conflicts, and limiting for existing repository structures. We've wanted to make this more flexible and scale easier for a long time, and have introduced per-project configuration in Nx workspaces using project.json
files. workspace.json
. For instance, a workspace.json
may contain projects configured as below.{
"projects": {
"mylib": "libs/mylib"
}
}
libs/mylib/project.json
file. This file contains a combination of the project's configuration from both workspace.json
and nx.json
, making projects
in the root nx.json
optional.{
"root": "libs/mylib/",
"sourceRoot": "libs/mylib/src",
"projectType": "library",
"targets": {},
"tags": [],
"implicitDependencies": []
}
--standaloneConfig
flag.nx g @nrwl/react:app my-app --standaloneConfig
convert-to-nx-project
generator.nx g @nrwl/workspace:convert-to-nx-project --all
--project
flag.nx g @nrwl/workspace:convert-to-nx-project --project my-project
@nrwl/storybook
package will be using @storybook/addon-controls
instead of @storybook/addon-knobs
to generate stories.storybook-configuration
generator will install the @storybook/addon-essentials
package, part of which is @storybook/addon-controls
. This includes some more "essential" Storybook features such as docs. To disable features you do not need anytime in your main.js
.nx migrate
to the latest version, your package.json
will be updated to include the @storybook/addon-essentials
package. The @storybook/addon-essentials
addon will be added in your addons
array in your root main.js
file. You will need to run npm/yarn install
to have it installed.@nrwl/storybook
, @nrwl/workspace
and @nrwl/angular
or @nrwl/react
, you will need to manually do yarn add -D @storybook/addon-essentials
. You will also need to add the addon manually in your addons
array in your root main.js
file.nx.json
, workspace.json
, and tsconfig.base.json
.nx migrate latest
nx migrate --run-migrations