@nrwl/storybook 14.3.6 → 14.4.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/package.json +6 -6
- package/src/generators/change-storybook-targets/change-storybook-targets.js +3 -3
- package/src/generators/change-storybook-targets/change-storybook-targets.js.map +1 -1
- package/src/generators/configuration/configuration.js +15 -3
- package/src/generators/configuration/configuration.js.map +1 -1
- package/src/generators/configuration/project-files/.storybook/main.js__tmpl__ +14 -3
- package/src/generators/configuration/project-files/.storybook/tsconfig.json__tmpl__ +7 -1
- package/src/generators/configuration/project-files-ts/.storybook/main.ts__tmpl__ +14 -3
- package/src/generators/configuration/project-files-ts/.storybook/tsconfig.json__tmpl__ +1 -1
- package/src/generators/configuration/test-configs/workspace-conifiguration.json +342 -0
- package/src/generators/configuration/util-functions.d.ts +2 -2
- package/src/generators/configuration/util-functions.js +15 -7
- package/src/generators/configuration/util-functions.js.map +1 -1
- package/src/migrations/update-13-4-6/set-project-build-config.js +2 -2
- package/src/migrations/update-13-4-6/set-project-build-config.js.map +1 -1
- package/src/migrations/update-14-0-0/migrate-defaults-5-to-6/migrate-defaults-5-to-6.d.ts +2 -1
- package/src/migrations/update-14-0-0/migrate-defaults-5-to-6/migrate-defaults-5-to-6.js +6 -12
- package/src/migrations/update-14-0-0/migrate-defaults-5-to-6/migrate-defaults-5-to-6.js.map +1 -1
- package/src/utils/test-configs/different-target-variations.json +235 -0
- package/src/utils/testing.js.map +1 -1
- package/src/utils/utilities.d.ts +15 -20
- package/src/utils/utilities.js +61 -58
- package/src/utils/utilities.js.map +1 -1
- package/src/utils/versions.d.ts +2 -0
- package/src/utils/versions.js +3 -1
- package/src/utils/versions.js.map +1 -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
|
-
|
|
6
|
+
# [14.4.0-beta.2](https://github.com/nrwl/nx/compare/14.3.6...14.4.0-beta.2) (2022-06-27)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/storybook
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/storybook",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.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.
|
|
33
|
-
"@nrwl/devkit": "14.
|
|
34
|
-
"@nrwl/linter": "14.
|
|
35
|
-
"@nrwl/workspace": "14.
|
|
32
|
+
"@nrwl/cypress": "14.4.0-beta.2",
|
|
33
|
+
"@nrwl/devkit": "14.4.0-beta.2",
|
|
34
|
+
"@nrwl/linter": "14.4.0-beta.2",
|
|
35
|
+
"@nrwl/workspace": "14.4.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": "bf11bbf70947113abdf3495eaaa5fbfd1e26a894"
|
|
42
42
|
}
|
|
@@ -12,16 +12,16 @@ function changeStorybookTargetsGenerator(tree) {
|
|
|
12
12
|
[...projects.entries()].forEach(([projectName, projectConfiguration]) => {
|
|
13
13
|
var _a, _b, _c;
|
|
14
14
|
changesMade = false;
|
|
15
|
-
const { storybookBuildTarget, storybookTarget,
|
|
15
|
+
const { storybookBuildTarget, storybookTarget, ngBuildTarget } = (0, utilities_1.findStorybookAndBuildTargetsAndCompiler)(projectConfiguration.targets);
|
|
16
16
|
if (projectName &&
|
|
17
17
|
storybookTarget &&
|
|
18
18
|
((_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) ===
|
|
19
19
|
'@storybook/angular') {
|
|
20
|
-
projectConfiguration.targets[storybookTarget] = updateStorybookTarget(projectConfiguration, storybookTarget, projectName,
|
|
20
|
+
projectConfiguration.targets[storybookTarget] = updateStorybookTarget(projectConfiguration, storybookTarget, projectName, ngBuildTarget, storybookBuildTarget);
|
|
21
21
|
changesMade = true;
|
|
22
22
|
changesMadeToAtLeastOne = true;
|
|
23
23
|
projectConfiguration.targets[storybookBuildTarget] =
|
|
24
|
-
updateStorybookBuildTarget(projectConfiguration, projectName,
|
|
24
|
+
updateStorybookBuildTarget(projectConfiguration, projectName, ngBuildTarget, storybookBuildTarget);
|
|
25
25
|
}
|
|
26
26
|
else {
|
|
27
27
|
devkit_1.logger.warn(`Could not find a Storybook target for ${projectName}.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-storybook-targets.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/generators/change-storybook-targets/change-storybook-targets.ts"],"names":[],"mappings":";;;;AAAA,yCAUsB;AACtB,
|
|
1
|
+
{"version":3,"file":"change-storybook-targets.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/generators/change-storybook-targets/change-storybook-targets.ts"],"names":[],"mappings":";;;;AAAA,yCAUsB;AACtB,qDAAgF;AAEhF,SAAsB,+BAA+B,CAAC,IAAU;;QAC9D,IAAI,WAAW,GAAG,KAAK,CAAC;QACxB,IAAI,uBAAuB,GAAG,KAAK,CAAC;QACpC,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC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@@ -9,23 +9,24 @@ const init_1 = require("../init/init");
|
|
|
9
9
|
const util_functions_1 = require("./util-functions");
|
|
10
10
|
const linter_1 = require("@nrwl/linter");
|
|
11
11
|
const utilities_1 = require("../../utils/utilities");
|
|
12
|
+
const versions_1 = require("../../utils/versions");
|
|
12
13
|
function configurationGenerator(tree, rawSchema) {
|
|
13
14
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14
15
|
const schema = normalizeSchema(rawSchema);
|
|
15
16
|
const tasks = [];
|
|
16
17
|
const { projectType, targets } = (0, devkit_1.readProjectConfiguration)(tree, schema.name);
|
|
17
|
-
const {
|
|
18
|
+
const { nextBuildTarget, compiler } = (0, utilities_1.findStorybookAndBuildTargetsAndCompiler)(targets);
|
|
18
19
|
const initTask = yield (0, init_1.initGenerator)(tree, {
|
|
19
20
|
uiFramework: schema.uiFramework,
|
|
20
21
|
});
|
|
21
22
|
tasks.push(initTask);
|
|
22
23
|
(0, util_functions_1.createRootStorybookDir)(tree, schema.js, schema.tsConfiguration);
|
|
23
|
-
(0, util_functions_1.createProjectStorybookDir)(tree, schema.name, schema.uiFramework, schema.js, schema.tsConfiguration);
|
|
24
|
+
(0, util_functions_1.createProjectStorybookDir)(tree, schema.name, schema.uiFramework, schema.js, schema.tsConfiguration, !!nextBuildTarget, compiler === 'swc');
|
|
24
25
|
(0, util_functions_1.configureTsProjectConfig)(tree, schema);
|
|
25
26
|
(0, util_functions_1.configureTsSolutionConfig)(tree, schema);
|
|
26
27
|
(0, util_functions_1.updateLintConfig)(tree, schema);
|
|
27
28
|
if (schema.uiFramework === '@storybook/angular') {
|
|
28
|
-
(0, util_functions_1.addAngularStorybookTask)(tree, schema.name
|
|
29
|
+
(0, util_functions_1.addAngularStorybookTask)(tree, schema.name);
|
|
29
30
|
}
|
|
30
31
|
else {
|
|
31
32
|
(0, util_functions_1.addStorybookTask)(tree, schema.name, schema.uiFramework);
|
|
@@ -45,6 +46,17 @@ function configurationGenerator(tree, rawSchema) {
|
|
|
45
46
|
devkit_1.logger.warn('There is already an e2e project setup');
|
|
46
47
|
}
|
|
47
48
|
}
|
|
49
|
+
if (nextBuildTarget && projectType === 'application') {
|
|
50
|
+
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
51
|
+
['storybook-addon-next']: versions_1.storybookNextAddonVersion,
|
|
52
|
+
['storybook-addon-swc']: versions_1.storybookSwcAddonVersion,
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
else if (compiler === 'swc') {
|
|
56
|
+
tasks.push((0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
|
|
57
|
+
['storybook-addon-swc']: versions_1.storybookSwcAddonVersion,
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
48
60
|
yield (0, devkit_1.formatFiles)(tree);
|
|
49
61
|
return (0, run_tasks_in_serial_1.runTasksInSerial)(...tasks);
|
|
50
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/generators/configuration/configuration.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../../../packages/storybook/src/generators/configuration/configuration.ts"],"names":[],"mappings":";;;;AAAA,yCAQsB;AACtB,2FAAqF;AAErF,wEAA6E;AAE7E,uCAA6C;AAE7C,qDAQ0B;AAC1B,yCAAsC;AACtC,qDAAgF;AAChF,mDAG8B;AAE9B,SAAsB,sBAAsB,CAC1C,IAAU,EACV,SAAmC;;QAEnC,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;QAE1C,MAAM,KAAK,GAAwB,EAAE,CAAC;QAEtC,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;QAC7E,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,GACjC,IAAA,mDAAuC,EAAC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AC,IAAI,CAAC,WAAW,CAAC,CAAC;aACzB;iBAAM;gBACL,eAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAC;aACtD;SACF;QAED,IAAI,eAAe,IAAI,WAAW,KAAK,aAAa,EAAE;YACpD,KAAK,CAAC,IAAI,CACR,IAAA,qCAA4B,EAC1B,IAAI,EACJ,EAAE,EACF;gBACE,CAAC,sBAAsB,CAAC,EAAE,oCAAyB;gBACnD,CAAC,qBAAqB,CAAC,EAAE,mCAAwB;aAClD,CACF,CACF,CAAC;SACH;aAAM,IAAI,QAAQ,KAAK,KAAK,EAAE;YAC7B,KAAK,CAAC,IAAI,CACR,IAAA,qCAA4B,EAC1B,IAAI,EACJ,EAAE,EACF;gBACE,CAAC,qBAAqB,CAAC,EAAE,mCAAwB;aAClD,CACF,CACF,CAAC;SACH;QAED,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAExB,OAAO,IAAA,sCAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AA9ED,wDA8EC;AAED,SAAS,eAAe,CACtB,MAAgC;IAEhC,MAAM,QAAQ,GAAG;QACf,gBAAgB,EAAE,IAAI;QACtB,MAAM,EAAE,eAAM,CAAC,MAAM;QACrB,EAAE,EAAE,KAAK;KACV,CAAC;IACF,uCACK,QAAQ,GACR,MAAM,EACT;AACJ,CAAC;AAED,kBAAe,sBAAsB,CAAC;AACzB,QAAA,sBAAsB,GAAG,IAAA,2BAAkB,EACtD,sBAAsB,CACvB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const rootMain = require('<%= offsetFromRoot %>../.storybook/main');
|
|
2
2
|
<% if (existsRootWebpackConfig){ %>const rootWebpackConfig = require('<%= offsetFromRoot %>../.storybook/webpack.config'); <% } %>
|
|
3
|
+
<% if (isNextJs){ %>const path = require('path');<% } %>
|
|
3
4
|
|
|
4
5
|
module.exports = {
|
|
5
6
|
...rootMain,
|
|
@@ -8,10 +9,20 @@ module.exports = {
|
|
|
8
9
|
<% } %>
|
|
9
10
|
stories: [
|
|
10
11
|
...rootMain.stories,
|
|
11
|
-
'
|
|
12
|
-
'
|
|
12
|
+
'../<%= projectDirectory %>/**/*.stories.mdx',
|
|
13
|
+
'../<%= projectDirectory %>/**/*.stories.@(js|jsx|ts|tsx)'
|
|
14
|
+
],
|
|
15
|
+
addons: [...rootMain.addons <% if(uiFramework === '@storybook/react') { %>, '@nrwl/react/plugins/storybook' <% } %><% if(uiFramework === '@storybook/react-native') { %>, '@storybook/addon-ondevice-actions', '@storybook/addon-ondevice-backgrounds', '@storybook/addon-ondevice-controls', '@storybook/addon-ondevice-notes' <% } %>
|
|
16
|
+
<% if(usesSwc && !isNextJs) { %>, 'storybook-addon-swc' <% } %>
|
|
17
|
+
<% if(isNextJs) { %>, 'storybook-addon-swc',
|
|
18
|
+
{
|
|
19
|
+
name: 'storybook-addon-next',
|
|
20
|
+
options: {
|
|
21
|
+
nextConfigPath: path.resolve(__dirname, '../next.config.js'),
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
<% } %>
|
|
13
25
|
],
|
|
14
|
-
addons: [...rootMain.addons <% if(uiFramework === '@storybook/react') { %>, '@nrwl/react/plugins/storybook' <% } %><% if(uiFramework === '@storybook/react-native') { %>, '@storybook/addon-ondevice-actions', '@storybook/addon-ondevice-backgrounds', '@storybook/addon-ondevice-controls', '@storybook/addon-ondevice-notes' <% } %>],
|
|
15
26
|
webpackFinal: async (config, { configType }) => {
|
|
16
27
|
// apply any global webpack configs that might have been specified in .storybook/main.js
|
|
17
28
|
if (rootMain.webpackFinal) {
|
|
@@ -10,5 +10,11 @@
|
|
|
10
10
|
"<%= offsetFromRoot %>../node_modules/@nrwl/react/typings/image.d.ts"
|
|
11
11
|
],<% } %>
|
|
12
12
|
"exclude": ["../**/*.spec.ts" <% if(uiFramework === '@storybook/react') { %>, "../**/*.spec.js", "../**/*.spec.tsx", "../**/*.spec.jsx"<% } %>],
|
|
13
|
-
"include": [
|
|
13
|
+
"include": [
|
|
14
|
+
"../<%= mainDir %>/**/*.stories.ts",
|
|
15
|
+
"../<%= mainDir %>/**/*.stories.js",
|
|
16
|
+
"../<%= mainDir %>/**/*.stories.jsx",
|
|
17
|
+
"../<%= mainDir %>/**/*.stories.tsx",
|
|
18
|
+
"../<%= mainDir %>/**/*.stories.mdx",
|
|
19
|
+
"*.js"<% if(uiFramework === '@storybook/react-native') { %>, "*.ts", "*.tsx"<% } %>]
|
|
14
20
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { rootMain } from '<%= offsetFromRoot %>../.storybook/main';
|
|
2
2
|
import type { StorybookConfig, Options } from '@storybook/core-common';
|
|
3
|
+
<% if (isNextJs){ %>import path from 'path';<% } %>
|
|
3
4
|
|
|
4
5
|
const config: StorybookConfig = {
|
|
5
6
|
...rootMain,
|
|
@@ -9,10 +10,20 @@ const config: StorybookConfig = {
|
|
|
9
10
|
|
|
10
11
|
stories: [
|
|
11
12
|
...rootMain.stories,
|
|
12
|
-
'
|
|
13
|
-
'
|
|
13
|
+
'../<%= projectDirectory %>/**/*.stories.mdx',
|
|
14
|
+
'../<%= projectDirectory %>/**/*.stories.@(js|jsx|ts|tsx)'
|
|
15
|
+
],
|
|
16
|
+
addons: [...(rootMain.addons || []) <% if(uiFramework === '@storybook/react') { %>, '@nrwl/react/plugins/storybook' <% } %><% if(uiFramework === '@storybook/react-native') { %>, '@storybook/addon-ondevice-actions', '@storybook/addon-ondevice-backgrounds', '@storybook/addon-ondevice-controls', '@storybook/addon-ondevice-notes' <% } %>
|
|
17
|
+
<% if(usesSwc && !isNextJs) { %>, 'storybook-addon-swc' <% } %>
|
|
18
|
+
<% if(isNextJs) { %>, 'storybook-addon-swc',
|
|
19
|
+
{
|
|
20
|
+
name: 'storybook-addon-next',
|
|
21
|
+
options: {
|
|
22
|
+
nextConfigPath: path.resolve(__dirname, '../next.config.js'),
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
<% } %>
|
|
14
26
|
],
|
|
15
|
-
addons: [...(rootMain.addons || []) <% if(uiFramework === '@storybook/react') { %>, '@nrwl/react/plugins/storybook' <% } %><% if(uiFramework === '@storybook/react-native') { %>, '@storybook/addon-ondevice-actions', '@storybook/addon-ondevice-backgrounds', '@storybook/addon-ondevice-controls', '@storybook/addon-ondevice-notes' <% } %>],
|
|
16
27
|
webpackFinal: async (config, { configType }: Options) => {
|
|
17
28
|
// apply any global webpack configs that might have been specified in .storybook/main.ts
|
|
18
29
|
if (rootMain.webpackFinal) {
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
"<%= offsetFromRoot %>../node_modules/@nrwl/react/typings/image.d.ts"
|
|
11
11
|
],<% } %>
|
|
12
12
|
"exclude": ["../**/*.spec.ts" <% if(uiFramework === '@storybook/react') { %>, "../**/*.spec.js", "../**/*.spec.tsx", "../**/*.spec.jsx"<% } %>],
|
|
13
|
-
"include": ["
|
|
13
|
+
"include": ["../<%= mainDir %>/**/*", "*.js", "*.ts" <% if(uiFramework === '@storybook/react-native') { %>, "*.tsx"<% } %>]
|
|
14
14
|
}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
{
|
|
2
|
+
"projects": {
|
|
3
|
+
"nxapp": {
|
|
4
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
5
|
+
"sourceRoot": "apps/nxapp",
|
|
6
|
+
"root": "apps/nxapp",
|
|
7
|
+
"projectType": "application",
|
|
8
|
+
"targets": {
|
|
9
|
+
"build": {
|
|
10
|
+
"executor": "@nrwl/next:build",
|
|
11
|
+
"outputs": ["{options.outputPath}"],
|
|
12
|
+
"defaultConfiguration": "production",
|
|
13
|
+
"options": {
|
|
14
|
+
"root": "apps/nxapp",
|
|
15
|
+
"outputPath": "dist/apps/nxapp"
|
|
16
|
+
},
|
|
17
|
+
"configurations": {
|
|
18
|
+
"development": {},
|
|
19
|
+
"production": {}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"serve": {
|
|
23
|
+
"executor": "@nrwl/next:server",
|
|
24
|
+
"defaultConfiguration": "development",
|
|
25
|
+
"options": {
|
|
26
|
+
"buildTarget": "nxapp:build",
|
|
27
|
+
"dev": true
|
|
28
|
+
},
|
|
29
|
+
"configurations": {
|
|
30
|
+
"development": {
|
|
31
|
+
"buildTarget": "nxapp:build:development",
|
|
32
|
+
"dev": true
|
|
33
|
+
},
|
|
34
|
+
"production": {
|
|
35
|
+
"buildTarget": "nxapp:build:production",
|
|
36
|
+
"dev": false
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"export": {
|
|
41
|
+
"executor": "@nrwl/next:export",
|
|
42
|
+
"options": {
|
|
43
|
+
"buildTarget": "nxapp:build:production"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"test": {
|
|
47
|
+
"executor": "@nrwl/jest:jest",
|
|
48
|
+
"outputs": ["coverage/apps/nxapp"],
|
|
49
|
+
"options": {
|
|
50
|
+
"jestConfig": "apps/nxapp/jest.config.ts",
|
|
51
|
+
"passWithNoTests": true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"lint": {
|
|
55
|
+
"executor": "@nrwl/linter:eslint",
|
|
56
|
+
"outputs": ["{options.outputFile}"],
|
|
57
|
+
"options": {
|
|
58
|
+
"lintFilePatterns": ["apps/nxapp/**/*.{ts,tsx,js,jsx}"]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"tags": []
|
|
63
|
+
},
|
|
64
|
+
"reapp": {
|
|
65
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
66
|
+
"sourceRoot": "apps/reapp/src",
|
|
67
|
+
"root": "apps/reapp",
|
|
68
|
+
"projectType": "application",
|
|
69
|
+
"targets": {
|
|
70
|
+
"build": {
|
|
71
|
+
"executor": "@nrwl/web:webpack",
|
|
72
|
+
"outputs": ["{options.outputPath}"],
|
|
73
|
+
"defaultConfiguration": "production",
|
|
74
|
+
"options": {
|
|
75
|
+
"compiler": "babel",
|
|
76
|
+
"outputPath": "dist/apps/reapp",
|
|
77
|
+
"index": "apps/reapp/src/index.html",
|
|
78
|
+
"baseHref": "/",
|
|
79
|
+
"main": "apps/reapp/src/main.tsx",
|
|
80
|
+
"polyfills": "apps/reapp/src/polyfills.ts",
|
|
81
|
+
"tsConfig": "apps/reapp/tsconfig.app.json",
|
|
82
|
+
"assets": ["apps/reapp/src/favicon.ico", "apps/reapp/src/assets"],
|
|
83
|
+
"styles": ["apps/reapp/src/styles.css"],
|
|
84
|
+
"scripts": [],
|
|
85
|
+
"webpackConfig": "@nrwl/react/plugins/webpack"
|
|
86
|
+
},
|
|
87
|
+
"configurations": {
|
|
88
|
+
"development": {
|
|
89
|
+
"extractLicenses": false,
|
|
90
|
+
"optimization": false,
|
|
91
|
+
"sourceMap": true,
|
|
92
|
+
"vendorChunk": true
|
|
93
|
+
},
|
|
94
|
+
"production": {
|
|
95
|
+
"fileReplacements": [
|
|
96
|
+
{
|
|
97
|
+
"replace": "apps/reapp/src/environments/environment.ts",
|
|
98
|
+
"with": "apps/reapp/src/environments/environment.prod.ts"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"optimization": true,
|
|
102
|
+
"outputHashing": "all",
|
|
103
|
+
"sourceMap": false,
|
|
104
|
+
"namedChunks": false,
|
|
105
|
+
"extractLicenses": true,
|
|
106
|
+
"vendorChunk": false
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"serve": {
|
|
111
|
+
"executor": "@nrwl/web:dev-server",
|
|
112
|
+
"defaultConfiguration": "development",
|
|
113
|
+
"options": {
|
|
114
|
+
"buildTarget": "reapp:build",
|
|
115
|
+
"hmr": true
|
|
116
|
+
},
|
|
117
|
+
"configurations": {
|
|
118
|
+
"development": {
|
|
119
|
+
"buildTarget": "reapp:build:development"
|
|
120
|
+
},
|
|
121
|
+
"production": {
|
|
122
|
+
"buildTarget": "reapp:build:production",
|
|
123
|
+
"hmr": false
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"lint": {
|
|
128
|
+
"executor": "@nrwl/linter:eslint",
|
|
129
|
+
"outputs": ["{options.outputFile}"],
|
|
130
|
+
"options": {
|
|
131
|
+
"lintFilePatterns": ["apps/reapp/**/*.{ts,tsx,js,jsx}"]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"test": {
|
|
135
|
+
"executor": "@nrwl/jest:jest",
|
|
136
|
+
"outputs": ["coverage/apps/reapp"],
|
|
137
|
+
"options": {
|
|
138
|
+
"jestConfig": "apps/reapp/jest.config.ts",
|
|
139
|
+
"passWithNoTests": true
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"tags": []
|
|
144
|
+
},
|
|
145
|
+
"nxlib": {
|
|
146
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
147
|
+
"sourceRoot": "libs/nxlib/src",
|
|
148
|
+
"root": "libs/nxlib",
|
|
149
|
+
"projectType": "library",
|
|
150
|
+
"tags": [],
|
|
151
|
+
"targets": {
|
|
152
|
+
"lint": {
|
|
153
|
+
"executor": "@nrwl/linter:eslint",
|
|
154
|
+
"outputs": ["{options.outputFile}"],
|
|
155
|
+
"options": {
|
|
156
|
+
"lintFilePatterns": ["libs/nxlib/**/*.{ts,tsx,js,jsx}"]
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"test": {
|
|
160
|
+
"executor": "@nrwl/jest:jest",
|
|
161
|
+
"outputs": ["coverage/libs/nxlib"],
|
|
162
|
+
"options": {
|
|
163
|
+
"jestConfig": "libs/nxlib/jest.config.ts",
|
|
164
|
+
"passWithNoTests": true
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"nxlib-buildable": {
|
|
170
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
171
|
+
"sourceRoot": "libs/nxlib-buildable/src",
|
|
172
|
+
"root": "libs/nxlib-buildable",
|
|
173
|
+
"projectType": "library",
|
|
174
|
+
"tags": [],
|
|
175
|
+
"targets": {
|
|
176
|
+
"build": {
|
|
177
|
+
"executor": "@nrwl/web:rollup",
|
|
178
|
+
"outputs": ["{options.outputPath}"],
|
|
179
|
+
"options": {
|
|
180
|
+
"outputPath": "dist/libs/nxlib-buildable",
|
|
181
|
+
"tsConfig": "libs/nxlib-buildable/tsconfig.lib.json",
|
|
182
|
+
"project": "libs/nxlib-buildable/package.json",
|
|
183
|
+
"entryFile": "libs/nxlib-buildable/src/index.ts",
|
|
184
|
+
"external": ["react/jsx-runtime"],
|
|
185
|
+
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
|
|
186
|
+
"compiler": "babel",
|
|
187
|
+
"assets": [
|
|
188
|
+
{
|
|
189
|
+
"glob": "libs/nxlib-buildable/README.md",
|
|
190
|
+
"input": ".",
|
|
191
|
+
"output": "."
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"lint": {
|
|
197
|
+
"executor": "@nrwl/linter:eslint",
|
|
198
|
+
"outputs": ["{options.outputFile}"],
|
|
199
|
+
"options": {
|
|
200
|
+
"lintFilePatterns": ["libs/nxlib-buildable/**/*.{ts,tsx,js,jsx}"]
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"test": {
|
|
204
|
+
"executor": "@nrwl/jest:jest",
|
|
205
|
+
"outputs": ["coverage/libs/nxlib-buildable"],
|
|
206
|
+
"options": {
|
|
207
|
+
"jestConfig": "libs/nxlib-buildable/jest.config.ts",
|
|
208
|
+
"passWithNoTests": true
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"relib-buildable": {
|
|
214
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
215
|
+
"sourceRoot": "libs/relib-buildable/src",
|
|
216
|
+
"root": "libs/relib-buildable",
|
|
217
|
+
"projectType": "library",
|
|
218
|
+
"tags": [],
|
|
219
|
+
"targets": {
|
|
220
|
+
"build": {
|
|
221
|
+
"executor": "@nrwl/web:rollup",
|
|
222
|
+
"outputs": ["{options.outputPath}"],
|
|
223
|
+
"options": {
|
|
224
|
+
"outputPath": "dist/libs/relib-buildable",
|
|
225
|
+
"tsConfig": "libs/relib-buildable/tsconfig.lib.json",
|
|
226
|
+
"project": "libs/relib-buildable/package.json",
|
|
227
|
+
"entryFile": "libs/relib-buildable/src/index.ts",
|
|
228
|
+
"external": ["react/jsx-runtime"],
|
|
229
|
+
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
|
|
230
|
+
"compiler": "babel",
|
|
231
|
+
"assets": [
|
|
232
|
+
{
|
|
233
|
+
"glob": "libs/relib-buildable/README.md",
|
|
234
|
+
"input": ".",
|
|
235
|
+
"output": "."
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"lint": {
|
|
241
|
+
"executor": "@nrwl/linter:eslint",
|
|
242
|
+
"outputs": ["{options.outputFile}"],
|
|
243
|
+
"options": {
|
|
244
|
+
"lintFilePatterns": ["libs/relib-buildable/**/*.{ts,tsx,js,jsx}"]
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"test": {
|
|
248
|
+
"executor": "@nrwl/jest:jest",
|
|
249
|
+
"outputs": ["coverage/libs/relib-buildable"],
|
|
250
|
+
"options": {
|
|
251
|
+
"jestConfig": "libs/relib-buildable/jest.config.ts",
|
|
252
|
+
"passWithNoTests": true
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"reapp-swc": {
|
|
258
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
259
|
+
"sourceRoot": "apps/reapp-swc/src",
|
|
260
|
+
"root": "apps/reapp-swc",
|
|
261
|
+
"projectType": "application",
|
|
262
|
+
"targets": {
|
|
263
|
+
"build": {
|
|
264
|
+
"executor": "@nrwl/web:webpack",
|
|
265
|
+
"outputs": ["{options.outputPath}"],
|
|
266
|
+
"defaultConfiguration": "production",
|
|
267
|
+
"options": {
|
|
268
|
+
"compiler": "swc",
|
|
269
|
+
"outputPath": "dist/apps/reapp-swc",
|
|
270
|
+
"index": "apps/reapp-swc/src/index.html",
|
|
271
|
+
"baseHref": "/",
|
|
272
|
+
"main": "apps/reapp-swc/src/main.tsx",
|
|
273
|
+
"polyfills": "apps/reapp-swc/src/polyfills.ts",
|
|
274
|
+
"tsConfig": "apps/reapp-swc/tsconfig.app.json",
|
|
275
|
+
"assets": [
|
|
276
|
+
"apps/reapp-swc/src/favicon.ico",
|
|
277
|
+
"apps/reapp-swc/src/assets"
|
|
278
|
+
],
|
|
279
|
+
"styles": ["apps/reapp-swc/src/styles.css"],
|
|
280
|
+
"scripts": [],
|
|
281
|
+
"webpackConfig": "@nrwl/react/plugins/webpack"
|
|
282
|
+
},
|
|
283
|
+
"configurations": {
|
|
284
|
+
"development": {
|
|
285
|
+
"extractLicenses": false,
|
|
286
|
+
"optimization": false,
|
|
287
|
+
"sourceMap": true,
|
|
288
|
+
"vendorChunk": true
|
|
289
|
+
},
|
|
290
|
+
"production": {
|
|
291
|
+
"fileReplacements": [
|
|
292
|
+
{
|
|
293
|
+
"replace": "apps/reapp-swc/src/environments/environment.ts",
|
|
294
|
+
"with": "apps/reapp-swc/src/environments/environment.prod.ts"
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"optimization": true,
|
|
298
|
+
"outputHashing": "all",
|
|
299
|
+
"sourceMap": false,
|
|
300
|
+
"namedChunks": false,
|
|
301
|
+
"extractLicenses": true,
|
|
302
|
+
"vendorChunk": false
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"serve": {
|
|
307
|
+
"executor": "@nrwl/web:dev-server",
|
|
308
|
+
"defaultConfiguration": "development",
|
|
309
|
+
"options": {
|
|
310
|
+
"buildTarget": "reapp-swc:build",
|
|
311
|
+
"hmr": true
|
|
312
|
+
},
|
|
313
|
+
"configurations": {
|
|
314
|
+
"development": {
|
|
315
|
+
"buildTarget": "reapp-swc:build:development"
|
|
316
|
+
},
|
|
317
|
+
"production": {
|
|
318
|
+
"buildTarget": "reapp-swc:build:production",
|
|
319
|
+
"hmr": false
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"lint": {
|
|
324
|
+
"executor": "@nrwl/linter:eslint",
|
|
325
|
+
"outputs": ["{options.outputFile}"],
|
|
326
|
+
"options": {
|
|
327
|
+
"lintFilePatterns": ["apps/reapp-swc/**/*.{ts,tsx,js,jsx}"]
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"test": {
|
|
331
|
+
"executor": "@nrwl/jest:jest",
|
|
332
|
+
"outputs": ["coverage/apps/reapp-swc"],
|
|
333
|
+
"options": {
|
|
334
|
+
"jestConfig": "apps/reapp-swc/jest.config.ts",
|
|
335
|
+
"passWithNoTests": true
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"tags": []
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tree } from '@nrwl/devkit';
|
|
2
2
|
import { StorybookConfigureSchema } from './schema';
|
|
3
3
|
export declare function addStorybookTask(tree: Tree, projectName: string, uiFramework: string): void;
|
|
4
|
-
export declare function addAngularStorybookTask(tree: Tree, projectName: string
|
|
4
|
+
export declare function addAngularStorybookTask(tree: Tree, projectName: string): void;
|
|
5
5
|
export declare function configureTsProjectConfig(tree: Tree, schema: StorybookConfigureSchema): void;
|
|
6
6
|
export declare function configureTsSolutionConfig(tree: Tree, schema: StorybookConfigureSchema): void;
|
|
7
7
|
/**
|
|
@@ -15,5 +15,5 @@ export declare function configureTsSolutionConfig(tree: Tree, schema: StorybookC
|
|
|
15
15
|
export declare function updateLintConfig(tree: Tree, schema: StorybookConfigureSchema): void;
|
|
16
16
|
export declare function normalizeSchema(schema: StorybookConfigureSchema): StorybookConfigureSchema;
|
|
17
17
|
export declare function createRootStorybookDir(tree: Tree, js: boolean, tsConfiguration: boolean): void;
|
|
18
|
-
export declare function createProjectStorybookDir(tree: Tree, projectName: string, uiFramework: StorybookConfigureSchema['uiFramework'], js: boolean, tsConfiguration: boolean): void;
|
|
18
|
+
export declare function createProjectStorybookDir(tree: Tree, projectName: string, uiFramework: StorybookConfigureSchema['uiFramework'], js: boolean, tsConfiguration: boolean, isNextJs?: boolean, usesSwc?: boolean): void;
|
|
19
19
|
export declare function getTsConfigPath(tree: Tree, projectName: string, path?: string): string;
|