@nx/workspace 18.0.0-beta.2 → 18.0.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 +4 -4
- package/src/generators/ci-workflow/files/azure/azure-pipelines.yml__tmpl__ +3 -3
- package/src/generators/ci-workflow/files/bitbucket-pipelines/bitbucket-pipelines.yml__tmpl__ +4 -3
- package/src/generators/ci-workflow/files/circleci/.circleci/config.yml__tmpl__ +4 -3
- package/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__ +4 -3
- package/src/generators/ci-workflow/files/gitlab/.gitlab-ci.yml__tmpl__ +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/workspace",
|
|
3
|
-
"version": "18.0.0-beta.
|
|
3
|
+
"version": "18.0.0-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Workspace plugin contains executors and generators that are useful for any Nx workspace. It should be present in every Nx workspace and other plugins build on it.",
|
|
6
6
|
"repository": {
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@nx/devkit": "18.0.0-beta.
|
|
64
|
+
"@nx/devkit": "18.0.0-beta.3",
|
|
65
65
|
"chalk": "^4.1.0",
|
|
66
66
|
"enquirer": "~2.3.6",
|
|
67
67
|
"tslib": "^2.3.0",
|
|
68
68
|
"yargs-parser": "21.1.1",
|
|
69
|
-
"nx": "18.0.0-beta.
|
|
70
|
-
"@nrwl/workspace": "18.0.0-beta.
|
|
69
|
+
"nx": "18.0.0-beta.3",
|
|
70
|
+
"@nrwl/workspace": "18.0.0-beta.3"
|
|
71
71
|
},
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
@@ -21,13 +21,13 @@ jobs:
|
|
|
21
21
|
pool:
|
|
22
22
|
vmImage: 'ubuntu-latest'
|
|
23
23
|
steps:
|
|
24
|
+
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
25
|
+
# - script: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
26
|
+
|
|
24
27
|
<% if(packageManager == 'pnpm'){ %>
|
|
25
28
|
- script: npm install --prefix=$HOME/.local -g pnpm@8
|
|
26
29
|
displayName: Install PNPM
|
|
27
30
|
<% } %>- script: <%= packageManagerInstall %>
|
|
28
31
|
|
|
29
|
-
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
30
|
-
# - script: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
31
|
-
|
|
32
32
|
- script: <%= packageManagerPrefix %> nx-cloud record -- nx format:check --base=$(BASE_SHA) --head=$(HEAD_SHA)
|
|
33
33
|
- script: <%= packageManagerPrefix %> nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t=lint,test,build
|
package/src/generators/ci-workflow/files/bitbucket-pipelines/bitbucket-pipelines.yml__tmpl__
CHANGED
|
@@ -11,13 +11,14 @@ pipelines:
|
|
|
11
11
|
name: <%= workflowName %>
|
|
12
12
|
script:
|
|
13
13
|
- export NX_BRANCH=$BITBUCKET_PR_ID
|
|
14
|
+
|
|
15
|
+
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
16
|
+
# - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
17
|
+
|
|
14
18
|
<% if(packageManager == 'pnpm'){ %>
|
|
15
19
|
- npm install --prefix=$HOME/.local -g pnpm@8
|
|
16
20
|
<% } %>
|
|
17
21
|
- <%= packageManagerInstall %>
|
|
18
22
|
|
|
19
|
-
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
20
|
-
# - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
21
|
-
|
|
22
23
|
- <%= packageManagerPrefix %> nx-cloud record -- nx format:check
|
|
23
24
|
- <%= packageManagerPrefix %> nx affected -t=lint,test,build
|
|
@@ -9,6 +9,10 @@ jobs:
|
|
|
9
9
|
- image: cimg/node:lts-browsers
|
|
10
10
|
steps:
|
|
11
11
|
- checkout
|
|
12
|
+
|
|
13
|
+
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
14
|
+
# - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
15
|
+
|
|
12
16
|
<% if(packageManager == 'pnpm'){ %>
|
|
13
17
|
- run:
|
|
14
18
|
name: Install PNPM
|
|
@@ -17,9 +21,6 @@ jobs:
|
|
|
17
21
|
- nx/set-shas:
|
|
18
22
|
main-branch-name: '<%= mainBranch %>'
|
|
19
23
|
|
|
20
|
-
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
21
|
-
# - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
22
|
-
|
|
23
24
|
- run: <%= packageManagerPrefix %> nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD
|
|
24
25
|
- run: <%= packageManagerPrefix %> nx affected --base=$NX_BASE --head=$NX_HEAD -t=lint,test,build
|
|
25
26
|
|
package/src/generators/ci-workflow/files/github/.github/workflows/__workflowFileName__.yml__tmpl__
CHANGED
|
@@ -17,6 +17,10 @@ jobs:
|
|
|
17
17
|
- uses: actions/checkout@v4
|
|
18
18
|
with:
|
|
19
19
|
fetch-depth: 0
|
|
20
|
+
|
|
21
|
+
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
22
|
+
# - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
23
|
+
|
|
20
24
|
<% if(packageManager == 'pnpm'){ %>
|
|
21
25
|
- uses: pnpm/action-setup@v2
|
|
22
26
|
with:
|
|
@@ -29,8 +33,5 @@ jobs:
|
|
|
29
33
|
- run: <%= packageManagerInstall %>
|
|
30
34
|
- uses: nrwl/nx-set-shas@v4
|
|
31
35
|
|
|
32
|
-
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
33
|
-
# - run: <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
34
|
-
|
|
35
36
|
- run: <%= packageManagerPrefix %> nx-cloud record -- nx format:check
|
|
36
37
|
- run: <%= packageManagerPrefix %> nx affected -t=lint,test,build
|
|
@@ -9,6 +9,9 @@ variables:
|
|
|
9
9
|
- main
|
|
10
10
|
- merge_requests
|
|
11
11
|
script:
|
|
12
|
+
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
13
|
+
# - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
14
|
+
|
|
12
15
|
<% if(packageManager == 'pnpm'){ %>
|
|
13
16
|
- npm install --prefix=$HOME/.local -g pnpm@8
|
|
14
17
|
<% } %>
|
|
@@ -16,8 +19,5 @@ variables:
|
|
|
16
19
|
- NX_HEAD=$CI_COMMIT_SHA
|
|
17
20
|
- NX_BASE=${CI_MERGE_REQUEST_DIFF_BASE_SHA:-$CI_COMMIT_BEFORE_SHA}
|
|
18
21
|
|
|
19
|
-
# Uncomment to enable task distribution. --stop-agents-after is optional, but allows idle agents to shut down once the "build" targets have been requested
|
|
20
|
-
# - <%= packageManagerPrefix %> nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
|
|
21
|
-
|
|
22
22
|
- <%= packageManagerPrefix %> nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD
|
|
23
23
|
- <%= packageManagerPrefix %> nx affected --base=$NX_BASE --head=$NX_HEAD -t=lint,test,build
|