@nrwl/workspace 15.3.0 → 15.3.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## [15.3.3](https://github.com/nrwl/nx/compare/15.3.2...15.3.3) (2022-12-12)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/workspace
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/workspace",
|
|
3
|
-
"version": "15.3.
|
|
3
|
+
"version": "15.3.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": {
|
|
@@ -33,31 +33,31 @@
|
|
|
33
33
|
"requirements": {},
|
|
34
34
|
"migrations": "./migrations.json",
|
|
35
35
|
"packageGroup": {
|
|
36
|
-
"@nrwl/angular": "15.3.
|
|
37
|
-
"@nrwl/cli": "15.3.
|
|
38
|
-
"@nrwl/cypress": "15.3.
|
|
39
|
-
"@nrwl/detox": "15.3.
|
|
40
|
-
"@nrwl/devkit": "15.3.
|
|
41
|
-
"@nrwl/esbuild": "15.3.
|
|
42
|
-
"@nrwl/eslint-plugin-nx": "15.3.
|
|
43
|
-
"@nrwl/expo": "15.3.
|
|
44
|
-
"@nrwl/express": "15.3.
|
|
45
|
-
"@nrwl/jest": "15.3.
|
|
46
|
-
"@nrwl/js": "15.3.
|
|
47
|
-
"@nrwl/linter": "15.3.
|
|
48
|
-
"@nrwl/nest": "15.3.
|
|
49
|
-
"@nrwl/next": "15.3.
|
|
50
|
-
"@nrwl/node": "15.3.
|
|
36
|
+
"@nrwl/angular": "15.3.3",
|
|
37
|
+
"@nrwl/cli": "15.3.3",
|
|
38
|
+
"@nrwl/cypress": "15.3.3",
|
|
39
|
+
"@nrwl/detox": "15.3.3",
|
|
40
|
+
"@nrwl/devkit": "15.3.3",
|
|
41
|
+
"@nrwl/esbuild": "15.3.3",
|
|
42
|
+
"@nrwl/eslint-plugin-nx": "15.3.3",
|
|
43
|
+
"@nrwl/expo": "15.3.3",
|
|
44
|
+
"@nrwl/express": "15.3.3",
|
|
45
|
+
"@nrwl/jest": "15.3.3",
|
|
46
|
+
"@nrwl/js": "15.3.3",
|
|
47
|
+
"@nrwl/linter": "15.3.3",
|
|
48
|
+
"@nrwl/nest": "15.3.3",
|
|
49
|
+
"@nrwl/next": "15.3.3",
|
|
50
|
+
"@nrwl/node": "15.3.3",
|
|
51
51
|
"@nrwl/nx-cloud": "latest",
|
|
52
|
-
"@nrwl/nx-plugin": "15.3.
|
|
53
|
-
"@nrwl/react": "15.3.
|
|
54
|
-
"@nrwl/react-native": "15.3.
|
|
55
|
-
"@nrwl/rollup": "15.3.
|
|
56
|
-
"@nrwl/storybook": "15.3.
|
|
57
|
-
"@nrwl/tao": "15.3.
|
|
58
|
-
"@nrwl/web": "15.3.
|
|
59
|
-
"@nrwl/webpack": "15.3.
|
|
60
|
-
"nx": "15.3.
|
|
52
|
+
"@nrwl/nx-plugin": "15.3.3",
|
|
53
|
+
"@nrwl/react": "15.3.3",
|
|
54
|
+
"@nrwl/react-native": "15.3.3",
|
|
55
|
+
"@nrwl/rollup": "15.3.3",
|
|
56
|
+
"@nrwl/storybook": "15.3.3",
|
|
57
|
+
"@nrwl/tao": "15.3.3",
|
|
58
|
+
"@nrwl/web": "15.3.3",
|
|
59
|
+
"@nrwl/webpack": "15.3.3",
|
|
60
|
+
"nx": "15.3.3"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@nrwl/devkit": "15.3.
|
|
73
|
-
"@nrwl/linter": "15.3.
|
|
72
|
+
"@nrwl/devkit": "15.3.3",
|
|
73
|
+
"@nrwl/linter": "15.3.3",
|
|
74
74
|
"@parcel/watcher": "2.0.4",
|
|
75
75
|
"chalk": "4.1.0",
|
|
76
76
|
"chokidar": "^3.5.1",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"ignore": "^5.0.4",
|
|
86
86
|
"minimatch": "3.0.5",
|
|
87
87
|
"npm-run-path": "^4.0.1",
|
|
88
|
-
"nx": "15.3.
|
|
88
|
+
"nx": "15.3.3",
|
|
89
89
|
"open": "^8.4.0",
|
|
90
90
|
"rxjs": "^6.5.4",
|
|
91
91
|
"semver": "7.3.4",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
100
|
"types": "./index.d.ts",
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "486516ea1384d15ea74fe8334687355d1aa98f51"
|
|
102
102
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tree } from '@nrwl/devkit';
|
|
2
2
|
export interface Schema {
|
|
3
3
|
name?: string;
|
|
4
|
-
ci: 'github' | 'azure' | 'circleci' | 'bitbucket-pipelines';
|
|
4
|
+
ci: 'github' | 'azure' | 'circleci' | 'bitbucket-pipelines' | 'gitlab';
|
|
5
5
|
}
|
|
6
6
|
export declare function ciWorkflowGenerator(host: Tree, schema: Schema): Promise<void>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
image: node:18
|
|
2
|
+
variables:
|
|
3
|
+
CI: 'true'
|
|
4
|
+
|
|
5
|
+
# Creating template for DTE agents
|
|
6
|
+
.dte-agent:
|
|
7
|
+
interruptible: true
|
|
8
|
+
script:
|
|
9
|
+
<% if(packageManagerPrefix == 'pnpm exec'){ %>
|
|
10
|
+
- npm install --prefix=$HOME/.local -g pnpm@6.32.4
|
|
11
|
+
<% } %>
|
|
12
|
+
- <%= packageManagerInstall %>
|
|
13
|
+
- <%= packageManagerPrefix %> nx-cloud start-agent
|
|
14
|
+
|
|
15
|
+
# Creating template for a job running DTE (orchestrator)
|
|
16
|
+
.base-pipeline:
|
|
17
|
+
interruptible: true
|
|
18
|
+
only:
|
|
19
|
+
- main
|
|
20
|
+
- merge_requests
|
|
21
|
+
before_script:
|
|
22
|
+
<% if(packageManagerPrefix == 'pnpm exec'){ %>
|
|
23
|
+
- npm install --prefix=$HOME/.local -g pnpm@6.32.4
|
|
24
|
+
<% } %>
|
|
25
|
+
- <%= packageManagerInstall %>
|
|
26
|
+
- NX_HEAD=$CI_COMMIT_SHA
|
|
27
|
+
- NX_BASE=${CI_MERGE_REQUEST_DIFF_BASE_SHA:-$CI_COMMIT_BEFORE_SHA}
|
|
28
|
+
|
|
29
|
+
# Main job running DTE
|
|
30
|
+
<%= workflowName %>:
|
|
31
|
+
stage: affected
|
|
32
|
+
extends: .base-pipeline
|
|
33
|
+
script:
|
|
34
|
+
- <%= packageManagerPrefix %> nx-cloud start-ci-run --stop-agents-after="build"
|
|
35
|
+
- <%= packageManagerPrefix %> nx-cloud record -- yarn nx workspace-lint --base=$NX_BASE --head=$NX_HEAD
|
|
36
|
+
- <%= packageManagerPrefix %> nx-cloud record -- yarn nx format:check --base=$NX_BASE --head=$NX_HEAD
|
|
37
|
+
- <%= packageManagerPrefix %> nx affected --base=$NX_BASE --head=$NX_HEAD --target=lint --parallel=3 & yarn nx affected --base=$NX_BASE --head=$NX_HEAD --target=test --parallel=3 --ci --code-coverage & yarn nx affected --base=$NX_BASE --head=$NX_HEAD --target=e2e --parallel=3 --ci --code-coverage & yarn nx affected --base=$NX_BASE --head=$NX_HEAD --target=build --parallel=3
|
|
38
|
+
|
|
39
|
+
# Create as many agents as you want
|
|
40
|
+
nx-dte-agent1:
|
|
41
|
+
extends: .dte-agent
|
|
42
|
+
stage: affected
|
|
43
|
+
nx-dte-agent2:
|
|
44
|
+
extends: .dte-agent
|
|
45
|
+
stage: affected
|
|
46
|
+
nx-dte-agent3:
|
|
47
|
+
extends: .dte-agent
|
|
48
|
+
stage: affected
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
{ "value": "github", "label": "Github Actions" },
|
|
18
18
|
{ "value": "circleci", "label": "Circle CI" },
|
|
19
19
|
{ "value": "azure", "label": "Azure DevOps" },
|
|
20
|
-
{ "value": "bitbucket-pipelines", "label": "BitBucket Pipelines" }
|
|
20
|
+
{ "value": "bitbucket-pipelines", "label": "BitBucket Pipelines" },
|
|
21
|
+
{ "value": "gitlab", "label": "Gitlab" }
|
|
21
22
|
]
|
|
22
23
|
}
|
|
23
24
|
},
|