@nx/storybook 17.0.0-beta.5 → 17.0.0-beta.8
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/package.json +6 -6
- package/src/generators/configuration/configuration.js +4 -4
- package/src/generators/configuration/lib/util-functions.js +4 -4
- package/src/generators/configuration/schema.d.ts +1 -1
- package/src/generators/cypress-project/cypress-project.d.ts +1 -1
- package/src/utils/testing.js +2 -2
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.8",
|
|
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": {
|
|
@@ -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/
|
|
40
|
-
"@nrwl/storybook": "17.0.0-beta.
|
|
36
|
+
"@nx/cypress": "17.0.0-beta.8",
|
|
37
|
+
"@nx/devkit": "17.0.0-beta.8",
|
|
38
|
+
"@nx/js": "17.0.0-beta.8",
|
|
39
|
+
"@nx/eslint": "17.0.0-beta.8",
|
|
40
|
+
"@nrwl/storybook": "17.0.0-beta.8"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
@@ -5,7 +5,7 @@ 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");
|
|
7
7
|
const util_functions_1 = require("./lib/util-functions");
|
|
8
|
-
const
|
|
8
|
+
const eslint_1 = require("@nx/eslint");
|
|
9
9
|
const utilities_1 = require("../../utils/utilities");
|
|
10
10
|
const versions_1 = require("../../utils/versions");
|
|
11
11
|
const interaction_testing_utils_1 = require("./lib/interaction-testing.utils");
|
|
@@ -23,12 +23,12 @@ async function configurationGenerator(tree, rawSchema) {
|
|
|
23
23
|
}
|
|
24
24
|
if (viteBuildTarget) {
|
|
25
25
|
if (schema.uiFramework === '@storybook/react-webpack5') {
|
|
26
|
-
devkit_1.logger.info(`Your project ${schema.name} uses Vite as a bundler.
|
|
26
|
+
devkit_1.logger.info(`Your project ${schema.name} uses Vite as a bundler.
|
|
27
27
|
Nx will configure Storybook for this project to use Vite as well.`);
|
|
28
28
|
schema.uiFramework = '@storybook/react-vite';
|
|
29
29
|
}
|
|
30
30
|
if (schema.uiFramework === '@storybook/web-components-webpack5') {
|
|
31
|
-
devkit_1.logger.info(`Your project ${schema.name} uses Vite as a bundler.
|
|
31
|
+
devkit_1.logger.info(`Your project ${schema.name} uses Vite as a bundler.
|
|
32
32
|
Nx will configure Storybook for this project to use Vite as well.`);
|
|
33
33
|
schema.uiFramework = '@storybook/web-components-vite';
|
|
34
34
|
}
|
|
@@ -117,7 +117,7 @@ exports.configurationGenerator = configurationGenerator;
|
|
|
117
117
|
function normalizeSchema(schema) {
|
|
118
118
|
const defaults = {
|
|
119
119
|
interactionTests: true,
|
|
120
|
-
linter:
|
|
120
|
+
linter: eslint_1.Linter.EsLint,
|
|
121
121
|
js: false,
|
|
122
122
|
tsConfiguration: true,
|
|
123
123
|
};
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.renameAndMoveOldTsConfig = exports.getViteConfigFilePath = exports.getE2EProjectName = exports.rootFileIsTs = exports.workspaceHasRootProject = exports.projectIsRootProjectInStandaloneWorkspace = exports.addBuildStorybookToCacheableOperations = exports.getTsConfigPath = exports.createProjectStorybookDir = exports.addStorybookToNamedInputs = exports.normalizeSchema = exports.updateLintConfig = exports.configureTsSolutionConfig = exports.configureTsProjectConfig = exports.editTsconfigBaseJson = exports.createStorybookTsconfigFile = exports.addStaticTarget = exports.addAngularStorybookTask = exports.addStorybookTask = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
|
|
6
|
-
const
|
|
6
|
+
const eslint_1 = require("@nx/eslint");
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const utilities_1 = require("../../../utils/utilities");
|
|
9
9
|
const versions_1 = require("../../../utils/versions");
|
|
10
|
-
const eslint_file_1 = require("@nx/
|
|
11
|
-
const flat_config_1 = require("@nx/
|
|
10
|
+
const eslint_file_1 = require("@nx/eslint/src/generators/utils/eslint-file");
|
|
11
|
+
const flat_config_1 = require("@nx/eslint/src/utils/flat-config");
|
|
12
12
|
const DEFAULT_PORT = 4400;
|
|
13
13
|
function addStorybookTask(tree, projectName, uiFramework, interactionTests) {
|
|
14
14
|
if (uiFramework === '@storybook/react-native') {
|
|
@@ -314,7 +314,7 @@ exports.updateLintConfig = updateLintConfig;
|
|
|
314
314
|
function normalizeSchema(schema) {
|
|
315
315
|
const defaults = {
|
|
316
316
|
configureCypress: true,
|
|
317
|
-
linter:
|
|
317
|
+
linter: eslint_1.Linter.EsLint,
|
|
318
318
|
js: false,
|
|
319
319
|
};
|
|
320
320
|
return {
|
package/src/utils/testing.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deleteNewConfigurationAndCreateNew = exports.createTestUILibNoNgDevkit = void 0;
|
|
4
4
|
const js_1 = require("@nx/js");
|
|
5
|
-
const
|
|
5
|
+
const eslint_1 = require("@nx/eslint");
|
|
6
6
|
async function createTestUILibNoNgDevkit(appTree, libName) {
|
|
7
7
|
await (0, js_1.libraryGenerator)(appTree, {
|
|
8
|
-
linter:
|
|
8
|
+
linter: eslint_1.Linter.EsLint,
|
|
9
9
|
skipFormat: true,
|
|
10
10
|
skipTsConfig: false,
|
|
11
11
|
unitTestRunner: 'none',
|