@nrwl/storybook 14.2.0-beta.1 → 14.2.0-beta.2
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 +1 -1
- package/migrations.json +0 -11
- package/package.json +6 -6
- package/src/migrations/update-8-8-2/update-builder-8-8-2.d.ts +0 -2
- package/src/migrations/update-8-8-2/update-builder-8-8-2.js +0 -48
- package/src/migrations/update-8-8-2/update-builder-8-8-2.js.map +0 -1
- package/src/migrations/update-9-0-0/update-9-0-0.d.ts +0 -1
- package/src/migrations/update-9-0-0/update-9-0-0.js +0 -11
- package/src/migrations/update-9-0-0/update-9-0-0.js.map +0 -1
- package/src/migrations/update-9-2-0/update-9-2-0.d.ts +0 -2
- package/src/migrations/update-9-2-0/update-9-2-0.js +0 -13
- package/src/migrations/update-9-2-0/update-9-2-0.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
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
|
-
# [14.2.0-beta.
|
|
6
|
+
# [14.2.0-beta.2](https://github.com/nrwl/nx/compare/14.1.9...14.2.0-beta.2) (2022-05-31)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/storybook
|
package/migrations.json
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
|
-
"update-builder-8.8.2": {
|
|
4
|
-
"version": "8.8.2",
|
|
5
|
-
"description": "Update storybook builder and tsconfig",
|
|
6
|
-
"factory": "./src/migrations/update-8-8-2/update-builder-8-8-2"
|
|
7
|
-
},
|
|
8
|
-
"update-9.2.0": {
|
|
9
|
-
"version": "9.2.0-beta.1",
|
|
10
|
-
"cli": "nx",
|
|
11
|
-
"description": "Add build-storybook to cacheable operations",
|
|
12
|
-
"factory": "./src/migrations/update-9-2-0/update-9-2-0"
|
|
13
|
-
},
|
|
14
3
|
"update-10.2.1": {
|
|
15
4
|
"version": "10.2.1-beta.1",
|
|
16
5
|
"description": "Adjusts the tsconfig mapping",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/storybook",
|
|
3
|
-
"version": "14.2.0-beta.
|
|
3
|
+
"version": "14.2.0-beta.2",
|
|
4
4
|
"description": "The Nx Plugin for Storybook that contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nrwl/cypress": "14.2.0-beta.
|
|
33
|
-
"@nrwl/devkit": "14.2.0-beta.
|
|
34
|
-
"@nrwl/linter": "14.2.0-beta.
|
|
35
|
-
"@nrwl/workspace": "14.2.0-beta.
|
|
32
|
+
"@nrwl/cypress": "14.2.0-beta.2",
|
|
33
|
+
"@nrwl/devkit": "14.2.0-beta.2",
|
|
34
|
+
"@nrwl/linter": "14.2.0-beta.2",
|
|
35
|
+
"@nrwl/workspace": "14.2.0-beta.2",
|
|
36
36
|
"core-js": "^3.6.5",
|
|
37
37
|
"semver": "7.3.4",
|
|
38
38
|
"ts-loader": "^9.2.6",
|
|
39
39
|
"tsconfig-paths-webpack-plugin": "3.5.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "e491c6f7382064fb1f17c0dcd2e642428ca822e4"
|
|
42
42
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
function update() {
|
|
6
|
-
return (0, schematics_1.chain)([
|
|
7
|
-
(0, workspace_1.updateWorkspaceInTree)((config) => {
|
|
8
|
-
const filteredProjects = [];
|
|
9
|
-
Object.keys(config.projects).forEach((name) => {
|
|
10
|
-
if (config.projects[name].architect &&
|
|
11
|
-
config.projects[name].architect.e2e &&
|
|
12
|
-
config.projects[name].architect.e2e.builder ===
|
|
13
|
-
'@nrwl/cypress:cypress' &&
|
|
14
|
-
config.projects[name].architect.e2e.options.devServerTarget.endsWith(':storybook')) {
|
|
15
|
-
filteredProjects.push(config.projects[name]);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
filteredProjects.forEach((p) => {
|
|
19
|
-
delete p.architect.e2e.options.headless;
|
|
20
|
-
delete p.architect.e2e.options.watch;
|
|
21
|
-
delete p.architect.e2e.configurations;
|
|
22
|
-
});
|
|
23
|
-
return config;
|
|
24
|
-
}),
|
|
25
|
-
(tree, context) => {
|
|
26
|
-
const workspace = (0, workspace_1.readWorkspace)(tree);
|
|
27
|
-
const tsconfigUpdateRules = [];
|
|
28
|
-
Object.keys(workspace.projects).forEach((name) => {
|
|
29
|
-
if (workspace.projects[name].architect &&
|
|
30
|
-
workspace.projects[name].architect.storybook &&
|
|
31
|
-
workspace.projects[name].architect.storybook.builder ===
|
|
32
|
-
'@nrwl/storybook:storybook' &&
|
|
33
|
-
workspace.projects[name].architect.storybook.options.config
|
|
34
|
-
.configFolder) {
|
|
35
|
-
const storybookFolderPath = workspace.projects[name].architect.storybook.options.config
|
|
36
|
-
.configFolder;
|
|
37
|
-
tsconfigUpdateRules.push((0, workspace_1.updateJsonInTree)(`${storybookFolderPath}/tsconfig.json`, (json) => (Object.assign(Object.assign({}, json), { compilerOptions: {
|
|
38
|
-
emitDecoratorMetadata: true,
|
|
39
|
-
} }))));
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
return (0, schematics_1.chain)(tsconfigUpdateRules);
|
|
43
|
-
},
|
|
44
|
-
(0, workspace_1.formatFiles)(),
|
|
45
|
-
]);
|
|
46
|
-
}
|
|
47
|
-
exports.default = update;
|
|
48
|
-
//# sourceMappingURL=update-builder-8-8-2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-builder-8-8-2.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/migrations/update-8-8-2/update-builder-8-8-2.ts"],"names":[],"mappings":";;AAAA,2DAAyD;AACzD,+CAMyB;AAEzB,SAAwB,MAAM;IAC5B,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,iCAAqB,EAAC,CAAC,MAAM,EAAE,EAAE;YAC/B,MAAM,gBAAgB,GAA+B,EAAE,CAAC;YACxD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBAC5C,IACE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS;oBAC/B,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,GAAG;oBACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO;wBACzC,uBAAuB;oBACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,QAAQ,CAClE,YAAY,CACb,EACD;oBACA,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;iBAC9C;YACH,CAAC,CAAC,CAAC;YACH,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC7B,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC;gBACxC,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC;gBACrC,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC;YACxC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use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const workspace_1 = require("@nrwl/workspace");
|
|
5
|
-
const path_1 = require("path");
|
|
6
|
-
const updatePackages = (0, workspace_1.updatePackagesInPackageJson)((0, path_1.join)(__dirname, '../../../', 'migrations.json'), '9.0.0');
|
|
7
|
-
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([updatePackages, (0, workspace_1.formatFiles)()]);
|
|
9
|
-
}
|
|
10
|
-
exports.default = default_1;
|
|
11
|
-
//# sourceMappingURL=update-9-0-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-9-0-0.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/migrations/update-9-0-0/update-9-0-0.ts"],"names":[],"mappings":";;AAAA,2DAAmD;AACnD,+CAA2E;AAC3E,+BAA4B;AAE5B,MAAM,cAAc,GAAG,IAAA,uCAA2B,EAChD,IAAA,WAAI,EAAC,SAAS,EAAE,WAAW,EAAE,iBAAiB,CAAC,EAC/C,OAAO,CACR,CAAC;AAEF;IACE,OAAO,IAAA,kBAAK,EAAC,CAAC,cAAc,EAAE,IAAA,uBAAW,GAAE,CAAC,CAAC,CAAC;AAChD,CAAC;AAFD,4BAEC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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 init_1 = require("../../generators/init/init");
|
|
6
|
-
function default_1(tree) {
|
|
7
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
-
(0, init_1.addCacheableOperation)(tree);
|
|
9
|
-
yield (0, devkit_1.formatFiles)(tree);
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
exports.default = default_1;
|
|
13
|
-
//# sourceMappingURL=update-9-2-0.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-9-2-0.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/migrations/update-9-2-0/update-9-2-0.ts"],"names":[],"mappings":";;;AAAA,yCAAiD;AACjD,qDAAmE;AAEnE,mBAA+B,IAAU;;QACvC,IAAA,4BAAqB,EAAC,IAAI,CAAC,CAAC;QAC5B,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAHD,4BAGC"}
|