@nx/docker 21.4.0-beta.4 → 21.4.0-beta.5
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 +3 -3
- package/src/plugins/plugin.js +10 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/docker",
|
|
3
3
|
"description": "The Nx Plugin for Docker to aid in containerizing projects.",
|
|
4
|
-
"version": "21.4.0-beta.
|
|
4
|
+
"version": "21.4.0-beta.5",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"executors": "./executors.json",
|
|
48
48
|
"generators": "./generators.json",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nx/devkit": "21.4.0-beta.
|
|
50
|
+
"@nx/devkit": "21.4.0-beta.5",
|
|
51
51
|
"enquirer": "~2.3.6",
|
|
52
52
|
"tslib": "^2.3.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"nx": "21.4.0-beta.
|
|
55
|
+
"nx": "21.4.0-beta.5"
|
|
56
56
|
},
|
|
57
57
|
"types": "./src/index.d.ts"
|
|
58
58
|
}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -51,6 +51,15 @@ async function createDockerTargets(projectRoot, options, context) {
|
|
|
51
51
|
const imageRef = projectRoot.replace(/^[\\/]/, '').replace(/[\\/\s]+/g, '-');
|
|
52
52
|
const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
|
|
53
53
|
const targets = {};
|
|
54
|
+
const metadata = {
|
|
55
|
+
targetGroups: {
|
|
56
|
+
['Docker']: [
|
|
57
|
+
`${options.buildTarget}`,
|
|
58
|
+
`${options.runTarget}`,
|
|
59
|
+
'nx-release-publish',
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
};
|
|
54
63
|
targets[options.buildTarget] = {
|
|
55
64
|
command: `docker build .`,
|
|
56
65
|
options: {
|
|
@@ -103,7 +112,7 @@ async function createDockerTargets(projectRoot, options, context) {
|
|
|
103
112
|
targets['nx-release-publish'] = {
|
|
104
113
|
executor: '@nx/docker:release-publish',
|
|
105
114
|
};
|
|
106
|
-
return { targets, metadata
|
|
115
|
+
return { targets, metadata };
|
|
107
116
|
}
|
|
108
117
|
function normalizePluginOptions(options) {
|
|
109
118
|
return {
|