docs(core): fix example for package.json dependsOn config
This commit is contained in:
parent
df4ba33a6d
commit
88daef1356
@ -47,8 +47,10 @@ You can add Nx-specific configuration as follows:
|
|||||||
"test": {
|
"test": {
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
|
{
|
||||||
"target": "build",
|
"target": "build",
|
||||||
"projects": "self"
|
"projects": "self"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,6 +35,14 @@ Type: `string`
|
|||||||
|
|
||||||
The name of the directive.
|
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
|
### flat
|
||||||
|
|
||||||
Default: `true`
|
Default: `true`
|
||||||
|
|||||||
@ -35,6 +35,14 @@ Type: `string`
|
|||||||
|
|
||||||
The name of the pipe.
|
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
|
### flat
|
||||||
|
|
||||||
Default: `true`
|
Default: `true`
|
||||||
|
|||||||
@ -57,6 +57,14 @@ Type: `boolean`
|
|||||||
|
|
||||||
Specifies if the style will contain `:host { display: block; }`.
|
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
|
### flat
|
||||||
|
|
||||||
Default: `false`
|
Default: `false`
|
||||||
|
|||||||
@ -47,8 +47,10 @@ You can add Nx-specific configuration as follows:
|
|||||||
"test": {
|
"test": {
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
|
{
|
||||||
"target": "build",
|
"target": "build",
|
||||||
"projects": "self"
|
"projects": "self"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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:
|
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": {
|
"storybook": {
|
||||||
"executor": "@nrwl/storybook:storybook",
|
"executor": "@nrwl/storybook:storybook",
|
||||||
"options": {
|
"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:
|
After you add this property, you can run your `storybook` and `build-storybook` executors as normal:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
nx storybook my-project
|
nx storybook my-project
|
||||||
```
|
```
|
||||||
|
|
||||||
and
|
and
|
||||||
|
|
||||||
```
|
```bash
|
||||||
nx build-storybook my-project
|
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:
|
The way you would run your `storybook` and your `build-storybook` executors would be:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
nx storybook my-project --projectBuildConfig=my-project:build-storybook
|
nx storybook my-project --projectBuildConfig=my-project:build-storybook
|
||||||
```
|
```
|
||||||
|
|
||||||
and
|
and
|
||||||
|
|
||||||
```
|
```bash
|
||||||
nx build-storybook my-project --projectBuildConfig=my-project:build-storybook
|
nx build-storybook my-project --projectBuildConfig=my-project:build-storybook
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user