forked from nrwl/nx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular): generate storybook configuration with proper linter (nr…
- Loading branch information
1 parent
8d835ad
commit d796731
Showing
7 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
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
55 changes: 55 additions & 0 deletions
55
...s/angular/src/schematics/storybook-configuration/__snapshots__/configuration.spec.ts.snap
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,55 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`schematic:configuration should generate the right files 1`] = ` | ||
Array [ | ||
"/workspace.json", | ||
"/package.json", | ||
"/nx.json", | ||
"/tsconfig.base.json", | ||
"/tslint.json", | ||
"/jest.config.js", | ||
"/libs/test-ui-lib/README.md", | ||
"/libs/test-ui-lib/tsconfig.lib.json", | ||
"/libs/test-ui-lib/tslint.json", | ||
"/libs/test-ui-lib/tsconfig.json", | ||
"/libs/test-ui-lib/jest.config.js", | ||
"/libs/test-ui-lib/tsconfig.spec.json", | ||
"/libs/test-ui-lib/src/index.ts", | ||
"/libs/test-ui-lib/src/test-setup.ts", | ||
"/libs/test-ui-lib/src/lib/test-ui-lib.module.ts", | ||
"/libs/test-ui-lib/src/lib/test-button/test-button.component.css", | ||
"/libs/test-ui-lib/src/lib/test-button/test-button.component.html", | ||
"/libs/test-ui-lib/src/lib/test-button/test-button.component.spec.ts", | ||
"/libs/test-ui-lib/src/lib/test-button/test-button.component.ts", | ||
"/libs/test-ui-lib/src/lib/test-button/test-button.component.stories.ts", | ||
"/libs/test-ui-lib/src/lib/nested/nested.module.ts", | ||
"/libs/test-ui-lib/src/lib/nested/nested-button/nested-button.component.css", | ||
"/libs/test-ui-lib/src/lib/nested/nested-button/nested-button.component.html", | ||
"/libs/test-ui-lib/src/lib/nested/nested-button/nested-button.component.spec.ts", | ||
"/libs/test-ui-lib/src/lib/nested/nested-button/nested-button.component.ts", | ||
"/libs/test-ui-lib/src/lib/nested/nested-button/nested-button.component.stories.ts", | ||
"/libs/test-ui-lib/src/lib/test-other/test-other.component.css", | ||
"/libs/test-ui-lib/src/lib/test-other/test-other.component.html", | ||
"/libs/test-ui-lib/src/lib/test-other/test-other.component.spec.ts", | ||
"/libs/test-ui-lib/src/lib/test-other/test-other.component.ts", | ||
"/libs/test-ui-lib/src/lib/test-other/test-other.component.stories.ts", | ||
"/libs/test-ui-lib/.storybook/tsconfig.json", | ||
"/libs/test-ui-lib/.storybook/addons.js", | ||
"/libs/test-ui-lib/.storybook/config.js", | ||
"/libs/test-ui-lib/.storybook/webpack.config.js", | ||
"/.storybook/addons.js", | ||
"/.storybook/tsconfig.json", | ||
"/.storybook/webpack.config.js", | ||
"/apps/test-ui-lib-e2e/tslint.json", | ||
"/apps/test-ui-lib-e2e/cypress.json", | ||
"/apps/test-ui-lib-e2e/tsconfig.e2e.json", | ||
"/apps/test-ui-lib-e2e/tsconfig.json", | ||
"/apps/test-ui-lib-e2e/src/fixtures/example.json", | ||
"/apps/test-ui-lib-e2e/src/plugins/index.js", | ||
"/apps/test-ui-lib-e2e/src/support/commands.ts", | ||
"/apps/test-ui-lib-e2e/src/support/index.ts", | ||
"/apps/test-ui-lib-e2e/src/integration/test-button/test-button.component.spec.ts", | ||
"/apps/test-ui-lib-e2e/src/integration/test-other/test-other.component.spec.ts", | ||
"/apps/test-ui-lib-e2e/src/integration/nested-button/nested-button.component.spec.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
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
3 changes: 3 additions & 0 deletions
3
packages/angular/src/schematics/storybook-configuration/schema.d.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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import { Linter } from '@nrwl/workspace'; | ||
|
||
export interface StorybookConfigureSchema { | ||
name: string; | ||
configureCypress: boolean; | ||
generateStories: boolean; | ||
generateCypressSpecs: boolean; | ||
linter: Linter; | ||
} |
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