@nrwl/storybook 13.4.5-beta.5 → 13.4.6
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/README.md +8 -85
- package/migrations.json +35 -0
- package/package.json +5 -5
- package/src/executors/utils.d.ts +8 -0
- package/src/executors/utils.js +33 -13
- package/src/executors/utils.js.map +1 -1
- package/src/generators/configuration/configuration.js +15 -3
- package/src/generators/configuration/configuration.js.map +1 -1
- package/src/migrations/update-13-4-6/set-project-build-config.d.ts +2 -0
- package/src/migrations/update-13-4-6/set-project-build-config.js +58 -0
- package/src/migrations/update-13-4-6/set-project-build-config.js.map +1 -0
- package/src/migrations/update-13-4-6/test-configs/custom-names-config.json +146 -0
- package/src/migrations/update-13-4-6/test-configs/default-config.json +146 -0
- package/src/migrations/update-13-4-6/test-configs/non-angular.json +60 -0
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +2 -2
- package/src/utils/versions.js.map +1 -1
package/README.md
CHANGED
|
@@ -17,38 +17,9 @@
|
|
|
17
17
|
|
|
18
18
|
# Storybook Plugin for Nx
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
# Smart, Fast and Extensible Build System
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Nx is a smart, fast and extensible build system. It comes with first class monorepo support and powerful integrations.
|
|
25
|
-
|
|
26
|
-
### Best-in-Class Support for Monorepos
|
|
27
|
-
|
|
28
|
-
<strong>Nx</strong> provides distributed graph-based task execution and computation caching.
|
|
29
|
-
|
|
30
|
-
<strong>Nx</strong> is smart. It analyzes your workspace and figures out what can be affected by every code change.
|
|
31
|
-
That's why Nx doesn't rebuild and retest everything on every commit--<strong>it only rebuilds what is necessary</strong>
|
|
32
|
-
.
|
|
33
|
-
|
|
34
|
-
<strong>Nx</strong> partitions commands into a graph of smaller tasks. Nx then runs those tasks in parallel,
|
|
35
|
-
and <strong>it can even distribute them across multiple machines without any configuration</strong>.
|
|
36
|
-
|
|
37
|
-
<strong>Nx also uses a distributed computation cache.</strong> If someone has already built or tested similar code, Nx
|
|
38
|
-
will use their results to speed up the command for everyone else.
|
|
39
|
-
|
|
40
|
-
### Holistic Dev Experience Powered by an Advanced CLI and Editor Plugins
|
|
41
|
-
|
|
42
|
-
<strong>Nx</strong> helps scale your development from one team building one application to many teams building multiple
|
|
43
|
-
frontend and backend applications all in the same workspace. <strong >When using Nx, developers have a holistic dev
|
|
44
|
-
experience powered by an advanced CLI</strong > (with editor plugins), capabilities for controlled code sharing and
|
|
45
|
-
consistent code generation.
|
|
46
|
-
|
|
47
|
-
### Rich Plugin Ecosystem
|
|
48
|
-
|
|
49
|
-
<strong>Nx</strong> is an open platform with plugins for many modern tools and frameworks. It has support for
|
|
50
|
-
TypeScript, React, Angular, Cypress, Jest, Prettier, Nest.js, Next.js, Storybook, Ionic among others. With Nx, you get a
|
|
51
|
-
consistent dev experience regardless of the tools used.
|
|
22
|
+
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
52
23
|
|
|
53
24
|
|
|
54
25
|
## What is It?
|
|
@@ -61,61 +32,13 @@ This package is used by the `@nrwl/web`, `@nrwl/react`, and `@nrwl/angular`. See
|
|
|
61
32
|
|
|
62
33
|
## Documentation & Resources
|
|
63
34
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
- [Nx Documentation and Guides](https://nx.dev)
|
|
67
|
-
- [Intro into Nx](https://nx.dev/getting-started/intro)
|
|
68
|
-
- [Interactive Tutorial with Videos](https://nx.dev/tutorial/01-create-application)
|
|
69
|
-
|
|
70
|
-
### Quick Start Videos
|
|
71
|
-
|
|
72
|
-
- [Scale Your React Development with Nx](https://www.youtube.com/watch?v=sNz-4PUM0k8)
|
|
73
|
-
- [Scale your Node Development with Nx](https://www.youtube.com/watch?v=iIh5h_G52kI)
|
|
74
|
-
- [Modern Angular with Nx Dev Tools](https://www.youtube.com/watch?v=cXOkmOy-8dk)
|
|
75
|
-
|
|
76
|
-
### Courses
|
|
77
|
-
|
|
78
|
-
<table>
|
|
79
|
-
<tr>
|
|
80
|
-
<td><strong>Scale React Development with Nx</strong></td>
|
|
81
|
-
<td><strong>Nx Workspaces</strong></td>
|
|
82
|
-
<td><strong>Advanced Nx Workspaces</strong></td>
|
|
83
|
-
</tr>
|
|
84
|
-
<tr>
|
|
85
|
-
<td>
|
|
86
|
-
<a href="https://egghead.io/playlists/scale-react-development-with-nx-4038" target="_blank">
|
|
87
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/EGH_ScalingReactNx.png" height="150px" alt="Nx - Scale React Development with Nx video course"></p>
|
|
88
|
-
</a>
|
|
89
|
-
</td>
|
|
90
|
-
<td>
|
|
91
|
-
<a href="https://www.youtube.com/watch?v=2mYLe9Kp9VM&list=PLakNactNC1dH38AfqmwabvOszDmKriGco" target="_blank">
|
|
92
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-workspace-course.png" width="350" alt="Nx Workspaces video course"></p>
|
|
93
|
-
</a>
|
|
94
|
-
</td>
|
|
95
|
-
<td>
|
|
96
|
-
<a href="https://nxplaybook.com/p/advanced-nx-workspaces" target="_blank">
|
|
97
|
-
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/advanced-nx-workspace-course.png" width="350" alt="Nx Advanced Workspaces video course"></p>
|
|
98
|
-
</a>
|
|
99
|
-
</td>
|
|
100
|
-
</tr>
|
|
101
|
-
</table>
|
|
102
|
-
|
|
103
|
-
### Videos, Blogs, Books, Examples
|
|
104
|
-
|
|
105
|
-
- [Nx Dev Tools for Monorepos, In-Depth Explainer (React)](https://www.youtube.com/watch?v=jCf92IyR-GE)
|
|
106
|
-
|
|
107
|
-
- [Nx Dev Tools for Monorepos, In-Depth Explainer (Angular)](https://youtu.be/h5FIGDn5YM0)
|
|
108
|
-
|
|
109
|
-
- [Youtube Channel with Nx-Related Videos](https://www.youtube.com/playlist?list=PLakNactNC1dHHWx4JIORwfnEajRv6FG5m)
|
|
35
|
+
A few links to help you get started:
|
|
110
36
|
|
|
37
|
+
- [Nx.Dev: Documentation, Guides, Interactive Tutorials](https://nx.dev)
|
|
38
|
+
- [Tutorial: Adding Nx to an Existing Monorepo](https://nx.dev/migration/adding-to-monorepo)
|
|
39
|
+
- [Official Nx YouTube Channel](https://www.youtube.com/c/Nrwl_io)
|
|
111
40
|
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
112
41
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
- [Nx Examples Repo](https://github.com/nrwl/nx-examples)
|
|
116
|
-
|
|
117
|
-
# Engage with the Core Team and the Community
|
|
118
|
-
|
|
119
|
-
- [The Nx Show Playlist on YouTube](https://www.youtube.com/playlist?list=PLakNactNC1dE8KLQ5zd3fQwu_yQHjTmR5). It's a regular YouTube stream where we talk all things Nx. Join the stream, ask questions, etc.
|
|
120
|
-
- [Follow Nx on Twitter](https://twitter.com/NxDevTools)
|
|
42
|
+
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank"><img src="./images/nx-courses-and-videos.svg"
|
|
43
|
+
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
121
44
|
|
package/migrations.json
CHANGED
|
@@ -72,9 +72,44 @@
|
|
|
72
72
|
"cli": "nx",
|
|
73
73
|
"description": "Adjust Storybook tsconfig to add styled-jsx typings",
|
|
74
74
|
"factory": "./src/migrations/update-12-8-0/update-storybook-styled-jsx-typings"
|
|
75
|
+
},
|
|
76
|
+
"update-13.4.6": {
|
|
77
|
+
"version": "13.4.6-beta.1",
|
|
78
|
+
"cli": "nx",
|
|
79
|
+
"description": "Add projectBuildConfig option to project's Storybook config.",
|
|
80
|
+
"factory": "./src/migrations/update-13-4-6/set-project-build-config"
|
|
75
81
|
}
|
|
76
82
|
},
|
|
77
83
|
"packageJsonUpdates": {
|
|
84
|
+
"13.4.5": {
|
|
85
|
+
"version": "13.4.5-beta.1",
|
|
86
|
+
"packages": {
|
|
87
|
+
"@storybook/angular": {
|
|
88
|
+
"version": "~6.4.12",
|
|
89
|
+
"alwaysAddToPackageJson": false
|
|
90
|
+
},
|
|
91
|
+
"@storybook/react": {
|
|
92
|
+
"version": "~6.4.12",
|
|
93
|
+
"alwaysAddToPackageJson": false
|
|
94
|
+
},
|
|
95
|
+
"@storybook/web": {
|
|
96
|
+
"version": "~6.4.12",
|
|
97
|
+
"alwaysAddToPackageJson": false
|
|
98
|
+
},
|
|
99
|
+
"@storybook/addon-essentials": {
|
|
100
|
+
"version": "~6.4.12",
|
|
101
|
+
"alwaysAddToPackageJson": false
|
|
102
|
+
},
|
|
103
|
+
"@storybook/builder-webpack5": {
|
|
104
|
+
"version": "~6.4.12",
|
|
105
|
+
"alwaysAddToPackageJson": true
|
|
106
|
+
},
|
|
107
|
+
"@storybook/manager-webpack5": {
|
|
108
|
+
"version": "~6.4.12",
|
|
109
|
+
"alwaysAddToPackageJson": true
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
78
113
|
"13.3.0": {
|
|
79
114
|
"version": "13.3.0-beta.3",
|
|
80
115
|
"packages": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/storybook",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.6",
|
|
4
4
|
"description": "Storybook plugin for Nx",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nrwl/cypress": "13.4.
|
|
33
|
-
"@nrwl/devkit": "13.4.
|
|
34
|
-
"@nrwl/linter": "13.4.
|
|
35
|
-
"@nrwl/workspace": "13.4.
|
|
32
|
+
"@nrwl/cypress": "13.4.6",
|
|
33
|
+
"@nrwl/devkit": "13.4.6",
|
|
34
|
+
"@nrwl/linter": "13.4.6",
|
|
35
|
+
"@nrwl/workspace": "13.4.6",
|
|
36
36
|
"core-js": "^3.6.5",
|
|
37
37
|
"semver": "7.3.4",
|
|
38
38
|
"ts-loader": "^9.2.6",
|
package/src/executors/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ExecutorContext } from '@nrwl/devkit';
|
|
2
|
+
import { TargetConfiguration } from '@nrwl/tao/src/shared/workspace';
|
|
2
3
|
import 'dotenv/config';
|
|
3
4
|
import { CommonNxStorybookConfig } from './models';
|
|
4
5
|
export interface NodePackage {
|
|
@@ -9,3 +10,10 @@ export declare function getStorybookFrameworkPath(uiFramework: any): any;
|
|
|
9
10
|
export declare function setStorybookAppProject(context: ExecutorContext, leadStorybookProject: string): void;
|
|
10
11
|
export declare function runStorybookSetupCheck(options: CommonNxStorybookConfig): void;
|
|
11
12
|
export declare function resolveCommonStorybookOptionMapper(builderOptions: CommonNxStorybookConfig, frameworkOptions: any, context: ExecutorContext): any;
|
|
13
|
+
export declare function findStorybookAndBuildTargets(targets: {
|
|
14
|
+
[targetName: string]: TargetConfiguration;
|
|
15
|
+
}): {
|
|
16
|
+
storybookBuildTarget?: string;
|
|
17
|
+
storybookTarget?: string;
|
|
18
|
+
buildTarget?: string;
|
|
19
|
+
};
|
package/src/executors/utils.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveCommonStorybookOptionMapper = exports.runStorybookSetupCheck = exports.setStorybookAppProject = exports.getStorybookFrameworkPath = void 0;
|
|
3
|
+
exports.findStorybookAndBuildTargets = exports.resolveCommonStorybookOptionMapper = exports.runStorybookSetupCheck = exports.setStorybookAppProject = exports.getStorybookFrameworkPath = void 0;
|
|
4
4
|
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
-
const workspace_1 = require("@nrwl/tao/src/shared/workspace");
|
|
6
5
|
const version_utils_1 = require("@nrwl/workspace/src/utilities/version-utils");
|
|
7
6
|
require("dotenv/config");
|
|
8
7
|
const fs_1 = require("fs");
|
|
@@ -116,6 +115,7 @@ function webpackFinalPropertyCheck(options) {
|
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
117
|
function resolveCommonStorybookOptionMapper(builderOptions, frameworkOptions, context) {
|
|
118
|
+
var _a, _b, _c;
|
|
119
119
|
const storybookConfig = (0, utilities_1.findOrCreateConfig)(builderOptions.config, context);
|
|
120
120
|
const storybookOptions = Object.assign(Object.assign({ workspaceRoot: context.root, configDir: storybookConfig }, frameworkOptions), { frameworkPresets: [...(frameworkOptions.frameworkPresets || [])], watch: false });
|
|
121
121
|
if (builderOptions.uiFramework === '@storybook/angular' &&
|
|
@@ -134,17 +134,20 @@ function resolveCommonStorybookOptionMapper(builderOptions, frameworkOptions, co
|
|
|
134
134
|
storybookOptions.angularBrowserTarget = targetString;
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
137
|
+
const { storybookBuildTarget, storybookTarget, buildTarget } = findStorybookAndBuildTargets((_c = (_b = (_a = context === null || context === void 0 ? void 0 : context.workspace) === null || _a === void 0 ? void 0 : _a.projects) === null || _b === void 0 ? void 0 : _b[context.projectName]) === null || _c === void 0 ? void 0 : _c.targets);
|
|
138
|
+
throw new Error(`
|
|
139
|
+
No projectBuildConfig was provided.
|
|
140
|
+
|
|
141
|
+
To fix this, you can try one of the following options:
|
|
142
|
+
|
|
143
|
+
1. You can run the ${context.targetName ? context.targetName : storybookTarget} executor by providing the projectBuildConfig flag as follows:
|
|
144
|
+
|
|
145
|
+
nx ${context.targetName ? context.targetName : storybookTarget} ${context.projectName} --projectBuildConfig=${context.projectName}${!buildTarget && storybookBuildTarget ? `:${storybookBuildTarget}` : ''}
|
|
146
|
+
|
|
147
|
+
2. In your project configuration, under the "${context.targetName ? context.targetName : storybookTarget}" target options, you can
|
|
148
|
+
set the "projectBuildConfig" property to the name of the project of which you want to use
|
|
149
|
+
the build configuration for Storybook.
|
|
150
|
+
`);
|
|
148
151
|
}
|
|
149
152
|
const project = context.workspace.projects[buildProjectName];
|
|
150
153
|
const angularDevkitCompatibleLogger = Object.assign(Object.assign({}, devkit_1.logger), { createChild() {
|
|
@@ -180,4 +183,21 @@ function isStorybookGTE6_4() {
|
|
|
180
183
|
const storybookVersion = (0, utilities_1.readCurrentWorkspaceStorybookVersionFromExecutor)();
|
|
181
184
|
return (0, semver_1.gte)((0, version_utils_1.checkAndCleanWithSemver)('@storybook/core', storybookVersion), '6.4.0-rc.1');
|
|
182
185
|
}
|
|
186
|
+
function findStorybookAndBuildTargets(targets) {
|
|
187
|
+
const returnObject = {};
|
|
188
|
+
Object.entries(targets).forEach(([target, targetConfig]) => {
|
|
189
|
+
if (targetConfig.executor === '@nrwl/storybook:storybook') {
|
|
190
|
+
returnObject.storybookTarget = target;
|
|
191
|
+
}
|
|
192
|
+
if (targetConfig.executor === '@nrwl/storybook:build') {
|
|
193
|
+
returnObject.storybookBuildTarget = target;
|
|
194
|
+
}
|
|
195
|
+
if (targetConfig.executor === '@angular-devkit/build-angular:browser' ||
|
|
196
|
+
targetConfig.executor === '@nrwl/angular:ng-packagr-lite') {
|
|
197
|
+
returnObject.buildTarget = target;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
return returnObject;
|
|
201
|
+
}
|
|
202
|
+
exports.findStorybookAndBuildTargets = findStorybookAndBuildTargets;
|
|
183
203
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../packages/storybook/src/executors/utils.ts"],"names":[],"mappings":";;;AAAA,yCAMsB;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../packages/storybook/src/executors/utils.ts"],"names":[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IACE,YAAY,CAAC,QAAQ,KAAK,uCAAuC;YACjE,YAAY,CAAC,QAAQ,KAAK,+BAA+B,EACzD;YACA,YAAY,CAAC,WAAW,GAAG,MAAM,CAAC;SACnC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACtB,CAAC;AA3BD,oEA2BC"}
|
|
@@ -11,12 +11,14 @@ const cypress_project_1 = require("../cypress-project/cypress-project");
|
|
|
11
11
|
const init_1 = require("../init/init");
|
|
12
12
|
const version_utils_1 = require("@nrwl/workspace/src/utilities/version-utils");
|
|
13
13
|
const semver_1 = require("semver");
|
|
14
|
+
const utils_1 = require("../../executors/utils");
|
|
14
15
|
function configurationGenerator(tree, rawSchema) {
|
|
15
16
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
16
17
|
const schema = normalizeSchema(rawSchema);
|
|
17
18
|
const tasks = [];
|
|
18
19
|
const workspaceStorybookVersion = getCurrentWorkspaceStorybookVersion(tree);
|
|
19
|
-
const { projectType } = (0, devkit_1.readProjectConfiguration)(tree, schema.name);
|
|
20
|
+
const { projectType, targets } = (0, devkit_1.readProjectConfiguration)(tree, schema.name);
|
|
21
|
+
const { buildTarget } = (0, utils_1.findStorybookAndBuildTargets)(targets);
|
|
20
22
|
const initTask = yield (0, init_1.initGenerator)(tree, {
|
|
21
23
|
uiFramework: schema.uiFramework,
|
|
22
24
|
});
|
|
@@ -26,7 +28,7 @@ function configurationGenerator(tree, rawSchema) {
|
|
|
26
28
|
configureTsProjectConfig(tree, schema);
|
|
27
29
|
configureTsSolutionConfig(tree, schema);
|
|
28
30
|
updateLintConfig(tree, schema);
|
|
29
|
-
addStorybookTask(tree, schema.name, schema.uiFramework);
|
|
31
|
+
addStorybookTask(tree, schema.name, schema.uiFramework, buildTarget);
|
|
30
32
|
if (schema.configureCypress) {
|
|
31
33
|
if (projectType !== 'application') {
|
|
32
34
|
const cypressTask = yield (0, cypress_project_1.cypressProjectGenerator)(tree, {
|
|
@@ -194,7 +196,7 @@ function updateLintConfig(tree, schema) {
|
|
|
194
196
|
function dedupe(arr) {
|
|
195
197
|
return Array.from(new Set(arr));
|
|
196
198
|
}
|
|
197
|
-
function addStorybookTask(tree, projectName, uiFramework) {
|
|
199
|
+
function addStorybookTask(tree, projectName, uiFramework, buildTargetForAngularProjects) {
|
|
198
200
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, projectName);
|
|
199
201
|
projectConfig.targets['storybook'] = {
|
|
200
202
|
executor: '@nrwl/storybook:storybook',
|
|
@@ -204,6 +206,11 @@ function addStorybookTask(tree, projectName, uiFramework) {
|
|
|
204
206
|
config: {
|
|
205
207
|
configFolder: `${projectConfig.root}/.storybook`,
|
|
206
208
|
},
|
|
209
|
+
projectBuildConfig: uiFramework === '@storybook/angular'
|
|
210
|
+
? buildTargetForAngularProjects
|
|
211
|
+
? projectName
|
|
212
|
+
: `${projectName}:build-storybook`
|
|
213
|
+
: undefined,
|
|
207
214
|
},
|
|
208
215
|
configurations: {
|
|
209
216
|
ci: {
|
|
@@ -220,6 +227,11 @@ function addStorybookTask(tree, projectName, uiFramework) {
|
|
|
220
227
|
config: {
|
|
221
228
|
configFolder: `${projectConfig.root}/.storybook`,
|
|
222
229
|
},
|
|
230
|
+
projectBuildConfig: uiFramework === '@storybook/angular'
|
|
231
|
+
? buildTargetForAngularProjects
|
|
232
|
+
? projectName
|
|
233
|
+
: `${projectName}:build-storybook`
|
|
234
|
+
: undefined,
|
|
223
235
|
},
|
|
224
236
|
configurations: {
|
|
225
237
|
ci: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/generators/configuration/configuration.ts"],"names":[],"mappings":";;;;AAAA,yCAesB;AACtB,2FAAqF;AAErF,yCAAsC;AACtC,+BAA4B;AAE5B,qDAI+B;AAC/B,wEAA6E;
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/generators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AAC;AAED,SAAS,mCAAmC,CAAC,IAAU;IACrD,IAAI,yBAAyB,GAC3B,IAAA,6DAAiD,EAAC,IAAI,CAAC,CAAC;IAE1D,IACE,IAAA,YAAG,EACD,IAAA,uCAAuB,EAAC,iBAAiB,EAAE,yBAAyB,CAAC,EACrE,OAAO,CACR,EACD;QACA,yBAAyB,GAAG,GAAG,CAAC;KACjC;IACD,OAAO,yBAAyB,CAAC;AACnC,CAAC;AAED,kBAAe,sBAAsB,CAAC;AACzB,QAAA,sBAAsB,GAAG,IAAA,2BAAkB,EACtD,sBAAsB,CACvB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
5
|
+
const utils_1 = require("../../executors/utils");
|
|
6
|
+
function setProjectBuildConfig(tree) {
|
|
7
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
8
|
+
let changesMade = false;
|
|
9
|
+
const projects = (0, devkit_1.getProjects)(tree);
|
|
10
|
+
[...projects.entries()].forEach(([projectName, projectConfiguration]) => {
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
const { storybookBuildTarget, storybookTarget, buildTarget } = (0, utils_1.findStorybookAndBuildTargets)(projectConfiguration.targets);
|
|
13
|
+
if (projectName &&
|
|
14
|
+
storybookTarget &&
|
|
15
|
+
((_c = (_b = (_a = projectConfiguration === null || projectConfiguration === void 0 ? void 0 : projectConfiguration.targets) === null || _a === void 0 ? void 0 : _a[storybookTarget]) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.uiFramework) ===
|
|
16
|
+
'@storybook/angular') {
|
|
17
|
+
if (buildTarget) {
|
|
18
|
+
if (!projectConfiguration.targets[storybookTarget].options
|
|
19
|
+
.projectBuildConfig) {
|
|
20
|
+
projectConfiguration.targets[storybookTarget].options.projectBuildConfig = projectName;
|
|
21
|
+
changesMade = true;
|
|
22
|
+
}
|
|
23
|
+
if (storybookBuildTarget &&
|
|
24
|
+
!projectConfiguration.targets[storybookBuildTarget].options
|
|
25
|
+
.projectBuildConfig) {
|
|
26
|
+
projectConfiguration.targets[storybookBuildTarget].options.projectBuildConfig = projectName;
|
|
27
|
+
changesMade = true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
if (storybookBuildTarget) {
|
|
32
|
+
if (!projectConfiguration.targets[storybookTarget].options
|
|
33
|
+
.projectBuildConfig) {
|
|
34
|
+
projectConfiguration.targets[storybookTarget].options.projectBuildConfig = `${projectName}:${storybookBuildTarget}`;
|
|
35
|
+
changesMade = true;
|
|
36
|
+
}
|
|
37
|
+
if (!projectConfiguration.targets[storybookBuildTarget].options
|
|
38
|
+
.projectBuildConfig) {
|
|
39
|
+
projectConfiguration.targets[storybookBuildTarget].options.projectBuildConfig = `${projectName}:${storybookBuildTarget}`;
|
|
40
|
+
changesMade = true;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
devkit_1.logger.warn(`Could not find a build target for ${projectName}.`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (changesMade) {
|
|
48
|
+
(0, devkit_1.updateProjectConfiguration)(tree, projectName, projectConfiguration);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
if (changesMade) {
|
|
53
|
+
yield (0, devkit_1.formatFiles)(tree);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
exports.default = setProjectBuildConfig;
|
|
58
|
+
//# sourceMappingURL=set-project-build-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set-project-build-config.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/migrations/update-13-4-6/set-project-build-config.ts"],"names":[],"mappings":";;;AAAA,yCAMsB;AACtB,iDAAqE;A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GAAG,GAAG,WAAW,IAAI,oBAAoB,EAAE,CAAC;4BACxE,WAAW,GAAG,IAAI,CAAC;yBACpB;wBACD,IACE,CAAC,oBAAoB,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO;6BACxD,kBAAkB,EACrB;4BACA,oBAAoB,CAAC,OAAO,CAC1B,oBAAoB,CACrB,CAAC,OAAO,CAAC,kBAAkB,GAAG,GAAG,WAAW,IAAI,oBAAoB,EAAE,CAAC;4BACxE,WAAW,GAAG,IAAI,CAAC;yBACpB;qBACF;yBAAM;wBACL,eAAM,CAAC,IAAI,CAAC,qCAAqC,WAAW,GAAG,CAAC,CAAC;qBAClE;iBACF;gBAED,IAAI,WAAW,EAAE;oBACf,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,oBAAoB,CAAC,CAAC;iBACrE;aACF;QACH,CAAC,CAAC,CAAC;QAEH,IAAI,WAAW,EAAE;YACf,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;IACH,CAAC;CAAA;AAlED,wCAkEC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projects": {
|
|
3
|
+
"ui-one": {
|
|
4
|
+
"projectType": "library",
|
|
5
|
+
"root": "libs/ui/one",
|
|
6
|
+
"sourceRoot": "libs/ui/one/src",
|
|
7
|
+
"targets": {
|
|
8
|
+
"trthrngb": {
|
|
9
|
+
"builder": "@nrwl/storybook:storybook",
|
|
10
|
+
"options": {
|
|
11
|
+
"uiFramework": "@storybook/angular",
|
|
12
|
+
"port": 4400,
|
|
13
|
+
"config": {
|
|
14
|
+
"configFolder": "libs/ui/one/.storybook"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"asdgsdfg": {
|
|
19
|
+
"executor": "@nrwl/storybook:build",
|
|
20
|
+
"outputs": ["{options.outputPath}"],
|
|
21
|
+
"options": {
|
|
22
|
+
"uiFramework": "@storybook/angular",
|
|
23
|
+
"outputPath": "dist/storybook/ui/one",
|
|
24
|
+
"config": {
|
|
25
|
+
"configFolder": "libs/ui/one/.storybook"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"configurations": {
|
|
29
|
+
"ci": {
|
|
30
|
+
"quiet": true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"ui-two": {
|
|
37
|
+
"projectType": "library",
|
|
38
|
+
"root": "libs/ui/two",
|
|
39
|
+
"sourceRoot": "libs/ui/two/src",
|
|
40
|
+
"targets": {
|
|
41
|
+
"sdft": {
|
|
42
|
+
"builder": "@nrwl/storybook:storybook",
|
|
43
|
+
"options": {
|
|
44
|
+
"uiFramework": "@storybook/angular",
|
|
45
|
+
"port": 4400,
|
|
46
|
+
"config": {
|
|
47
|
+
"configFolder": "libs/ui/two/.storybook"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"thjkkb": {
|
|
52
|
+
"executor": "@nrwl/storybook:build",
|
|
53
|
+
"outputs": ["{options.outputPath}"],
|
|
54
|
+
"options": {
|
|
55
|
+
"uiFramework": "@storybook/angular",
|
|
56
|
+
"outputPath": "dist/storybook/ui/two",
|
|
57
|
+
"config": {
|
|
58
|
+
"configFolder": "libs/ui/two/.storybook"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"configurations": {
|
|
62
|
+
"ci": {
|
|
63
|
+
"quiet": true
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"ui-three": {
|
|
70
|
+
"projectType": "library",
|
|
71
|
+
"root": "libs/ui/three",
|
|
72
|
+
"sourceRoot": "libs/ui/three/src",
|
|
73
|
+
"targets": {
|
|
74
|
+
"nmkgd": {
|
|
75
|
+
"builder": "@nrwl/storybook:storybook",
|
|
76
|
+
"options": {
|
|
77
|
+
"uiFramework": "@storybook/angular",
|
|
78
|
+
"port": 4400,
|
|
79
|
+
"config": {
|
|
80
|
+
"configFolder": "libs/ui/three/.storybook"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"aaaa": {
|
|
85
|
+
"executor": "@nrwl/storybook:build",
|
|
86
|
+
"outputs": ["{options.outputPath}"],
|
|
87
|
+
"options": {
|
|
88
|
+
"uiFramework": "@storybook/angular",
|
|
89
|
+
"outputPath": "dist/storybook/ui/three",
|
|
90
|
+
"config": {
|
|
91
|
+
"configFolder": "libs/ui/three/.storybook"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"configurations": {
|
|
95
|
+
"ci": {
|
|
96
|
+
"quiet": true
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"main-app": {
|
|
103
|
+
"projectType": "application",
|
|
104
|
+
"root": "apps/main-app",
|
|
105
|
+
"sourceRoot": "apps/main-app/src",
|
|
106
|
+
"prefix": "katst",
|
|
107
|
+
"architect": {
|
|
108
|
+
"njdfvndfjnv": {
|
|
109
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
110
|
+
"outputs": ["{options.outputPath}"]
|
|
111
|
+
},
|
|
112
|
+
"lmfkcn": {
|
|
113
|
+
"builder": "@nrwl/storybook:storybook",
|
|
114
|
+
"options": {
|
|
115
|
+
"uiFramework": "@storybook/angular",
|
|
116
|
+
"port": 4400,
|
|
117
|
+
"config": {
|
|
118
|
+
"configFolder": "apps/main-app/.storybook"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"configurations": {
|
|
122
|
+
"ci": {
|
|
123
|
+
"quiet": true
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"odmwjbc": {
|
|
128
|
+
"builder": "@nrwl/storybook:build",
|
|
129
|
+
"outputs": ["{options.outputPath}"],
|
|
130
|
+
"options": {
|
|
131
|
+
"uiFramework": "@storybook/angular",
|
|
132
|
+
"outputPath": "dist/storybook/main-app",
|
|
133
|
+
"config": {
|
|
134
|
+
"configFolder": "apps/main-app/.storybook"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"configurations": {
|
|
138
|
+
"ci": {
|
|
139
|
+
"quiet": true
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projects": {
|
|
3
|
+
"ui-one": {
|
|
4
|
+
"projectType": "library",
|
|
5
|
+
"root": "libs/ui/one",
|
|
6
|
+
"sourceRoot": "libs/ui/one/src",
|
|
7
|
+
"targets": {
|
|
8
|
+
"storybook": {
|
|
9
|
+
"builder": "@nrwl/storybook:storybook",
|
|
10
|
+
"options": {
|
|
11
|
+
"uiFramework": "@storybook/angular",
|
|
12
|
+
"port": 4400,
|
|
13
|
+
"config": {
|
|
14
|
+
"configFolder": "libs/ui/one/.storybook"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"build-storybook": {
|
|
19
|
+
"executor": "@nrwl/storybook:build",
|
|
20
|
+
"outputs": ["{options.outputPath}"],
|
|
21
|
+
"options": {
|
|
22
|
+
"uiFramework": "@storybook/angular",
|
|
23
|
+
"outputPath": "dist/storybook/ui/one",
|
|
24
|
+
"config": {
|
|
25
|
+
"configFolder": "libs/ui/one/.storybook"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"configurations": {
|
|
29
|
+
"ci": {
|
|
30
|
+
"quiet": true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"ui-two": {
|
|
37
|
+
"projectType": "library",
|
|
38
|
+
"root": "libs/ui/two",
|
|
39
|
+
"sourceRoot": "libs/ui/two/src",
|
|
40
|
+
"targets": {
|
|
41
|
+
"storybook": {
|
|
42
|
+
"builder": "@nrwl/storybook:storybook",
|
|
43
|
+
"options": {
|
|
44
|
+
"uiFramework": "@storybook/angular",
|
|
45
|
+
"port": 4400,
|
|
46
|
+
"config": {
|
|
47
|
+
"configFolder": "libs/ui/two/.storybook"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"build-storybook": {
|
|
52
|
+
"executor": "@nrwl/storybook:build",
|
|
53
|
+
"outputs": ["{options.outputPath}"],
|
|
54
|
+
"options": {
|
|
55
|
+
"uiFramework": "@storybook/angular",
|
|
56
|
+
"outputPath": "dist/storybook/ui/two",
|
|
57
|
+
"config": {
|
|
58
|
+
"configFolder": "libs/ui/two/.storybook"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"configurations": {
|
|
62
|
+
"ci": {
|
|
63
|
+
"quiet": true
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"ui-three": {
|
|
70
|
+
"projectType": "library",
|
|
71
|
+
"root": "libs/ui/three",
|
|
72
|
+
"sourceRoot": "libs/ui/three/src",
|
|
73
|
+
"targets": {
|
|
74
|
+
"storybook": {
|
|
75
|
+
"builder": "@nrwl/storybook:storybook",
|
|
76
|
+
"options": {
|
|
77
|
+
"uiFramework": "@storybook/angular",
|
|
78
|
+
"port": 4400,
|
|
79
|
+
"config": {
|
|
80
|
+
"configFolder": "libs/ui/three/.storybook"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"build-storybook": {
|
|
85
|
+
"executor": "@nrwl/storybook:build",
|
|
86
|
+
"outputs": ["{options.outputPath}"],
|
|
87
|
+
"options": {
|
|
88
|
+
"uiFramework": "@storybook/angular",
|
|
89
|
+
"outputPath": "dist/storybook/ui/three",
|
|
90
|
+
"config": {
|
|
91
|
+
"configFolder": "libs/ui/three/.storybook"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"configurations": {
|
|
95
|
+
"ci": {
|
|
96
|
+
"quiet": true
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"main-app": {
|
|
103
|
+
"projectType": "application",
|
|
104
|
+
"root": "apps/main-app",
|
|
105
|
+
"sourceRoot": "apps/main-app/src",
|
|
106
|
+
"prefix": "katst",
|
|
107
|
+
"architect": {
|
|
108
|
+
"build": {
|
|
109
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
110
|
+
"outputs": ["{options.outputPath}"]
|
|
111
|
+
},
|
|
112
|
+
"storybook": {
|
|
113
|
+
"builder": "@nrwl/storybook:storybook",
|
|
114
|
+
"options": {
|
|
115
|
+
"uiFramework": "@storybook/angular",
|
|
116
|
+
"port": 4400,
|
|
117
|
+
"config": {
|
|
118
|
+
"configFolder": "apps/main-app/.storybook"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"configurations": {
|
|
122
|
+
"ci": {
|
|
123
|
+
"quiet": true
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"build-storybook": {
|
|
128
|
+
"builder": "@nrwl/storybook:build",
|
|
129
|
+
"outputs": ["{options.outputPath}"],
|
|
130
|
+
"options": {
|
|
131
|
+
"uiFramework": "@storybook/angular",
|
|
132
|
+
"outputPath": "dist/storybook/main-app",
|
|
133
|
+
"config": {
|
|
134
|
+
"configFolder": "apps/main-app/.storybook"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"configurations": {
|
|
138
|
+
"ci": {
|
|
139
|
+
"quiet": true
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projects": {
|
|
3
|
+
"ui-one": {
|
|
4
|
+
"projectType": "library",
|
|
5
|
+
"root": "libs/ui/one",
|
|
6
|
+
"sourceRoot": "libs/ui/one/src",
|
|
7
|
+
"targets": {
|
|
8
|
+
"storybook": {
|
|
9
|
+
"builder": "@nrwl/storybook:storybook",
|
|
10
|
+
"options": {
|
|
11
|
+
"uiFramework": "@storybook/react",
|
|
12
|
+
"port": 4400,
|
|
13
|
+
"config": {
|
|
14
|
+
"configFolder": "libs/ui/one/.storybook"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"build-storybook": {
|
|
19
|
+
"executor": "@nrwl/storybook:build",
|
|
20
|
+
"outputs": ["{options.outputPath}"],
|
|
21
|
+
"options": {
|
|
22
|
+
"uiFramework": "@storybook/angular",
|
|
23
|
+
"outputPath": "dist/storybook/ui/one",
|
|
24
|
+
"config": {
|
|
25
|
+
"configFolder": "libs/ui/one/.storybook"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"configurations": {
|
|
29
|
+
"ci": {
|
|
30
|
+
"quiet": true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"main-app": {
|
|
37
|
+
"projectType": "application",
|
|
38
|
+
"root": "apps/main-app",
|
|
39
|
+
"sourceRoot": "apps/main-app/src",
|
|
40
|
+
"prefix": "katst",
|
|
41
|
+
"architect": {
|
|
42
|
+
"storybook": {
|
|
43
|
+
"builder": "@nrwl/storybook:storybook",
|
|
44
|
+
"options": {
|
|
45
|
+
"uiFramework": "@storybook/react",
|
|
46
|
+
"port": 4400,
|
|
47
|
+
"config": {
|
|
48
|
+
"configFolder": "apps/main-app/.storybook"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"configurations": {
|
|
52
|
+
"ci": {
|
|
53
|
+
"quiet": true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const nxVersion = "*";
|
|
2
|
-
export declare const storybookVersion = "~6.4.
|
|
2
|
+
export declare const storybookVersion = "~6.4.12";
|
|
3
3
|
export declare const babelCoreVersion = "7.12.13";
|
|
4
4
|
export declare const babelLoaderVersion = "8.1.0";
|
|
5
5
|
export declare const babelPresetTypescriptVersion = "7.12.13";
|
package/src/utils/versions.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.urlLoaderVersion = exports.svgrVersion = exports.babelPresetTypescriptVersion = exports.babelLoaderVersion = exports.babelCoreVersion = exports.storybookVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '13.4.
|
|
5
|
-
exports.storybookVersion = '~6.4.
|
|
4
|
+
exports.nxVersion = '13.4.6';
|
|
5
|
+
exports.storybookVersion = '~6.4.12';
|
|
6
6
|
exports.babelCoreVersion = '7.12.13';
|
|
7
7
|
exports.babelLoaderVersion = '8.1.0';
|
|
8
8
|
exports.babelPresetTypescriptVersion = '7.12.13';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/storybook/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,GAAG,CAAC;AAChB,QAAA,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/storybook/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,GAAG,CAAC;AAChB,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAC7B,QAAA,gBAAgB,GAAG,SAAS,CAAC;AAC7B,QAAA,kBAAkB,GAAG,OAAO,CAAC;AAC7B,QAAA,4BAA4B,GAAG,SAAS,CAAC;AACzC,QAAA,WAAW,GAAG,QAAQ,CAAC;AACvB,QAAA,gBAAgB,GAAG,QAAQ,CAAC"}
|