@rxap/plugin-storybook 20.0.1-dev.9 → 20.0.2-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [20.0.2-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1...@rxap/plugin-storybook@20.0.2-dev.0) (2025-02-17)
7
+
8
+ **Note:** Version bump only for package @rxap/plugin-storybook
9
+
10
+ ## [20.0.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1-dev.13...@rxap/plugin-storybook@20.0.1) (2025-02-13)
11
+
12
+ **Note:** Version bump only for package @rxap/plugin-storybook
13
+
14
+ ## [20.0.1-dev.13](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1-dev.12...@rxap/plugin-storybook@20.0.1-dev.13) (2025-02-13)
15
+
16
+ **Note:** Version bump only for package @rxap/plugin-storybook
17
+
18
+ ## [20.0.1-dev.12](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1-dev.11...@rxap/plugin-storybook@20.0.1-dev.12) (2025-02-11)
19
+
20
+ **Note:** Version bump only for package @rxap/plugin-storybook
21
+
22
+ ## [20.0.1-dev.11](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1-dev.10...@rxap/plugin-storybook@20.0.1-dev.11) (2025-02-11)
23
+
24
+ **Note:** Version bump only for package @rxap/plugin-storybook
25
+
26
+ ## [20.0.1-dev.10](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1-dev.9...@rxap/plugin-storybook@20.0.1-dev.10) (2025-02-10)
27
+
28
+ **Note:** Version bump only for package @rxap/plugin-storybook
29
+
6
30
  ## [20.0.1-dev.9](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1-dev.8...@rxap/plugin-storybook@20.0.1-dev.9) (2025-02-07)
7
31
 
