@nx/angular 16.8.0-beta.2 → 16.8.0-beta.3
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": "16.8.0-beta.
|
|
3
|
+
"version": "16.8.0-beta.3",
|
|
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, 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- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
"migrations": "./migrations.json"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@nrwl/angular": "16.8.0-beta.
|
|
70
|
-
"@nx/cypress": "16.8.0-beta.
|
|
71
|
-
"@nx/devkit": "16.8.0-beta.
|
|
72
|
-
"@nx/jest": "16.8.0-beta.
|
|
73
|
-
"@nx/js": "16.8.0-beta.
|
|
74
|
-
"@nx/linter": "16.8.0-beta.
|
|
75
|
-
"@nx/webpack": "16.8.0-beta.
|
|
76
|
-
"@nx/workspace": "16.8.0-beta.
|
|
69
|
+
"@nrwl/angular": "16.8.0-beta.3",
|
|
70
|
+
"@nx/cypress": "16.8.0-beta.3",
|
|
71
|
+
"@nx/devkit": "16.8.0-beta.3",
|
|
72
|
+
"@nx/jest": "16.8.0-beta.3",
|
|
73
|
+
"@nx/js": "16.8.0-beta.3",
|
|
74
|
+
"@nx/linter": "16.8.0-beta.3",
|
|
75
|
+
"@nx/webpack": "16.8.0-beta.3",
|
|
76
|
+
"@nx/workspace": "16.8.0-beta.3",
|
|
77
77
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
78
78
|
"@typescript-eslint/type-utils": "^5.36.1",
|
|
79
79
|
"chalk": "^4.1.0",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"module": "fesm2022/nx-angular.mjs",
|
|
111
111
|
"typings": "index.d.ts",
|
|
112
112
|
"sideEffects": false,
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "dcd48165a485bc8db57a1fb02b96a0772de3b7e9"
|
|
114
114
|
}
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const setup_ssr_1 = require("../../setup-ssr/setup-ssr");
|
|
7
7
|
const versions_1 = require("../../../utils/versions");
|
|
8
|
+
const path_1 = require("path");
|
|
8
9
|
function addSsr(tree, options, appName) {
|
|
9
10
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
11
|
let project = (0, devkit_1.readProjectConfiguration)(tree, appName);
|
|
@@ -14,7 +15,7 @@ function addSsr(tree, options, appName) {
|
|
|
14
15
|
});
|
|
15
16
|
tree.rename((0, devkit_1.joinPathFragments)(project.sourceRoot, 'main.server.ts'), (0, devkit_1.joinPathFragments)(project.sourceRoot, 'bootstrap.server.ts'));
|
|
16
17
|
tree.write((0, devkit_1.joinPathFragments)(project.root, 'server.ts'), "import('./src/main.server');");
|
|
17
|
-
(0, devkit_1.generateFiles)(tree, (0,
|
|
18
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, '../files'), project.root, {
|
|
18
19
|
appName,
|
|
19
20
|
standalone: options.standalone,
|
|
20
21
|
tmpl: '',
|
|
@@ -9,6 +9,7 @@ const default_base_1 = require("nx/src/utils/default-base");
|
|
|
9
9
|
const versions_1 = require("@nx/js/src/utils/versions");
|
|
10
10
|
const angular_json_1 = require("nx/src/adapter/angular-json");
|
|
11
11
|
const versions_2 = require("../../../utils/versions");
|
|
12
|
+
const path_1 = require("path");
|
|
12
13
|
function validateWorkspace(tree) {
|
|
13
14
|
const errors = [];
|
|
14
15
|
if (!tree.exists('package.json')) {
|
|
@@ -234,7 +235,7 @@ function createWorkspaceFiles(tree) {
|
|
|
234
235
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
235
236
|
updateVsCodeRecommendedExtensions(tree);
|
|
236
237
|
yield (0, js_1.initGenerator)(tree, { skipFormat: true });
|
|
237
|
-
(0, devkit_1.generateFiles)(tree, (0,
|
|
238
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(__dirname, '../files/root'), '.', {
|
|
238
239
|
tmpl: '',
|
|
239
240
|
dot: '.',
|
|
240
241
|
rootTsConfigPath: (0, js_1.getRootTsConfigPathInTree)(tree),
|
|
@@ -4,12 +4,13 @@ exports.generateSSRFiles = void 0;
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const semver_1 = require("semver");
|
|
6
6
|
const version_utils_1 = require("../../utils/version-utils");
|
|
7
|
+
const path_1 = require("path");
|
|
7
8
|
function generateSSRFiles(tree, schema) {
|
|
8
9
|
const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, schema.project);
|
|
9
10
|
const projectRoot = projectConfig.root;
|
|
10
11
|
const browserBundleOutputPath = projectConfig.targets.build.options.outputPath;
|
|
11
12
|
const pathToFiles = (0, devkit_1.joinPathFragments)(__dirname, '..', 'files');
|
|
12
|
-
(0, devkit_1.generateFiles)(tree, (0,
|
|
13
|
+
(0, devkit_1.generateFiles)(tree, (0, path_1.join)(pathToFiles, 'base'), projectRoot, Object.assign(Object.assign({}, schema), { tpl: '' }));
|
|
13
14
|
if (schema.standalone) {
|
|
14
15
|
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(pathToFiles, 'standalone'), projectRoot, Object.assign(Object.assign({}, schema), { browserBundleOutputPath, tpl: '' }));
|
|
15
16
|
}
|