@nx/angular 20.5.0-beta.3 → 20.5.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "20.5.0-beta.
|
|
3
|
+
"version": "20.5.0-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"semver": "^7.5.3",
|
|
72
72
|
"tslib": "^2.3.0",
|
|
73
73
|
"webpack-merge": "^5.8.0",
|
|
74
|
-
"@nx/devkit": "20.5.0-beta.
|
|
75
|
-
"@nx/js": "20.5.0-beta.
|
|
76
|
-
"@nx/eslint": "20.5.0-beta.
|
|
77
|
-
"@nx/webpack": "20.5.0-beta.
|
|
78
|
-
"@nx/module-federation": "20.5.0-beta.
|
|
79
|
-
"@nx/web": "20.5.0-beta.
|
|
80
|
-
"@nx/workspace": "20.5.0-beta.
|
|
74
|
+
"@nx/devkit": "20.5.0-beta.4",
|
|
75
|
+
"@nx/js": "20.5.0-beta.4",
|
|
76
|
+
"@nx/eslint": "20.5.0-beta.4",
|
|
77
|
+
"@nx/webpack": "20.5.0-beta.4",
|
|
78
|
+
"@nx/module-federation": "20.5.0-beta.4",
|
|
79
|
+
"@nx/web": "20.5.0-beta.4",
|
|
80
|
+
"@nx/workspace": "20.5.0-beta.4",
|
|
81
81
|
"piscina": "^4.4.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Tree } from '@nx/devkit';
|
|
2
2
|
import type { AngularProjectConfiguration } from '../../../utils/types';
|
|
3
3
|
import type { NormalizedSchema } from './normalized-schema';
|
|
4
|
-
export declare function addProject(tree: Tree, libraryOptions: NormalizedSchema['libraryOptions']): AngularProjectConfiguration
|
|
4
|
+
export declare function addProject(tree: Tree, libraryOptions: NormalizedSchema['libraryOptions']): Promise<AngularProjectConfiguration>;
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.addProject = addProject;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
|
6
|
-
|
|
6
|
+
const add_release_config_1 = require("@nx/js/src/generators/library/utils/add-release-config");
|
|
7
|
+
async function addProject(tree, libraryOptions) {
|
|
7
8
|
const project = {
|
|
8
9
|
name: libraryOptions.name,
|
|
9
10
|
root: libraryOptions.projectRoot,
|
|
@@ -34,6 +35,9 @@ function addProject(tree, libraryOptions) {
|
|
|
34
35
|
},
|
|
35
36
|
defaultConfiguration: 'production',
|
|
36
37
|
};
|
|
38
|
+
if (libraryOptions.publishable) {
|
|
39
|
+
await (0, add_release_config_1.addReleaseConfigForNonTsSolution)(tree, libraryOptions.name, project);
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
(0, devkit_1.addProjectConfiguration)(tree, libraryOptions.name, project);
|
|
39
43
|
return project;
|
|
@@ -25,6 +25,7 @@ const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-projec
|
|
|
25
25
|
const test_runners_1 = require("../../utils/test-runners");
|
|
26
26
|
const add_vitest_1 = require("../utils/add-vitest");
|
|
27
27
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
28
|
+
const add_release_config_1 = require("@nx/js/src/generators/library/utils/add-release-config");
|
|
28
29
|
async function libraryGenerator(tree, schema) {
|
|
29
30
|
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'angular', 'library');
|
|
30
31
|
// Do some validation checks
|
|
@@ -49,7 +50,7 @@ async function libraryGenerator(tree, schema) {
|
|
|
49
50
|
if (!libraryOptions.skipPackageJson) {
|
|
50
51
|
(0, ensure_angular_dependencies_1.ensureAngularDependencies)(tree);
|
|
51
52
|
}
|
|
52
|
-
const project = (0, add_project_1.addProject)(tree, libraryOptions);
|
|
53
|
+
const project = await (0, add_project_1.addProject)(tree, libraryOptions);
|
|
53
54
|
(0, create_files_1.createFiles)(tree, options, project);
|
|
54
55
|
(0, update_tsconfig_1.updateTsConfig)(tree, libraryOptions);
|
|
55
56
|
await addUnitTestRunner(tree, libraryOptions);
|
|
@@ -76,6 +77,9 @@ async function libraryGenerator(tree, schema) {
|
|
|
76
77
|
'ng-packagr': pkgVersions.ngPackagrVersion,
|
|
77
78
|
}, undefined, true);
|
|
78
79
|
(0, dependencies_1.addBuildableLibrariesPostCssDependencies)(tree);
|
|
80
|
+
if (libraryOptions.publishable) {
|
|
81
|
+
await (0, add_release_config_1.releaseTasks)(tree);
|
|
82
|
+
}
|
|
79
83
|
}
|
|
80
84
|
(0, js_1.addTsConfigPath)(tree, libraryOptions.importPath, [
|
|
81
85
|
(0, devkit_1.joinPathFragments)(libraryOptions.projectRoot, './src', 'index.ts'),
|