@nx/docker 23.0.0-beta.21 → 23.0.0-beta.23
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/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +2 -1
- package/package.json +3 -3
- package/src/plugins/plugin.d.ts +6 -2
- package/src/plugins/plugin.d.ts.map +1 -1
- package/src/plugins/plugin.js +6 -2
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createNodesV2, DockerPluginOptions } from './src/plugins/plugin';
|
|
1
|
+
export { createNodes, createNodesV2, DockerPluginOptions, } from './src/plugins/plugin';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/docker/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/docker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,mBAAmB,GACpB,MAAM,sBAAsB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodesV2 = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
var plugin_1 = require("./src/plugins/plugin");
|
|
5
|
+
Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return plugin_1.createNodes; } });
|
|
5
6
|
Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return plugin_1.createNodesV2; } });
|
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": "23.0.0-beta.
|
|
4
|
+
"version": "23.0.0-beta.23",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"executors": "./executors.json",
|
|
52
52
|
"generators": "./generators.json",
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@nx/devkit": "23.0.0-beta.
|
|
54
|
+
"@nx/devkit": "23.0.0-beta.23",
|
|
55
55
|
"enquirer": "~2.3.6",
|
|
56
56
|
"tslib": "^2.3.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"nx": "23.0.0-beta.
|
|
59
|
+
"nx": "23.0.0-beta.23"
|
|
60
60
|
}
|
|
61
61
|
}
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CreateNodes } from '@nx/devkit';
|
|
2
2
|
export interface DockerTargetOptions {
|
|
3
3
|
name: string;
|
|
4
4
|
args?: string[];
|
|
@@ -22,6 +22,10 @@ export interface DockerPluginOptions {
|
|
|
22
22
|
buildTarget?: string | DockerTargetOptions;
|
|
23
23
|
runTarget?: string | DockerTargetOptions;
|
|
24
24
|
}
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const createNodes: CreateNodes<DockerPluginOptions>;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
28
|
+
*/
|
|
29
|
+
export declare const createNodesV2: CreateNodes<DockerPluginOptions>;
|
|
26
30
|
export declare function getProjectNameFromPath(projectRoot: string, workspaceRoot: string): string;
|
|
27
31
|
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/docker/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/docker/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,WAAW,EAOjB,MAAM,YAAY,CAAC;AAQpB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CACrB,MAAM,EACN,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,MAAM,CAAC,CACrD,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC;CAC1C;AAWD,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,mBAAmB,CAmCxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,kCAAc,CAAC;AAoDzC,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,GACpB,MAAM,CAOR"}
|
package/src/plugins/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createNodesV2 = void 0;
|
|
3
|
+
exports.createNodesV2 = exports.createNodes = void 0;
|
|
4
4
|
exports.getProjectNameFromPath = getProjectNameFromPath;
|
|
5
5
|
const internal_1 = require("@nx/devkit/internal");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -11,7 +11,7 @@ const path_1 = require("path");
|
|
|
11
11
|
const git_utils_1 = require("nx/src/utils/git-utils");
|
|
12
12
|
const interpolate_pattern_1 = require("../utils/interpolate-pattern");
|
|
13
13
|
const dockerfileGlob = '**/Dockerfile';
|
|
14
|
-
exports.
|
|
14
|
+
exports.createNodes = [
|
|
15
15
|
dockerfileGlob,
|
|
16
16
|
async (configFilePaths, options, context) => {
|
|
17
17
|
const optionsHash = (0, file_hasher_1.hashObject)(options);
|
|
@@ -29,6 +29,10 @@ exports.createNodesV2 = [
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
];
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
|
|
34
|
+
*/
|
|
35
|
+
exports.createNodesV2 = exports.createNodes;
|
|
32
36
|
async function createNodesInternal(configFilePath, hash, normalizedOptions, context, targetsCache) {
|
|
33
37
|
const projectRoot = (0, path_1.dirname)(configFilePath);
|
|
34
38
|
if (!targetsCache.has(hash)) {
|