@alfresco/adf-cli 8.4.0-18550319575 → 8.4.0-18559858551

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alfresco/adf-cli",
3
3
  "description": "Alfresco ADF cli and utils",
4
- "version": "8.4.0-18550319575",
4
+ "version": "8.4.0-18559858551",
5
5
  "author": "Hyland Software, Inc. and its affiliates",
6
6
  "bin": {
7
7
  "adf-cli": "bin/adf-cli",
@@ -20,7 +20,7 @@
20
20
  "dist": "rm -rf ../../dist/libs/cli && npm run build && cp -R ./bin ../../dist/libs/cli && cp -R ./resources ../../dist/libs/cli && cp -R ./templates ../../dist/libs/cli && cp ./package.json ../../dist/libs/cli"
21
21
  },
22
22
  "dependencies": {
23
- "@alfresco/js-api": ">=9.4.0-18550319575",
23
+ "@alfresco/js-api": ">=9.4.0-18559858551",
24
24
  "commander": "^6.2.1",
25
25
  "ejs": "^3.1.10",
26
26
  "license-checker": "^25.0.1",
@@ -18,8 +18,6 @@ export * from './audit';
18
18
  export * from './changelog';
19
19
  export * from './check-cs-env';
20
20
  export * from './check-plugin-env';
21
- export * from './docker';
22
- export * from './exec';
23
21
  export * from './init-aae-env';
24
22
  export * from './init-acs-env';
25
23
  export * from './init-aps-env';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/cli/scripts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/cli/scripts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
package/scripts/index.js CHANGED
@@ -34,8 +34,6 @@ __exportStar(require("./audit"), exports);
34
34
  __exportStar(require("./changelog"), exports);
35
35
  __exportStar(require("./check-cs-env"), exports);
36
36
  __exportStar(require("./check-plugin-env"), exports);
37
- __exportStar(require("./docker"), exports);
38
- __exportStar(require("./exec"), exports);
39
37
  __exportStar(require("./init-aae-env"), exports);
40
38
  __exportStar(require("./init-acs-env"), exports);
41
39
  __exportStar(require("./init-aps-env"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/cli/scripts/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,8CAA4B;AAC5B,iDAA+B;AAC/B,qDAAmC;AACnC,2CAAyB;AACzB,yCAAuB;AACvB,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAC3B,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/cli/scripts/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,8CAA4B;AAC5B,iDAA+B;AAC/B,qDAAmC;AACnC,iDAA+B;AAC/B,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAC3B,2CAAyB;AACzB,8CAA4B;AAC5B,kDAAgC"}
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env node
2
- /*!
3
- * @license
4
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- export interface PublishArgs {
19
- tag?: string;
20
- dryrun?: boolean;
21
- verbose?: boolean;
22
- loginCheck?: boolean;
23
- loginUsername?: string;
24
- loginPassword?: string;
25
- loginRepo?: string;
26
- dockerRepo?: string;
27
- buildArgs?: string[];
28
- dockerTags?: string;
29
- pathProject: string;
30
- fileName: string;
31
- sourceTag?: string;
32
- }
33
- /**
34
- * Publish to Docker command
35
- *
36
- * @param args command arguments
37
- */
38
- export default function main(args: PublishArgs): void;
39
- //# sourceMappingURL=docker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docker.d.ts","sourceRoot":"","sources":["../../../../lib/cli/scripts/docker.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;GAeG;AAiBH,MAAM,WAAW,WAAW;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AA2FD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,IAAI,EAAE,WAAW,QA6E7C"}
package/scripts/docker.js DELETED
@@ -1,192 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- /*!
4
- * @license
5
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.default = main;
21
- const node_process_1 = require("node:process");
22
- const exec_1 = require("./exec");
23
- const commander_1 = require("commander");
24
- const logger_1 = require("./logger");
25
- const path_1 = require("path");
26
- const program = new commander_1.Command();
27
- // eslint-disable-next-line no-shadow
28
- var TARGETS;
29
- (function (TARGETS) {
30
- TARGETS["publish"] = "publish";
31
- TARGETS["link"] = "link";
32
- })(TARGETS || (TARGETS = {}));
33
- const DOCKER_FILENAME = 'Dockerfile';
34
- /**
35
- * Perform a login
36
- *
37
- * @param args arguments
38
- */
39
- function login(args) {
40
- logger_1.logger.info(`Perform docker login...${args.loginRepo}`);
41
- const loginDockerRes = (0, exec_1.exec)('docker', ['login', `-u=${args.loginUsername}`, `-p=${args.loginPassword}`, `${args.loginRepo}`]);
42
- logger_1.logger.info(loginDockerRes);
43
- }
44
- /**
45
- * Build Docker image
46
- *
47
- * @param args command arguments
48
- * @param tag tag
49
- */
50
- function buildImage(args, tag) {
51
- logger_1.logger.info(`Perform docker build...${args.dockerRepo}:${tag}`);
52
- const buildArgs = [];
53
- if (typeof args.buildArgs === 'string') {
54
- buildArgs.push(`--build-arg=${args.buildArgs}`);
55
- }
56
- else {
57
- args.buildArgs.forEach((envVar) => {
58
- buildArgs.push(`--build-arg=${envVar}`);
59
- });
60
- }
61
- if (args.verbose) {
62
- logger_1.logger.info(`Dry-run Perform docker build -t=${args.dockerRepo}:${tag} ${buildArgs} -f=${args.fileName} ${args.pathProject}`);
63
- }
64
- const response = (0, exec_1.exec)('docker', ['build', `-t=${args.dockerRepo}:${tag}`, ...buildArgs, `-f=${args.fileName}`, args.pathProject], {});
65
- logger_1.logger.info(response);
66
- }
67
- /**
68
- * Tag Docker image
69
- *
70
- * @param args command arguments
71
- * @param imageTag image tag
72
- * @param newTag new image tag
73
- */
74
- function tagImage(args, imageTag, newTag) {
75
- logger_1.logger.info(`Perform docker tag... ${args.dockerRepo}:${imageTag} on ${args.dockerRepo}:${newTag}`);
76
- const response = (0, exec_1.exec)('docker', ['tag', `${args.dockerRepo}:${imageTag}`, `${args.dockerRepo}:${newTag}`], {});
77
- logger_1.logger.info(response);
78
- }
79
- /**
80
- * Pull Docker image
81
- *
82
- * @param dockerRepo repository
83
- * @param sourceTag tag
84
- */
85
- function pullImage(dockerRepo, sourceTag) {
86
- logger_1.logger.info(`Perform docker pull... ${dockerRepo}:${sourceTag}`);
87
- const response = (0, exec_1.exec)('docker', ['pull', `${dockerRepo}:${sourceTag}`], {});
88
- logger_1.logger.info(response);
89
- }
90
- /**
91
- * Push Docker image
92
- *
93
- * @param args command arguments
94
- * @param tag tag
95
- */
96
- function pushImage(args, tag) {
97
- if (args.dryrun) {
98
- logger_1.logger.info(`Dry-run Perform docker push... ${args.dockerRepo}:${tag}`);
99
- }
100
- else {
101
- logger_1.logger.info(`Perform docker push... ${args.dockerRepo}:${tag}`);
102
- const response = (0, exec_1.exec)('docker', ['push', `${args.dockerRepo}:${tag}`], {});
103
- logger_1.logger.info(response);
104
- }
105
- }
106
- /**
107
- * Clean Docker image
108
- *
109
- * @param args command arguments
110
- * @param tag tag
111
- */
112
- function cleanImage(args, tag) {
113
- logger_1.logger.info(`Perform docker clean on tag:${tag}...`);
114
- const response = (0, exec_1.exec)('docker', ['rmi', `-f`, `${args.dockerRepo}:${tag}`], {});
115
- logger_1.logger.info(response);
116
- }
117
- /**
118
- * Publish to Docker command
119
- *
120
- * @param args command arguments
121
- */
122
- function main(args) {
123
- program
124
- .version('0.1.0')
125
- .description('Move in the folder where you have your Dockerfile and run the command:\n\n' +
126
- 'adf-cli docker-publish --dockerRepo "${docker_repository}" --dockerTags "${TAGS}"')
127
- .option('--loginRepo [type]', 'URL registry')
128
- .option('--loginPassword [type]', ' password')
129
- .option('--loginUsername [type]', ' username')
130
- .option('--dryrun [type]', 'dryrun')
131
- .option('--verbose [type]', 'verbose')
132
- .option('--loginCheck [type]', 'perform login')
133
- .option('--pathProject [type]', 'the path build context')
134
- .option('--sourceTag [type]', 'sourceTag')
135
- .option('--buildArgs [type...]', 'buildArgs')
136
- .option('--fileName [type...]', 'Docker file name', DOCKER_FILENAME)
137
- .option('--target [type]', 'target: publish or link', TARGETS.publish)
138
- .requiredOption('--dockerRepo [type]', 'docker repo')
139
- .requiredOption('--dockerTags [type]', ' tags')
140
- .parse(node_process_1.argv);
141
- if (node_process_1.argv.includes('-h') || node_process_1.argv.includes('--help')) {
142
- program.outputHelp();
143
- return;
144
- }
145
- if (!Object.values(TARGETS).includes(program.opts().target)) {
146
- logger_1.logger.error(`error: invalid --target value. It can be ${Object.values(TARGETS)}`);
147
- (0, node_process_1.exit)(1);
148
- }
149
- if (program.opts().target === TARGETS.publish && args.buildArgs === undefined) {
150
- logger_1.logger.error(`error: required option --buildArgs [type] in case the target is ${TARGETS.publish}`);
151
- (0, node_process_1.exit)(1);
152
- }
153
- if (program.opts().target === TARGETS.link && args.sourceTag === undefined) {
154
- logger_1.logger.error(`error: required option --sourceTag [type] in case the target is ${TARGETS.link}`);
155
- (0, node_process_1.exit)(1);
156
- }
157
- if (args.pathProject === undefined) {
158
- args.pathProject = (0, path_1.resolve)('./');
159
- }
160
- if (args.fileName === undefined) {
161
- args.fileName = DOCKER_FILENAME;
162
- }
163
- if (args.loginCheck === true) {
164
- login(args);
165
- }
166
- let mainTag;
167
- if (args.dockerTags !== '') {
168
- args.dockerTags.split(',').forEach((tag, index) => {
169
- if (tag) {
170
- logger_1.logger.info(`Analyzing tag:${tag} ... for target ${program.opts().target}`);
171
- if (program.opts().target === TARGETS.publish) {
172
- if (index === 0) {
173
- logger_1.logger.info(`Build only once`);
174
- mainTag = tag;
175
- buildImage(args, mainTag);
176
- }
177
- }
178
- else {
179
- mainTag = args.sourceTag;
180
- pullImage(args.dockerRepo, mainTag);
181
- }
182
- tagImage(args, mainTag, tag);
183
- pushImage(args, tag);
184
- }
185
- });
186
- cleanImage(args, mainTag);
187
- }
188
- else {
189
- logger_1.logger.error(`dockerTags cannot be empty ...`);
190
- }
191
- }
192
- //# sourceMappingURL=docker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"docker.js","sourceRoot":"","sources":["../../../../lib/cli/scripts/docker.ts"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;GAeG;;AA+HH,uBA6EC;AA1MD,+CAA0C;AAC1C,iCAA8B;AAC9B,yCAAoC;AACpC,qCAAkC;AAClC,+BAA+B;AAE/B,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,qCAAqC;AACrC,IAAK,OAGJ;AAHD,WAAK,OAAO;IACR,8BAAmB,CAAA;IACnB,wBAAa,CAAA;AACjB,CAAC,EAHI,OAAO,KAAP,OAAO,QAGX;AAED,MAAM,eAAe,GAAG,YAAY,CAAC;AAiBrC;;;;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@ -1,30 +0,0 @@
1
- #!/usr/bin/env node
2
- /*!
3
- * @license
4
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
- export interface ExecOptions {
19
- cwd?: string;
20
- }
21
- /**
22
- * Exec function
23
- *
24
- * @param command command to execute
25
- * @param args command arguments
26
- * @param opts optional settings
27
- * @returns void function
28
- */
29
- export declare function exec(command: string, args?: string[], opts?: ExecOptions): string;
30
- //# sourceMappingURL=exec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../../../../lib/cli/scripts/exec.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;GAeG;AAKH,MAAM,WAAW,WAAW;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,EAAE,WAAW,UAyBxE"}
package/scripts/exec.js DELETED
@@ -1,56 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- /*!
4
- * @license
5
- * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.exec = exec;
21
- const child_process_1 = require("child_process");
22
- const logger_1 = require("./logger");
23
- /**
24
- * Exec function
25
- *
26
- * @param command command to execute
27
- * @param args command arguments
28
- * @param opts optional settings
29
- * @returns void function
30
- */
31
- function exec(command, args, opts) {
32
- if (process.platform.startsWith('win')) {
33
- args.unshift('/c', command);
34
- command = 'cmd.exe';
35
- }
36
- const { status, error, stderr, stdout } = (0, child_process_1.spawnSync)(command, args, { ...opts });
37
- if (status !== 0) {
38
- if (args) {
39
- logger_1.logger.error(`Command failed: ${command} ${args.map((x) => JSON.stringify(x)).join(', ')}`);
40
- }
41
- else {
42
- logger_1.logger.error(`Command failed ${command}`);
43
- }
44
- if (error) {
45
- logger_1.logger.error('Error: ' + (error ? error.message : 'undefined'));
46
- }
47
- else {
48
- logger_1.logger.error(`STDERR:\n${stderr}`);
49
- }
50
- throw error;
51
- }
52
- else {
53
- return stdout.toString();
54
- }
55
- }
56
- //# sourceMappingURL=exec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"exec.js","sourceRoot":"","sources":["../../../../lib/cli/scripts/exec.ts"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;GAeG;;AAiBH,oBAyBC;AAxCD,iDAA0C;AAC1C,qCAAkC;AAMlC;;;;;;;GAOG;AACH,SAAgB,IAAI,CAAC,OAAe,EAAE,IAAe,EAAE,IAAkB;IACrE,IAAI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC5B,OAAO,GAAG,SAAS,CAAC;IACxB,CAAC;IAED,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAA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