@nx/storybook 17.0.0-beta.2 → 17.0.0-beta.4
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/executors.json +0 -12
- package/generators.json +0 -27
- package/package.json +8 -8
- package/src/generators/configuration/configuration.d.ts +0 -1
- package/src/generators/configuration/configuration.js +1 -2
- package/src/generators/cypress-project/cypress-project.d.ts +0 -1
- package/src/generators/cypress-project/cypress-project.js +1 -2
- package/src/generators/init/init.d.ts +0 -1
- package/src/generators/init/init.js +1 -2
- package/src/generators/migrate-7/migrate-7.d.ts +0 -1
- package/src/generators/migrate-7/migrate-7.js +1 -2
- package/src/executors/build-storybook/compat.d.ts +0 -2
- package/src/executors/build-storybook/compat.js +0 -5
- package/src/executors/storybook/compat.d.ts +0 -2
- package/src/executors/storybook/compat.js +0 -5
package/executors.json
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"builders": {
|
|
3
|
-
"storybook": {
|
|
4
|
-
"implementation": "./src/executors/storybook/compat",
|
|
5
|
-
"schema": "./src/executors/storybook/schema.json",
|
|
6
|
-
"description": "Serve Storybook."
|
|
7
|
-
},
|
|
8
|
-
"build": {
|
|
9
|
-
"implementation": "./src/executors/build-storybook/compat",
|
|
10
|
-
"schema": "./src/executors/build-storybook/schema.json",
|
|
11
|
-
"description": "Build Storybook."
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
2
|
"executors": {
|
|
15
3
|
"storybook": {
|
|
16
4
|
"implementation": "./src/executors/storybook/storybook.impl",
|
package/generators.json
CHANGED
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Nx Storybook",
|
|
3
3
|
"version": "0.1",
|
|
4
|
-
"schematics": {
|
|
5
|
-
"init": {
|
|
6
|
-
"factory": "./src/generators/init/init#initSchematic",
|
|
7
|
-
"schema": "./src/generators/init/schema.json",
|
|
8
|
-
"description": "Add Storybook configuration to the workspace.",
|
|
9
|
-
"aliases": ["ng-add"],
|
|
10
|
-
"hidden": true
|
|
11
|
-
},
|
|
12
|
-
"configuration": {
|
|
13
|
-
"factory": "./src/generators/configuration/configuration#configurationSchematic",
|
|
14
|
-
"schema": "./src/generators/configuration/schema.json",
|
|
15
|
-
"description": "Add Storybook configuration to a UI library or an application.",
|
|
16
|
-
"hidden": false
|
|
17
|
-
},
|
|
18
|
-
"cypress-project": {
|
|
19
|
-
"factory": "./src/generators/cypress-project/cypress-project#cypressProjectSchematic",
|
|
20
|
-
"schema": "./src/generators/cypress-project/schema.json",
|
|
21
|
-
"description": "Add cypress e2e app to test a UI library that is set up for Storybook.",
|
|
22
|
-
"hidden": false
|
|
23
|
-
},
|
|
24
|
-
"migrate-7": {
|
|
25
|
-
"factory": "./src/generators/migrate-7/migrate-7#migrate7Schematic",
|
|
26
|
-
"schema": "./src/generators/migrate-7/schema.json",
|
|
27
|
-
"description": "Migrate to Storybook version 7.",
|
|
28
|
-
"hidden": false
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
4
|
"generators": {
|
|
32
5
|
"init": {
|
|
33
6
|
"factory": "./src/generators/init/init",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/storybook",
|
|
3
|
-
"version": "17.0.0-beta.
|
|
3
|
+
"version": "17.0.0-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Storybook contains executors and generators for allowing your workspace to use the powerful Storybook integration testing & documenting capabilities.",
|
|
6
6
|
"repository": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"url": "https://github.com/nrwl/nx/issues"
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://nx.dev",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"generators": "./generators.json",
|
|
27
|
+
"executors": "./executors.json",
|
|
28
28
|
"ng-update": {
|
|
29
29
|
"requirements": {},
|
|
30
30
|
"migrations": "./migrations.json"
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
34
34
|
"semver": "7.5.3",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
|
-
"@nx/cypress": "17.0.0-beta.
|
|
37
|
-
"@nx/devkit": "17.0.0-beta.
|
|
38
|
-
"@nx/js": "17.0.0-beta.
|
|
39
|
-
"@nx/linter": "17.0.0-beta.
|
|
40
|
-
"@nrwl/storybook": "17.0.0-beta.
|
|
36
|
+
"@nx/cypress": "17.0.0-beta.4",
|
|
37
|
+
"@nx/devkit": "17.0.0-beta.4",
|
|
38
|
+
"@nx/js": "17.0.0-beta.4",
|
|
39
|
+
"@nx/linter": "17.0.0-beta.4",
|
|
40
|
+
"@nrwl/storybook": "17.0.0-beta.4"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import { StorybookConfigureSchema } from './schema';
|
|
3
3
|
export declare function configurationGenerator(tree: Tree, rawSchema: StorybookConfigureSchema): Promise<GeneratorCallback>;
|
|
4
4
|
export default configurationGenerator;
|
|
5
|
-
export declare const configurationSchematic: (generatorOptions: StorybookConfigureSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.configurationGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const cypress_project_1 = require("../cypress-project/cypress-project");
|
|
6
6
|
const init_1 = require("../init/init");
|
|
@@ -127,4 +127,3 @@ function normalizeSchema(schema) {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
exports.default = configurationGenerator;
|
|
130
|
-
exports.configurationSchematic = (0, devkit_1.convertNxGenerator)(configurationGenerator);
|
|
@@ -11,4 +11,3 @@ export interface CypressConfigureSchema {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function cypressProjectGenerator(tree: Tree, schema: CypressConfigureSchema): Promise<GeneratorCallback>;
|
|
13
13
|
export default cypressProjectGenerator;
|
|
14
|
-
export declare const cypressProjectSchematic: (generatorOptions: CypressConfigureSchema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.cypressProjectGenerator = void 0;
|
|
4
4
|
const cypress_1 = require("@nx/cypress");
|
|
5
5
|
const project_name_1 = require("@nx/cypress/src/utils/project-name");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -99,4 +99,3 @@ function projectAlreadyHasCypress(tree) {
|
|
|
99
99
|
packageJsonContents?.['dependencies']?.['cypress']));
|
|
100
100
|
}
|
|
101
101
|
exports.default = cypressProjectGenerator;
|
|
102
|
-
exports.cypressProjectSchematic = (0, devkit_1.convertNxGenerator)(cypressProjectGenerator);
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import { Schema } from './schema';
|
|
3
3
|
export declare function initGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export default initGenerator;
|
|
5
|
-
export declare const initSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.initGenerator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
6
|
const versions_1 = require("../../utils/versions");
|
|
@@ -151,4 +151,3 @@ async function initGenerator(tree, schema) {
|
|
|
151
151
|
}
|
|
152
152
|
exports.initGenerator = initGenerator;
|
|
153
153
|
exports.default = initGenerator;
|
|
154
|
-
exports.initSchematic = (0, devkit_1.convertNxGenerator)(initGenerator);
|
|
@@ -2,4 +2,3 @@ import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
|
2
2
|
import { Schema } from './schema';
|
|
3
3
|
export declare function migrate7Generator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
|
|
4
4
|
export default migrate7Generator;
|
|
5
|
-
export declare const migrate7Schematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.migrate7Generator = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const output_1 = require("nx/src/utils/output");
|
|
6
6
|
const versions_1 = require("../../utils/versions");
|
|
@@ -66,4 +66,3 @@ async function migrate7Generator(tree, schema) {
|
|
|
66
66
|
}
|
|
67
67
|
exports.migrate7Generator = migrate7Generator;
|
|
68
68
|
exports.default = migrate7Generator;
|
|
69
|
-
exports.migrate7Schematic = (0, devkit_1.convertNxGenerator)(migrate7Generator);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const devkit_1 = require("@nx/devkit");
|
|
4
|
-
const build_storybook_impl_1 = require("./build-storybook.impl");
|
|
5
|
-
exports.default = (0, devkit_1.convertNxExecutor)(build_storybook_impl_1.default);
|