nx 19.5.0-canary.20240712-0b0db78 → 19.5.0-canary.20240716-34da542
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/package.json +12 -12
- package/schemas/project-schema.json +26 -0
- package/src/command-line/graph/graph.js +1 -1
- package/src/config/task-graph.d.ts +4 -0
- package/src/config/workspace-json-project-json.d.ts +5 -0
- package/src/core/graph/main.js +1 -1
- package/src/native/index.d.ts +1 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/native/transform-objects.js +1 -0
- package/src/project-graph/utils/project-configuration-utils.js +22 -2
- package/src/tasks-runner/create-task-graph.js +1 -0
- package/src/tasks-runner/tasks-schedule.d.ts +1 -0
- package/src/tasks-runner/tasks-schedule.js +28 -4
- package/src/tasks-runner/utils.js +2 -1
- package/src/utils/find-matching-projects.d.ts +0 -4
- package/src/utils/find-matching-projects.js +4 -7
- package/src/utils/globs.d.ts +2 -0
- package/src/utils/globs.js +11 -0
package/README.md
CHANGED
@@ -59,7 +59,7 @@ npx nx@latest init
|
|
59
59
|
- [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
|
60
60
|
- [Intro to Nx](https://nx.dev/getting-started/intro)
|
61
61
|
- [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
|
62
|
-
- [Blog Posts About Nx](https://
|
62
|
+
- [Blog Posts About Nx](https://nx.dev/blog)
|
63
63
|
|
64
64
|
<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"
|
65
65
|
width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.5.0-canary.
|
3
|
+
"version": "19.5.0-canary.20240716-34da542",
|
4
4
|
"private": false,
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
6
6
|
"repository": {
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"yargs-parser": "21.1.1",
|
72
72
|
"node-machine-id": "1.1.12",
|
73
73
|
"ora": "5.3.0",
|
74
|
-
"@nrwl/tao": "19.5.0-canary.
|
74
|
+
"@nrwl/tao": "19.5.0-canary.20240716-34da542"
|
75
75
|
},
|
76
76
|
"peerDependencies": {
|
77
77
|
"@swc-node/register": "^1.8.0",
|
@@ -86,16 +86,16 @@
|
|
86
86
|
}
|
87
87
|
},
|
88
88
|
"optionalDependencies": {
|
89
|
-
"@nx/nx-darwin-x64": "19.5.0-canary.
|
90
|
-
"@nx/nx-darwin-arm64": "19.5.0-canary.
|
91
|
-
"@nx/nx-linux-x64-gnu": "19.5.0-canary.
|
92
|
-
"@nx/nx-linux-x64-musl": "19.5.0-canary.
|
93
|
-
"@nx/nx-win32-x64-msvc": "19.5.0-canary.
|
94
|
-
"@nx/nx-linux-arm64-gnu": "19.5.0-canary.
|
95
|
-
"@nx/nx-linux-arm64-musl": "19.5.0-canary.
|
96
|
-
"@nx/nx-linux-arm-gnueabihf": "19.5.0-canary.
|
97
|
-
"@nx/nx-win32-arm64-msvc": "19.5.0-canary.
|
98
|
-
"@nx/nx-freebsd-x64": "19.5.0-canary.
|
89
|
+
"@nx/nx-darwin-x64": "19.5.0-canary.20240716-34da542",
|
90
|
+
"@nx/nx-darwin-arm64": "19.5.0-canary.20240716-34da542",
|
91
|
+
"@nx/nx-linux-x64-gnu": "19.5.0-canary.20240716-34da542",
|
92
|
+
"@nx/nx-linux-x64-musl": "19.5.0-canary.20240716-34da542",
|
93
|
+
"@nx/nx-win32-x64-msvc": "19.5.0-canary.20240716-34da542",
|
94
|
+
"@nx/nx-linux-arm64-gnu": "19.5.0-canary.20240716-34da542",
|
95
|
+
"@nx/nx-linux-arm64-musl": "19.5.0-canary.20240716-34da542",
|
96
|
+
"@nx/nx-linux-arm-gnueabihf": "19.5.0-canary.20240716-34da542",
|
97
|
+
"@nx/nx-win32-arm64-msvc": "19.5.0-canary.20240716-34da542",
|
98
|
+
"@nx/nx-freebsd-x64": "19.5.0-canary.20240716-34da542"
|
99
99
|
},
|
100
100
|
"nx-migrations": {
|
101
101
|
"migrations": "./migrations.json",
|
@@ -4,6 +4,27 @@
|
|
4
4
|
"title": "JSON schema for Nx projects",
|
5
5
|
"type": "object",
|
6
6
|
"properties": {
|
7
|
+
"name": {
|
8
|
+
"type": "string",
|
9
|
+
"description": "Project's name. Optional if specified in workspace.json"
|
10
|
+
},
|
11
|
+
"root": {
|
12
|
+
"type": "string",
|
13
|
+
"description": "Project's location relative to the root of the workspace"
|
14
|
+
},
|
15
|
+
"sourceRoot": {
|
16
|
+
"type": "string",
|
17
|
+
"description": "The location of project's sources relative to the root of the workspace"
|
18
|
+
},
|
19
|
+
"projectType": {
|
20
|
+
"type": "string",
|
21
|
+
"description": "Type of project supported",
|
22
|
+
"enum": ["library", "application"]
|
23
|
+
},
|
24
|
+
"generators": {
|
25
|
+
"type": "object",
|
26
|
+
"description": "List of default values used by generators"
|
27
|
+
},
|
7
28
|
"namedInputs": {
|
8
29
|
"type": "object",
|
9
30
|
"description": "Named inputs used by inputs defined in targets",
|
@@ -112,6 +133,11 @@
|
|
112
133
|
"cache": {
|
113
134
|
"type": "boolean",
|
114
135
|
"description": "Specifies if the given target should be cacheable"
|
136
|
+
},
|
137
|
+
"parallelism": {
|
138
|
+
"type": "boolean",
|
139
|
+
"default": true,
|
140
|
+
"description": "Whether this target can be run in parallel with other tasks"
|
115
141
|
}
|
116
142
|
}
|
117
143
|
}
|
@@ -778,6 +778,6 @@ function getHelpTextFromTarget(projectName, targetName) {
|
|
778
778
|
if (!command)
|
779
779
|
throw new Error(`No help command found for ${projectName}:${targetName}`);
|
780
780
|
return (0, node_child_process_1.execSync)(command, {
|
781
|
-
cwd:
|
781
|
+
cwd: target.options?.cwd ?? workspace_root_1.workspaceRoot,
|
782
782
|
}).toString();
|
783
783
|
}
|