@nx/docker 0.0.0-pr-31634-fda84eb → 0.0.0-pr-31634-ece4eca
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/README.md
CHANGED
|
@@ -26,6 +26,8 @@ An AI-first build platform that connects everything from your editor to CI. Help
|
|
|
26
26
|
|
|
27
27
|
This package is a [Docker plugin for Nx](https://nx.dev/nx-api/docker).
|
|
28
28
|
|
|
29
|
+
**Experimental**: Support for Docker is currently experimental. Breaking changes may occur and not adhere to semver versioning.
|
|
30
|
+
|
|
29
31
|
## Getting Started
|
|
30
32
|
|
|
31
33
|
### Creating an Nx Workspace
|
package/generators.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"init": {
|
|
6
6
|
"factory": "./src/generators/init/init#initGeneratorInternal",
|
|
7
7
|
"schema": "./src/generators/init/schema.json",
|
|
8
|
-
"description": "Initialize the `@nx/docker` plugin.",
|
|
8
|
+
"description": "Initialize the `@nx/docker` plugin. **Experimental**: Docker support is experimental. Breaking changes may occur and not adhere to semver versioning.",
|
|
9
9
|
"aliases": ["ng-add"],
|
|
10
10
|
"hidden": true
|
|
11
11
|
}
|
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": "0.0.0-pr-31634-
|
|
4
|
+
"version": "0.0.0-pr-31634-ece4eca",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"executors": "./executors.json",
|
|
40
40
|
"generators": "./generators.json",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@nx/devkit": "0.0.0-pr-31634-
|
|
42
|
+
"@nx/devkit": "0.0.0-pr-31634-ece4eca",
|
|
43
43
|
"enquirer": "~2.3.6",
|
|
44
44
|
"tslib": "^2.3.0"
|
|
45
45
|
},
|
|
@@ -6,6 +6,7 @@ const child_process_1 = require("child_process");
|
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
const fs_1 = require("fs");
|
|
8
8
|
async function dockerReleasePublish(schema, context) {
|
|
9
|
+
devkit_1.logger.warn(`Docker support is experimental. Breaking changes may occur and not adhere to semver versioning.`);
|
|
9
10
|
const projectConfig = context.projectGraph.nodes[context.projectName];
|
|
10
11
|
const options = normalizeOptions(projectConfig, schema);
|
|
11
12
|
if (!options.dryRun) {
|
|
@@ -16,6 +16,7 @@ function initGenerator(tree, schema) {
|
|
|
16
16
|
return initGeneratorInternal(tree, { addPlugin: false, ...schema });
|
|
17
17
|
}
|
|
18
18
|
async function initGeneratorInternal(tree, schema) {
|
|
19
|
+
devkit_1.logger.warn(`Docker support is experimental. Breaking changes may occur and not adhere to semver versioning.`);
|
|
19
20
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
20
21
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
21
22
|
nxJson.useInferencePlugins !== false;
|
|
@@ -51,7 +51,7 @@ function updateProjectVersion(newVersion, projectRoot, repositoryName, registry)
|
|
|
51
51
|
if (!isDryRun) {
|
|
52
52
|
(0, child_process_1.execSync)(`docker tag ${imageRef} ${fullImageRef}`);
|
|
53
53
|
}
|
|
54
|
-
const logs = [`Image
|
|
54
|
+
const logs = [`Image tagged with ${fullImageRef}.`];
|
|
55
55
|
if (isDryRun) {
|
|
56
56
|
logs.push(`No changes were applied as --dry-run is enabled.`);
|
|
57
57
|
}
|