@rxap/plugin-storybook 20.0.1-dev.8 → 20.0.1
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 +24 -0
- package/package.json +9 -8
- package/src/generators/init/schema.d.ts +4 -2
- package/src/generators/init-application/generator.js.map +1 -1
- package/src/generators/init-application/init-project.js.map +1 -1
- package/src/generators/init-application/schema.d.ts +29 -4
- package/src/generators/init-library/init-project.js.map +1 -1
- package/src/generators/init-library/schema.d.ts +29 -4
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.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1-dev.13...@rxap/plugin-storybook@20.0.1) (2025-02-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/plugin-storybook
|
|
9
|
+
|
|
10
|
+
## [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)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @rxap/plugin-storybook
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @rxap/plugin-storybook
|
|
17
|
+
|
|
18
|
+
## [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)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @rxap/plugin-storybook
|
|
21
|
+
|
|
22
|
+
## [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)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @rxap/plugin-storybook
|
|
25
|
+
|
|
26
|
+
## [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)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @rxap/plugin-storybook
|
|
29
|
+
|
|
6
30
|
## [20.0.1-dev.8](https://gitlab.com/rxap/packages/compare/@rxap/plugin-storybook@20.0.1-dev.7...@rxap/plugin-storybook@20.0.1-dev.8) (2025-01-30)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @rxap/plugin-storybook
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "20.0.1
|
|
2
|
+
"version": "20.0.1",
|
|
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.
|
|
7
|
-
"@nx/devkit": "20.4.
|
|
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
|
|
10
|
-
"@rxap/utilities": "^16.4.2
|
|
11
|
-
"@rxap/workspace-ts-morph": "^19.1.9
|
|
12
|
-
"@rxap/workspace-utilities": "^19.6.1
|
|
10
|
+
"@rxap/ts-morph": "^1.5.3",
|
|
11
|
+
"@rxap/utilities": "^16.4.2",
|
|
12
|
+
"@rxap/workspace-ts-morph": "^19.1.9",
|
|
13
|
+
"@rxap/workspace-utilities": "^19.6.1",
|
|
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": "
|
|
47
|
+
"gitHead": "753c877fe1a5c2fcfa737310f6e99fd1371f9b4d",
|
|
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,
|
|
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,
|
|
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
|
-
|
|
1
|
+
export enum InitApplicationLinterGeneratorSchemaEnum {
|
|
2
|
+
ESLINT = 'eslint',
|
|
3
|
+
NONE = 'none'
|
|
4
|
+
}
|
|
2
5
|
|
|
3
|
-
export interface InitApplicationGeneratorSchema
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
1
|
+
export enum InitLibraryLinterGeneratorSchemaEnum {
|
|
2
|
+
ESLINT = 'eslint',
|
|
3
|
+
NONE = 'none'
|
|
4
|
+
}
|
|
2
5
|
|
|
3
|
-
export interface InitLibraryGeneratorSchema
|
|
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
|
-
|
|
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
|
}
|