8
32
  **Note:** Version bump only for package @rxap/plugin-storybook
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @rxap/plugin-storybook
1
+ This package provides generators to initialize Storybook for Angular projects within an Nx workspace. It automates the configuration of Storybook, including adding dependencies, setting up configurations, and generating stories. It supports both application and library projects, and offers options to customize the setup, such as enabling Compodoc integration and skipping format checks.
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@rxap/plugin-storybook?style=flat-square)](https://www.npmjs.com/package/@rxap/plugin-storybook)
4
4
  [![commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commitizen.github.io/cz-cli/)
@@ -9,6 +9,9 @@
9
9
 
10
10
  - [Installation](#installation)
11
11
  - [Generators](#generators)
12
+ - [init](#init)
13
+ - [init-application](#init-application)
14
+ - [init-library](#init-library)
12
15
 
13
16
  # Installation
14
17
 
@@ -26,40 +29,63 @@ yarn nx g @rxap/plugin-storybook:init
26
29
  > init generator
27
30
 
28
31
  ```bash
29
- yarn nx g @rxap/plugin-storybook:init
32
+ nx g @rxap/plugin-storybook:init
30
33
  ```
31
34
 
32
- ## init-application
33
- > init-application generator
34
-
35
- ```bash
36
- yarn nx g @rxap/plugin-storybook:init-application
37
- ```
38
-
39
- ## init-library
40
- > init-library generator
41
-
42
- ```bash
43
- yarn nx g @rxap/plugin-storybook:init-library
44
- ```
45
-
46
- ## init
47
- > init generator
48
-
49
- ```bash
50
- yarn nx g @rxap/plugin-storybook:init
51
- ```
35
+ Option | Type | Default | Description
36
+ --- | --- | --- | ---
37
+ project | string | |
38
+ projects | array | |
39
+ skipFormat | boolean | false |
40
+ overwrite | boolean | false | Whether to overwrite existing files
41
+ skipProjects | boolean | false | Whether to skip executing project specific initialization
52
42
 
53
43
  ## init-application
54
44
  > init-application generator
55
45
 
56
46
  ```bash
57
- yarn nx g @rxap/plugin-storybook:init-application
47
+ nx g @rxap/plugin-storybook:init-application
58
48
  ```
59
49
 
50
+ Option | Type | Default | Description
51
+ --- | --- | --- | ---
52
+ project | string | |
53
+ projects | array | |
54
+ overwrite | boolean | false | Whether to overwrite existing files
55
+ skipProjects | boolean | false | Whether to skip executing project specific initialization
56
+ interactionTests | boolean | true | Set up Storybook interaction tests.
57
+ configureCypress | boolean | | Specifies whether to configure Cypress or not.
58
+ generateStories | boolean | true | Specifies whether to automatically generate `*.stories.ts` files for components declared in this project or not.
59
+ generateCypressSpecs | boolean | | Specifies whether to automatically generate test files in the generated Cypress e2e app.
60
+ configureStaticServe | boolean | true | Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times.
61
+ cypressDirectory | string | | A directory where the Cypress project will be placed. Placed at the root by default.
62
+ linter | string | eslint | The tool to use for running lint checks.
63
+ tsConfiguration | boolean | true | Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.
64
+ skipFormat | boolean | false | Skip formatting files.
65
+ ignorePaths | array | | Paths to ignore when looking for components.
66
+ compodoc | boolean | true | Generate documentation using Compodoc.
67
+
60
68
  ## init-library
61
69
  > init-library generator
62
70
 
63
71
  ```bash
64
- yarn nx g @rxap/plugin-storybook:init-library
72
+ nx g @rxap/plugin-storybook:init-library
65
73
  ```
74
+
75
+ Option | Type | Default | Description
76
+ --- | --- | --- | ---
77
+ project | string | |
78
+ projects | array | |
79
+ overwrite | boolean | false | Whether to overwrite existing files
80
+ skipProjects | boolean | false | Whether to skip executing project specific initialization
81
+ interactionTests | boolean | true | Set up Storybook interaction tests.
82
+ configureCypress | boolean | | Specifies whether to configure Cypress or not.
83
+ generateStories | boolean | true | Specifies whether to automatically generate `*.stories.ts` files for components declared in this project or not.
84
+ generateCypressSpecs | boolean | | Specifies whether to automatically generate test files in the generated Cypress e2e app.
85
+ configureStaticServe | boolean | true | Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times.
86
+ cypressDirectory | string | | A directory where the Cypress project will be placed. Placed at the root by default.
87
+ linter | string | eslint | The tool to use for running lint checks.
88
+ tsConfiguration | boolean | true | Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.
89
+ skipFormat | boolean | false | Skip formatting files.
90
+ ignorePaths | array | | Paths to ignore when looking for components.
91
+ compodoc | boolean | true | Generate documentation using Compodoc.
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
- "version": "20.0.1-dev.9",
2
+ "version": "20.0.2-dev.0",
3
3
  "name": "@rxap/plugin-storybook",
4
+ "description": "This package provides generators to initialize Storybook for Angular projects within an Nx workspace. It automates the configuration of Storybook, including adding dependencies, setting up configurations, and generating stories. It supports both application and library projects, and offers options to customize the setup, such as enabling Compodoc integration and skipping format checks.\n",
4
5
  "license": "MIT",
5
6
  "dependencies": {
6
- "@nx/angular": "20.4.1",
7
- "@nx/devkit": "20.4.1",
7
+ "@nx/angular": "20.4.2",
8
+ "@nx/devkit": "20.4.2",
8
9
  "@nx/eslint": "^20.3.1",
9
- "@rxap/ts-morph": "^1.5.3-dev.4",
10
- "@rxap/utilities": "^16.4.2-dev.3",
11
- "@rxap/workspace-ts-morph": "^19.1.9-dev.9",
12
- "@rxap/workspace-utilities": "^19.6.1-dev.8",
10
+ "@rxap/ts-morph": "^1.5.3",
11
+ "@rxap/utilities": "^16.4.2",
12
+ "@rxap/workspace-ts-morph": "^19.1.10-dev.0",
13
+ "@rxap/workspace-utilities": "^19.6.2-dev.0",
13
14
  "colors": "^1.4.0",
14
15
  "ts-morph": "^18.0.0",
15
16
  "tslib": "2.6.2"
@@ -43,7 +44,7 @@
43
44
  },
44
45
  "schematics": "./generators.json",
45
46
  "type": "commonjs",
46
- "gitHead": "8752e61e1fece0611811cb06ac2e31f0e6610549",
47
+ "gitHead": "0b022b6165e06718ce3edf73ae1d5375f0ff3413",
47
48
  "types": "./src/index.d.ts",
48
49
  "main": "./src/index.js"
49
50
  }
@@ -1,7 +1,9 @@
1
1
  export interface InitGeneratorSchema {
2
2
  project?: string;
3
- projects?: string[];
3
+ projects?: Array<string>;
4
+ skipFormat?: boolean;
5
+ /** Whether to overwrite existing files */
4
6
  overwrite?: boolean;
7
+ /** Whether to skip executing project specific initialization */
5
8
  skipProjects?: boolean;
6
- skipFormat?: boolean;
7
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/storybook/src/generators/init-application/generator.ts"],"names":[],"mappings":";;AAmBA,4DAwCC;;AA3DD,uCAKoB;AACpB,+CAGyB;AACzB,mEAGmC;AACnC,iDAA6C;AAC7C,qDAAiD;AAEjD,iDAA6C;AAE7C,SAAsB,wBAAwB,CAC5C,IAAU,EACV,OAAuC;;;QAEvC,MAAA,OAAO,CAAC,OAAO,oCAAf,OAAO,CAAC,OAAO,GAAK,SAAS,EAAC;QAC9B,MAAA,OAAO,CAAC,QAAQ,oCAAhB,OAAO,CAAC,QAAQ,GAAK,EAAE,EAAC;QACxB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,IAAA,4BAAgB,EAAC,OAAO,CAAC,QAAQ,EAAE,CAAE,OAAO,CAAC,OAAO,CAAE,CAAC,CAAC;QAC1D,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,OAAO,CAAC,CAAC;QAE9D,MAAM,IAAA,8BAAa,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEnC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;YAE1B,KAAK,MAAM,CAAE,WAAW,EAAE,OAAO,CAAE,IAAI,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;gBAEnE,IAAI,IAAA,0BAAW,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,CAAC;oBACrD,SAAS;gBACX,CAAC;gBAED,MAAM,IAAA,0BAAW,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;gBAEvD,IAAA,qDAA+B,EAC7B,IAAI,EACJ,IAAA,oCAAc,EAAC,IAAI,EAAE,WAAW,CAAC,EACjC,wBAAwB,EACxB,kBAAkB,EAClB,IAAA,4BAAgB,EAAC,OAAO,EAAE,CAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,CAAE,CAAC,CAClF,CAAC;gBAEF,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACzD,CAAC;QAEH,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IAEH,CAAC;CAAA;AAED,kBAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/storybook/src/generators/init-application/generator.ts"],"names":[],"mappings":";;AAmBA,4DAwCC;;AA3DD,uCAKoB;AACpB,+CAGyB;AACzB,mEAGmC;AACnC,iDAA6C;AAC7C,qDAAiD;AAEjD,iDAA6C;AAE7C,SAAsB,wBAAwB,CAC5C,IAAU,EACV,OAAuC;;;QAEvC,MAAA,OAAO,CAAC,OAAO,oCAAf,OAAO,CAAC,OAAO,GAAK,SAAS,EAAC;QAC9B,MAAA,OAAO,CAAC,QAAQ,oCAAhB,OAAO,CAAC,QAAQ,GAAK,EAAE,EAAC;QACxB,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,IAAA,4BAAgB,EAAC,OAAO,CAAC,QAAQ,EAAE,CAAE,OAAO,CAAC,OAAO,CAAE,CAAC,CAAC;QAC1D,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,OAAO,CAAC,CAAC;QAE9D,MAAM,IAAA,8BAAa,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAEnC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;YAE1B,KAAK,MAAM,CAAE,WAAW,EAAE,OAAO,CAAE,IAAI,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;gBAEnE,IAAI,IAAA,0BAAW,EAAC,IAAI,EAAE,OAAc,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,CAAC;oBAC5D,SAAS;gBACX,CAAC;gBAED,MAAM,IAAA,0BAAW,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;gBAEvD,IAAA,qDAA+B,EAC7B,IAAI,EACJ,IAAA,oCAAc,EAAC,IAAI,EAAE,WAAW,CAAC,EACjC,wBAAwB,EACxB,kBAAkB,EAClB,IAAA,4BAAgB,EAAC,OAAO,EAAE,CAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,CAAE,CAAC,CAClF,CAAC;gBAEF,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACzD,CAAC;QAEH,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IAEH,CAAC;CAAA;AAED,kBAAe,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"init-project.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/storybook/src/generators/init-application/init-project.ts"],"names":[],"mappings":";;AAOA,kCAKC;;AARD,+DAAiF;AAGjF,SAAsB,WAAW,CAAC,IAAU,EAAE,WAAmB,EAAE,OAA6B,EAAE,OAAuC;;QACvI,OAAO,CAAC,GAAG,CAAC,uCAAwC,WAAY,EAAE,CAAC,CAAC;QAEpE,MAAM,IAAA,0BAAkB,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAEhE,CAAC;CAAA"}
1
+ {"version":3,"file":"init-project.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/storybook/src/generators/init-application/init-project.ts"],"names":[],"mappings":";;AAOA,kCAKC;;AARD,+DAAiF;AAGjF,SAAsB,WAAW,CAAC,IAAU,EAAE,WAAmB,EAAE,OAA6B,EAAE,OAAuC;;QACvI,OAAO,CAAC,GAAG,CAAC,uCAAwC,WAAY,EAAE,CAAC,CAAC;QAEpE,MAAM,IAAA,0BAAkB,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAc,CAAC,CAAC;IAEvE,CAAC;CAAA"}
@@ -1,10 +1,35 @@
1
- import { StorybookConfigurationOptions } from '@nx/angular/src/generators/storybook-configuration/schema';
1
+ export enum InitApplicationLinterGeneratorSchemaEnum {
2
+ ESLINT = 'eslint',
3
+ NONE = 'none'
4
+ }
2
5
 
3
- export interface InitApplicationGeneratorSchema extends Omit<StorybookConfigurationOptions, 'name'> {
6
+ export interface InitApplicationGeneratorSchema {
4
7
  project?: string;
5
- projects?: string[];
8
+ projects?: Array<string>;
9
+ /** Whether to overwrite existing files */
6
10
  overwrite?: boolean;
11
+ /** Whether to skip executing project specific initialization */
7
12
  skipProjects?: boolean;
8
- compodoc?: boolean;
13
+ /** Set up Storybook interaction tests. */
14
+ interactionTests?: boolean;
15
+ /** Specifies whether to configure Cypress or not. */
16
+ configureCypress?: boolean;
17
+ /** Specifies whether to automatically generate `*.stories.ts` files for components declared in this project or not. */
18
+ generateStories?: boolean;
19
+ /** Specifies whether to automatically generate test files in the generated Cypress e2e app. */
20
+ generateCypressSpecs?: boolean;
21
+ /** Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times. */
22
+ configureStaticServe?: boolean;
23
+ /** A directory where the Cypress project will be placed. Placed at the root by default. */
24
+ cypressDirectory?: string;
25
+ /** The tool to use for running lint checks. */
26
+ linter?: InitApplicationLinterGeneratorSchemaEnum;
27
+ /** Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js. */
28
+ tsConfiguration?: boolean;
29
+ /** Skip formatting files. */
9
30
  skipFormat?: boolean;
31
+ /** Paths to ignore when looking for components. */
32
+ ignorePaths?: Array<string>;
33
+ /** Generate documentation using Compodoc. */
34
+ compodoc?: boolean;
10
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"init-project.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/storybook/src/generators/init-library/init-project.ts"],"names":[],"mappings":";;AAgBA,kCAiBC;;AA7BD,mEAGmC;AACnC,+BAA4B;AAC5B,uDAAmD;AACnD,6DAAyD;AACzD,2EAAsE;AACtE,iEAA6D;AAC7D,iEAA4D;AAG5D,SAAsB,WAAW,CAAC,IAAU,EAAE,WAAmB,EAAE,OAA6B,EAAE,OAAmC;;QACnI,OAAO,CAAC,GAAG,CAAC,mCAAoC,WAAY,EAAE,CAAC,CAAC;QAEhE,MAAM,IAAA,kCAAe,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAE3D,MAAM,WAAW,GAAG,IAAA,oCAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACtD,IAAA,0CAAoB,EAAC,IAAI,EAAE;YACzB,SAAS,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC;YAChD,MAAM,EAAE,IAAA,WAAI,EAAC,WAAW,EAAE,YAAY,CAAC;YACvC,SAAS,EAAE,OAAO,CAAC,SAAS;SAC7B,CAAC,CAAC;QAEH,MAAM,IAAA,wBAAU,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACtD,MAAM,IAAA,8BAAa,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,IAAA,2CAAmB,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC/D,IAAA,iCAAc,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAE7C,CAAC;CAAA"}
1
+ {"version":3,"file":"init-project.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/storybook/src/generators/init-library/init-project.ts"],"names":[],"mappings":";;AAgBA,kCAiBC;;AA7BD,mEAGmC;AACnC,+BAA4B;AAC5B,uDAAmD;AACnD,6DAAyD;AACzD,2EAAsE;AACtE,iEAA6D;AAC7D,iEAA4D;AAG5D,SAAsB,WAAW,CAAC,IAAU,EAAE,WAAmB,EAAE,OAA6B,EAAE,OAAmC;;QACnI,OAAO,CAAC,GAAG,CAAC,mCAAoC,WAAY,EAAE,CAAC,CAAC;QAEhE,MAAM,IAAA,kCAAe,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAc,CAAC,CAAC;QAElE,MAAM,WAAW,GAAG,IAAA,oCAAc,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QACtD,IAAA,0CAAoB,EAAC,IAAI,EAAE;YACzB,SAAS,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC;YAChD,MAAM,EAAE,IAAA,WAAI,EAAC,WAAW,EAAE,YAAY,CAAC;YACvC,SAAS,EAAE,OAAO,CAAC,SAAS;SAC7B,CAAC,CAAC;QAEH,MAAM,IAAA,wBAAU,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACtD,MAAM,IAAA,8BAAa,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QAChD,MAAM,IAAA,2CAAmB,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC/D,IAAA,iCAAc,EAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IAE7C,CAAC;CAAA"}
@@ -1,10 +1,35 @@
1
- import { StorybookConfigurationOptions } from '@nx/angular/src/generators/storybook-configuration/schema';
1
+ export enum InitLibraryLinterGeneratorSchemaEnum {
2
+ ESLINT = 'eslint',
3
+ NONE = 'none'
4
+ }
2
5
 
3
- export interface InitLibraryGeneratorSchema extends Omit<StorybookConfigurationOptions, 'name'> {
6
+ export interface InitLibraryGeneratorSchema {
4
7
  project?: string;
5
- projects?: string[];
8
+ projects?: Array<string>;
9
+ /** Whether to overwrite existing files */
6
10
  overwrite?: boolean;
11
+ /** Whether to skip executing project specific initialization */
7
12
  skipProjects?: boolean;
8
- compodoc?: boolean;
13
+ /** Set up Storybook interaction tests. */
14
+ interactionTests?: boolean;
15
+ /** Specifies whether to configure Cypress or not. */
16
+ configureCypress?: boolean;
17
+ /** Specifies whether to automatically generate `*.stories.ts` files for components declared in this project or not. */
18
+ generateStories?: boolean;
19
+ /** Specifies whether to automatically generate test files in the generated Cypress e2e app. */
20
+ generateCypressSpecs?: boolean;
21
+ /** Specifies whether to configure a static file server target for serving storybook. Helpful for speeding up CI build/test times. */
22
+ configureStaticServe?: boolean;
23
+ /** A directory where the Cypress project will be placed. Placed at the root by default. */
24
+ cypressDirectory?: string;
25
+ /** The tool to use for running lint checks. */
26
+ linter?: InitLibraryLinterGeneratorSchemaEnum;
27
+ /** Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js. */
28
+ tsConfiguration?: boolean;
29
+ /** Skip formatting files. */
9
30
  skipFormat?: boolean;
31
+ /** Paths to ignore when looking for components. */
32
+ ignorePaths?: Array<string>;
33
+ /** Generate documentation using Compodoc. */
34
+ compodoc?: boolean;
10
35
  }