docs(core): fix example for package.json dependsOn config

This commit is contained in:
Juri 2022-01-26 09:29:59 +01:00 committed by Juri Strumpflohner
parent df4ba33a6d
commit 88daef1356
6 changed files with 37 additions and 9 deletions

View File

@ -47,8 +47,10 @@ You can add Nx-specific configuration as follows:
"test": {
"outputs": [],
"dependsOn": [
{
"target": "build",
"projects": "self"
}
]
}
}

View File

@ -35,6 +35,14 @@ Type: `string`
The name of the directive.
### export
Default: `false`
Type: `boolean`
Specifies if the SCAM should be exported from the project's entry point (normally `index.ts`). It only applies to libraries.
### flat
Default: `true`

View File

@ -35,6 +35,14 @@ Type: `string`
The name of the pipe.
### export
Default: `false`
Type: `boolean`
Specifies if the SCAM should be exported from the project's entry point (normally `index.ts`). It only applies to libraries.
### flat
Default: `true`

View File

@ -57,6 +57,14 @@ Type: `boolean`
Specifies if the style will contain `:host { display: block; }`.
### export
Default: `false`
Type: `boolean`
Specifies if the SCAM should be exported from the project's entry point (normally `index.ts`). It only applies to libraries.
### flat
Default: `false`

View File

@ -47,8 +47,10 @@ You can add Nx-specific configuration as follows:
"test": {
"outputs": [],
"dependsOn": [
{
"target": "build",
"projects": "self"
}
]
}
}

View File

@ -194,7 +194,7 @@ Storybook for Angular needs a default project specified in order to run. The rea
If you're using Nx version `>=13.4.6` either in a new Nx workspace, or you migrated your older Nx workspace to Nx version `>=13.4.6`, Nx will automatically add the `projectBuildConfig` property in your projects `project.json` files, for projects that are using Storybook. It will look like this:
```
```json
"storybook": {
"executor": "@nrwl/storybook:storybook",
"options": {
@ -224,13 +224,13 @@ In your project's `project.json` file find the `storybook` and `build-storybook`
After you add this property, you can run your `storybook` and `build-storybook` executors as normal:
```
```bash
nx storybook my-project
```
and
```
```bash
nx build-storybook my-project
```
@ -238,13 +238,13 @@ nx build-storybook my-project
The way you would run your `storybook` and your `build-storybook` executors would be:
```
```bash
nx storybook my-project --projectBuildConfig=my-project:build-storybook
```
and
```
```bash
nx build-storybook my-project --projectBuildConfig=my-project:build-storybook
```