-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storybook): change angular generator for storybook configuration
- Loading branch information
Showing
38 changed files
with
2,054 additions
and
685 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
docs/generated/api-angular/generators/change-storybook-targets.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: '@nrwl/angular:change-storybook-targets generator' | ||
description: 'Change Storybook targets to use native Storybook builders' | ||
--- | ||
|
||
# @nrwl/angular:change-storybook-targets | ||
|
||
Change Storybook targets to use native Storybook builders | ||
|
||
## Usage | ||
|
||
```bash | ||
nx generate change-storybook-targets ... | ||
``` | ||
|
||
By default, Nx will search for `change-storybook-targets` in the default collection provisioned in `workspace.json`. | ||
|
||
You can specify the collection explicitly as follows: | ||
|
||
```bash | ||
nx g @nrwl/angular:change-storybook-targets ... | ||
``` | ||
|
||
Show what will be generated without writing to disk: | ||
|
||
```bash | ||
nx g change-storybook-targets ... --dry-run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
docs/generated/api-storybook/generators/change-storybook-targets.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: '@nrwl/storybook:change-storybook-targets generator' | ||
description: 'Change Storybook targets to use native Storybook builders' | ||
--- | ||
|
||
# @nrwl/storybook:change-storybook-targets | ||
|
||
Change Storybook targets to use native Storybook builders | ||
|
||
## Usage | ||
|
||
```bash | ||
nx generate change-storybook-targets ... | ||
``` | ||
|
||
By default, Nx will search for `change-storybook-targets` in the default collection provisioned in `workspace.json`. | ||
|
||
You can specify the collection explicitly as follows: | ||
|
||
```bash | ||
nx g @nrwl/storybook:change-storybook-targets ... | ||
``` | ||
|
||
Show what will be generated without writing to disk: | ||
|
||
```bash | ||
nx g change-storybook-targets ... --dry-run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/angular/src/generators/change-storybook-targets/change-storybook-targets.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { Tree } from '@nrwl/devkit'; | ||
import { changeStorybookTargetsGenerator } from '@nrwl/storybook'; | ||
|
||
export async function angularChangeStorybookTargestGenerator(tree: Tree) { | ||
await changeStorybookTargetsGenerator(tree); | ||
} | ||
|
||
export default angularChangeStorybookTargestGenerator; |
4 changes: 4 additions & 0 deletions
4
packages/angular/src/generators/change-storybook-targets/compat.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { convertNxGenerator } from '@nrwl/devkit'; | ||
import angularChangeStorybookTargestGenerator from './change-storybook-targets'; | ||
|
||
export default convertNxGenerator(angularChangeStorybookTargestGenerator); |
9 changes: 9 additions & 0 deletions
9
packages/angular/src/generators/change-storybook-targets/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema", | ||
"$id": "NxAngularChangeStorybookTargetsGenerator", | ||
"type": "object", | ||
"cli": "nx", | ||
"properties": {}, | ||
"additionalProperties": false, | ||
"required": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.