-
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): use native storybook/angular executor
- Loading branch information
Showing
36 changed files
with
1,501 additions
and
851 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 | ||
``` |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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); |
11 changes: 11 additions & 0 deletions
11
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,11 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema", | ||
"$id": "NxAngularChangeStorybookTargetsGenerator", | ||
"title": "Change Storybook targets", | ||
"description": "Change the Storybook target executors.", | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { configurationGenerator } from './src/generators/configuration/configuration'; | ||
export { cypressProjectGenerator } from './src/generators/cypress-project/cypress-project'; | ||
export { changeStorybookTargetsGenerator } from './src/generators/change-storybook-targets/change-storybook-targets'; | ||
export { storybookVersion } from './src/utils/versions'; |
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.