@nx/angular 17.2.5 → 17.2.6

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/README.md CHANGED
@@ -1,9 +1,4 @@
1
- <p style="text-align: center;">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Monorepos · Fast CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
- </picture>
6
- </p>
1
+ <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
7
2
 
8
3
  <div style="text-align: center;">
9
4
 
@@ -20,9 +15,9 @@
20
15
 
21
16
  <hr>
22
17
 
23
- # Nx: Smart Monorepos · Fast CI
18
+ # Nx: Smart, Fast and Extensible Build System
24
19
 
25
- Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
20
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
26
21
 
27
22
  This package is an [Angular plugin for Nx](https://nx.dev/packages/angular).
28
23
 
@@ -64,5 +59,5 @@ npx nx@latest init
64
59
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
65
60
 
66
61
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
67
- width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
62
+ width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
68
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "v17.2.5",
3
+ "version": "17.2.6",
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": {
@@ -78,15 +78,15 @@
78
78
  "tslib": "^2.3.0",
79
79
  "webpack": "^5.80.0",
80
80
  "webpack-merge": "^5.8.0",
81
- "@nx/devkit": "v17.2.5",
82
- "@nx/cypress": "v17.2.5",
83
- "@nx/jest": "v17.2.5",
84
- "@nx/js": "v17.2.5",
85
- "@nx/eslint": "v17.2.5",
86
- "@nx/webpack": "v17.2.5",
87
- "@nx/web": "v17.2.5",
88
- "@nx/workspace": "v17.2.5",
89
- "@nrwl/angular": "v17.2.5"
81
+ "@nx/devkit": "17.2.6",
82
+ "@nx/cypress": "17.2.6",
83
+ "@nx/jest": "17.2.6",
84
+ "@nx/js": "17.2.6",
85
+ "@nx/eslint": "17.2.6",
86
+ "@nx/webpack": "17.2.6",
87
+ "@nx/web": "17.2.6",
88
+ "@nx/workspace": "17.2.6",
89
+ "@nrwl/angular": "17.2.6"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
@@ -38,6 +38,8 @@ function executeDevServerBuilder(rawOptions, context) {
38
38
  const buildLibsFromSource = options.buildLibsFromSource ??
39
39
  buildTargetOptions.buildLibsFromSource ??
40
40
  true;
41
+ process.env.NX_BUILD_LIBS_FROM_SOURCE = `${buildLibsFromSource}`;
42
+ process.env.NX_BUILD_TARGET = options.buildTarget;
41
43
  let pathToWebpackConfig;
42
44
  if (buildTargetOptions.customWebpackConfig?.path) {
43
45
  pathToWebpackConfig = (0, devkit_1.joinPathFragments)(context.workspaceRoot, buildTargetOptions.customWebpackConfig.path);
@@ -25,6 +25,8 @@ function shouldSkipInitialTargetRun(projectGraph, project, target) {
25
25
  function executeWebpackBrowserBuilder(options, context) {
26
26
  options.buildLibsFromSource ??= true;
27
27
  const { buildLibsFromSource, customWebpackConfig, indexFileTransformer, ...delegateBuilderOptions } = options;
28
+ process.env.NX_BUILD_LIBS_FROM_SOURCE = `${buildLibsFromSource}`;
29
+ process.env.NX_BUILD_TARGET = (0, devkit_1.targetToTargetString)({ ...context.target });
28
30
  const pathToWebpackConfig = customWebpackConfig?.path &&
29
31
  (0, devkit_1.joinPathFragments)(context.workspaceRoot, customWebpackConfig.path);
30
32
  if (pathToWebpackConfig && !(0, fs_1.existsSync)(pathToWebpackConfig)) {
@@ -49,6 +49,8 @@ function buildServerAppWithCustomWebpackConfiguration(options, context, pathToWe
49
49
  function executeWebpackServerBuilder(options, context) {
50
50
  (0, validate_options_1.validateOptions)(options);
51
51
  options.buildLibsFromSource ??= true;
52
+ process.env.NX_BUILD_LIBS_FROM_SOURCE = `${options.buildLibsFromSource}`;
53
+ process.env.NX_BUILD_TARGET = (0, devkit_1.targetToTargetString)({ ...context.target });
52
54
  if (!options.buildLibsFromSource) {
53
55
  const { tsConfigPath } = (0, buildable_libs_1.createTmpTsConfigForBuildableLibs)(options.tsConfig, context);
54
56
  options.tsConfig = (0, devkit_1.normalizePath)((0, path_1.relative)(context.workspaceRoot, tsConfigPath));
@@ -7,6 +7,9 @@ function normalizeOptions(schema) {
7
7
  buildTarget ??= schema.browserTarget;
8
8
  delete schema.browserTarget;
9
9
  }
10
+ schema.buildLibsFromSource ??= true;
11
+ process.env.NX_BUILD_LIBS_FROM_SOURCE = `${schema.buildLibsFromSource}`;
12
+ process.env.NX_BUILD_TARGET = `${buildTarget}`;
10
13
  return {
11
14
  ...schema,
12
15
  buildTarget,
@@ -23,6 +23,7 @@ interface BaseSchema {
23
23
  isInitialHost?: boolean;
24
24
  parallel?: number;
25
25
  staticRemotesPort?: number;
26
+ buildLibsFromSource?: boolean;
26
27
  }
27
28
 
28
29
  export type SchemaWithBrowserTarget = BaseSchema & {
@@ -145,6 +145,11 @@
145
145
  "staticRemotesPort": {
146
146
  "type": "number",
147
147
  "description": "The port at which to serve the file-server for the static remotes."
148
+ },
149
+ "buildLibsFromSource": {
150
+ "type": "boolean",
151
+ "description": "Read buildable libraries from source instead of building them separately. If not set, it will take the value specified in the `browserTarget` options, or it will default to `true` if it's also not set in the `browserTarget` options.",
152
+ "x-priority": "important"
148
153
  }
149
154
  },
150
155
  "additionalProperties": false,