@otwld/nx-argo 0.0.5 → 0.0.7
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 +23 -0
- package/README.md +18 -61
- package/generators.json +8 -13
- package/package.json +1 -1
- package/src/executors/validate/schema.d.ts +5 -1
- package/src/executors/validate/schema.json +14 -3
- package/src/executors/validate/validate.d.ts +1 -1
- package/src/executors/validate/validate.js +164 -14
- package/src/executors/write-artifact-lock/schema.d.ts +8 -0
- package/src/executors/write-artifact-lock/schema.json +29 -1
- package/src/executors/write-artifact-lock/write-artifact-lock.d.ts +1 -1
- package/src/executors/write-artifact-lock/write-artifact-lock.js +128 -16
- package/src/generators/environment-project/environment-project.d.ts +4 -0
- package/src/generators/{service-application/service-application.js → environment-project/environment-project.js} +13 -9
- package/src/generators/environment-project/schema.d.ts +13 -0
- package/src/generators/{service-application → environment-project}/schema.json +7 -11
- package/src/generators/preview-project/preview-project.d.ts +4 -0
- package/src/generators/{preview-stack/preview-stack.js → preview-project/preview-project.js} +7 -8
- package/src/generators/{preview-stack → preview-project}/schema.d.ts +2 -4
- package/src/generators/{preview-stack → preview-project}/schema.json +2 -6
- package/src/index.d.ts +4 -6
- package/src/index.js +5 -7
- package/src/generators/application/application.d.ts +0 -9
- package/src/generators/application/application.js +0 -263
- package/src/generators/application/schema.d.ts +0 -27
- package/src/generators/application/schema.json +0 -97
- package/src/generators/preview-stack/preview-stack.d.ts +0 -4
- package/src/generators/service-application/schema.d.ts +0 -15
- package/src/generators/service-application/service-application.d.ts +0 -4
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = applicationGenerator;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const node_path_1 = require("node:path");
|
|
6
|
-
const semver_1 = require("semver");
|
|
7
|
-
const yaml_1 = require("yaml");
|
|
8
|
-
const applicationApiVersion = 'argoproj.io/v1alpha1';
|
|
9
|
-
const defaultArgoNamespace = 'argocd';
|
|
10
|
-
const valuesFileName = 'values.yaml';
|
|
11
|
-
const valuesSourceRef = 'values';
|
|
12
|
-
/**
|
|
13
|
-
* Creates a multi-source Argo CD Application and its Helm values file.
|
|
14
|
-
* @param tree Workspace tree to update.
|
|
15
|
-
* @param options Generator options supplied by Nx.
|
|
16
|
-
* @returns A promise that resolves after optional formatting.
|
|
17
|
-
*/
|
|
18
|
-
async function applicationGenerator(tree, options) {
|
|
19
|
-
const input = resolveInput(options);
|
|
20
|
-
const applicationFile = (0, devkit_1.joinPathFragments)(input.directory, 'application.yaml');
|
|
21
|
-
const valuesFile = (0, devkit_1.joinPathFragments)(input.directory, valuesFileName);
|
|
22
|
-
if (tree.exists(applicationFile) || tree.exists(valuesFile)) {
|
|
23
|
-
throw new Error(`[nx-argo] An Application already exists at ${input.directory}.`);
|
|
24
|
-
}
|
|
25
|
-
tree.write(applicationFile, createApplicationYaml(input));
|
|
26
|
-
tree.write(valuesFile, createValuesYaml(input.applicationName));
|
|
27
|
-
if (!options.skipFormat) {
|
|
28
|
-
await (0, devkit_1.formatFiles)(tree);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Resolves and validates generator inputs.
|
|
33
|
-
* @param options Generator options supplied by Nx.
|
|
34
|
-
* @returns Normalized Application input.
|
|
35
|
-
*/
|
|
36
|
-
function resolveInput(options) {
|
|
37
|
-
const applicationName = getRequiredName(options.name, 'application name');
|
|
38
|
-
const chartName = (0, devkit_1.names)(options.chart?.trim() || applicationName).fileName;
|
|
39
|
-
const directory = normalizeDirectory(options.directory);
|
|
40
|
-
const project = getRequiredString(options.project, 'Argo CD project');
|
|
41
|
-
const destinationServer = getRequiredString(options.destinationServer, 'destination server');
|
|
42
|
-
const namespace = getKubernetesName(options.namespace, 'namespace');
|
|
43
|
-
const chartVersion = getSemver(options.chartVersion);
|
|
44
|
-
const valuesRepoUrl = getValuesRepositoryUrl(options.valuesRepoUrl);
|
|
45
|
-
const valuesRevision = getRequiredString(options.valuesRevision, 'values repository revision');
|
|
46
|
-
const chartRepository = getChartRepositoryUrl(options.chartRepository);
|
|
47
|
-
const argocdNamespace = options.argocdNamespace?.trim() || defaultArgoNamespace;
|
|
48
|
-
const valuesPath = (0, devkit_1.joinPathFragments)(directory, valuesFileName);
|
|
49
|
-
return {
|
|
50
|
-
applicationName,
|
|
51
|
-
argocdNamespace,
|
|
52
|
-
chartName,
|
|
53
|
-
chartRepository,
|
|
54
|
-
chartVersion,
|
|
55
|
-
destinationServer,
|
|
56
|
-
directory,
|
|
57
|
-
namespace,
|
|
58
|
-
project,
|
|
59
|
-
valuesPath,
|
|
60
|
-
valuesRepoUrl,
|
|
61
|
-
valuesRevision,
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Renders a Helm chart source and a Git values source in one Application.
|
|
66
|
-
* @param input Resolved Application source values.
|
|
67
|
-
* @returns YAML Application manifest contents.
|
|
68
|
-
*/
|
|
69
|
-
function createApplicationYaml(input) {
|
|
70
|
-
const manifest = {
|
|
71
|
-
apiVersion: applicationApiVersion,
|
|
72
|
-
kind: 'Application',
|
|
73
|
-
metadata: {
|
|
74
|
-
name: input.applicationName,
|
|
75
|
-
namespace: input.argocdNamespace,
|
|
76
|
-
},
|
|
77
|
-
spec: {
|
|
78
|
-
project: input.project,
|
|
79
|
-
sources: [
|
|
80
|
-
{
|
|
81
|
-
repoURL: input.chartRepository,
|
|
82
|
-
chart: input.chartName,
|
|
83
|
-
targetRevision: input.chartVersion,
|
|
84
|
-
helm: {
|
|
85
|
-
releaseName: input.chartName,
|
|
86
|
-
valueFiles: [`$${valuesSourceRef}/${input.valuesPath}`],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
repoURL: input.valuesRepoUrl,
|
|
91
|
-
targetRevision: input.valuesRevision,
|
|
92
|
-
ref: valuesSourceRef,
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
destination: {
|
|
96
|
-
server: input.destinationServer,
|
|
97
|
-
namespace: input.namespace,
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
return `# Generated Argo CD Application.\n${(0, yaml_1.stringify)(manifest, { lineWidth: 0 })}`;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Creates the values document.
|
|
105
|
-
* @param applicationName Application name used in the comment.
|
|
106
|
-
* @returns Initial values.yaml contents.
|
|
107
|
-
*/
|
|
108
|
-
function createValuesYaml(applicationName) {
|
|
109
|
-
return `# Helm values for ${applicationName}.\n{}\n`;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Requires a non-empty application name and normalizes it for Kubernetes.
|
|
113
|
-
* @param value Raw name.
|
|
114
|
-
* @param label Human-readable input label.
|
|
115
|
-
* @returns Normalized name.
|
|
116
|
-
*/
|
|
117
|
-
function getRequiredName(value, label) {
|
|
118
|
-
const normalizedName = (0, devkit_1.names)(value?.trim() || '').fileName;
|
|
119
|
-
if (!normalizedName) {
|
|
120
|
-
throw new Error(`[nx-argo] A ${label} is required.`);
|
|
121
|
-
}
|
|
122
|
-
return normalizedName;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Requires a non-empty string input.
|
|
126
|
-
* @param value Raw input.
|
|
127
|
-
* @param label Human-readable input label.
|
|
128
|
-
* @returns Trimmed input.
|
|
129
|
-
*/
|
|
130
|
-
function getRequiredString(value, label) {
|
|
131
|
-
const normalizedValue = value?.trim();
|
|
132
|
-
if (!normalizedValue) {
|
|
133
|
-
throw new Error(`[nx-argo] A ${label} is required.`);
|
|
134
|
-
}
|
|
135
|
-
return normalizedValue;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Validates an exact semantic chart version.
|
|
139
|
-
* @param version Raw chart version.
|
|
140
|
-
* @returns Valid semantic version.
|
|
141
|
-
*/
|
|
142
|
-
function getSemver(version) {
|
|
143
|
-
const normalizedVersion = getRequiredString(version, 'chart version');
|
|
144
|
-
const parsedVersion = (0, semver_1.valid)(normalizedVersion);
|
|
145
|
-
if (!parsedVersion || parsedVersion !== normalizedVersion) {
|
|
146
|
-
throw new Error(`[nx-argo] Chart version must be an exact semantic version: ${version}`);
|
|
147
|
-
}
|
|
148
|
-
return normalizedVersion;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Normalizes a workspace-relative output directory.
|
|
152
|
-
* @param directory Raw output directory.
|
|
153
|
-
* @returns POSIX workspace-relative directory.
|
|
154
|
-
*/
|
|
155
|
-
function normalizeDirectory(directory) {
|
|
156
|
-
const normalizedDirectory = trimTrailingSlashes(getRequiredString(directory, 'output directory')
|
|
157
|
-
.split('\\')
|
|
158
|
-
.join('/')
|
|
159
|
-
.replace(/^\.\//, ''));
|
|
160
|
-
if ((0, node_path_1.isAbsolute)(normalizedDirectory) ||
|
|
161
|
-
normalizedDirectory === '..' ||
|
|
162
|
-
normalizedDirectory.startsWith('../') ||
|
|
163
|
-
normalizedDirectory.split('/').includes('..')) {
|
|
164
|
-
throw new Error(`[nx-argo] Output directory must be workspace-relative: ${directory}`);
|
|
165
|
-
}
|
|
166
|
-
return normalizedDirectory;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Validates a Kubernetes DNS label.
|
|
170
|
-
* @param value Raw Kubernetes name.
|
|
171
|
-
* @param label Human-readable input label.
|
|
172
|
-
* @returns Valid Kubernetes name.
|
|
173
|
-
*/
|
|
174
|
-
function getKubernetesName(value, label) {
|
|
175
|
-
const normalizedName = getRequiredString(value, label);
|
|
176
|
-
if (!isKubernetesName(normalizedName)) {
|
|
177
|
-
throw new Error(`[nx-argo] ${label} is not a valid Kubernetes name: ${value}`);
|
|
178
|
-
}
|
|
179
|
-
return normalizedName;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Converts a Helm repository input into Argo's Helm chart source syntax.
|
|
183
|
-
* @param repositoryUrl Helm repository or OCI registry URL.
|
|
184
|
-
* @returns Argo-compatible repository URL.
|
|
185
|
-
*/
|
|
186
|
-
function getChartRepositoryUrl(repositoryUrl) {
|
|
187
|
-
const normalizedUrl = trimTrailingSlashes(getRequiredString(repositoryUrl, 'chart repository URL'));
|
|
188
|
-
if (normalizedUrl.toLowerCase().startsWith('oci://')) {
|
|
189
|
-
return normalizedUrl.slice('oci://'.length);
|
|
190
|
-
}
|
|
191
|
-
if (hasHttpScheme(normalizedUrl)) {
|
|
192
|
-
return normalizedUrl;
|
|
193
|
-
}
|
|
194
|
-
if (normalizedUrl.includes('://')) {
|
|
195
|
-
throw new Error(`[nx-argo] Unsupported chart repository URL scheme: ${repositoryUrl}`);
|
|
196
|
-
}
|
|
197
|
-
return normalizedUrl;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Requires an HTTPS Git repository for environment values.
|
|
201
|
-
* @param repositoryUrl Git values repository URL.
|
|
202
|
-
* @returns Normalized HTTPS repository URL.
|
|
203
|
-
*/
|
|
204
|
-
function getValuesRepositoryUrl(repositoryUrl) {
|
|
205
|
-
const normalizedUrl = trimTrailingSlashes(getRequiredString(repositoryUrl, 'values repository URL'));
|
|
206
|
-
if (!normalizedUrl.toLowerCase().startsWith('https://')) {
|
|
207
|
-
throw new Error('[nx-argo] Values repository URL must use https://.');
|
|
208
|
-
}
|
|
209
|
-
return normalizedUrl;
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Checks whether a repository URL uses HTTP or HTTPS.
|
|
213
|
-
* @param value Repository URL to inspect.
|
|
214
|
-
* @returns Whether the URL starts with an HTTP scheme.
|
|
215
|
-
*/
|
|
216
|
-
function hasHttpScheme(value) {
|
|
217
|
-
const normalizedValue = value.toLowerCase();
|
|
218
|
-
return (normalizedValue.startsWith('http://') ||
|
|
219
|
-
normalizedValue.startsWith('https://'));
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Checks the DNS label shape required for Kubernetes names.
|
|
223
|
-
* @param value Name to inspect.
|
|
224
|
-
* @returns Whether the value is a lowercase Kubernetes DNS label.
|
|
225
|
-
*/
|
|
226
|
-
function isKubernetesName(value) {
|
|
227
|
-
if (!value || value.length > 63) {
|
|
228
|
-
return false;
|
|
229
|
-
}
|
|
230
|
-
if (!isLowercaseAlphaNumeric(value[0]) ||
|
|
231
|
-
!isLowercaseAlphaNumeric(value[value.length - 1])) {
|
|
232
|
-
return false;
|
|
233
|
-
}
|
|
234
|
-
for (const character of value) {
|
|
235
|
-
if (!isLowercaseAlphaNumeric(character) && character !== '-') {
|
|
236
|
-
return false;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return true;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Checks one lowercase ASCII alphanumeric character.
|
|
243
|
-
* @param character Character to inspect.
|
|
244
|
-
* @returns Whether the character is valid in a Kubernetes name boundary.
|
|
245
|
-
*/
|
|
246
|
-
function isLowercaseAlphaNumeric(character) {
|
|
247
|
-
return (typeof character === 'string' &&
|
|
248
|
-
character.length === 1 &&
|
|
249
|
-
((character >= 'a' && character <= 'z') ||
|
|
250
|
-
(character >= '0' && character <= '9')));
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Removes path separators from the end of a normalized path.
|
|
254
|
-
* @param value Path value to normalize.
|
|
255
|
-
* @returns Path without trailing separators.
|
|
256
|
-
*/
|
|
257
|
-
function trimTrailingSlashes(value) {
|
|
258
|
-
let end = value.length;
|
|
259
|
-
while (end > 0 && value[end - 1] === '/') {
|
|
260
|
-
end -= 1;
|
|
261
|
-
}
|
|
262
|
-
return value.slice(0, end);
|
|
263
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** Options accepted by the `@otwld/nx-argo:application` generator. */
|
|
2
|
-
export interface ApplicationGeneratorSchema {
|
|
3
|
-
/** Application metadata name. */
|
|
4
|
-
name: string;
|
|
5
|
-
/** Workspace-relative output directory for both generated files. */
|
|
6
|
-
directory: string;
|
|
7
|
-
/** Helm chart name; defaults to the application name. */
|
|
8
|
-
chart?: string;
|
|
9
|
-
/** Helm repository or OCI registry URL. */
|
|
10
|
-
chartRepository: string;
|
|
11
|
-
/** Exact semantic chart version. */
|
|
12
|
-
chartVersion: string;
|
|
13
|
-
/** HTTPS Git repository containing the generated values file. */
|
|
14
|
-
valuesRepoUrl: string;
|
|
15
|
-
/** Git revision containing the generated values file. */
|
|
16
|
-
valuesRevision: string;
|
|
17
|
-
/** Argo CD AppProject name. */
|
|
18
|
-
project: string;
|
|
19
|
-
/** Kubernetes API server URL. */
|
|
20
|
-
destinationServer: string;
|
|
21
|
-
/** Kubernetes namespace for the deployed chart. */
|
|
22
|
-
namespace: string;
|
|
23
|
-
/** Namespace where the Argo CD Application is created. */
|
|
24
|
-
argocdNamespace?: string;
|
|
25
|
-
/** Skip Prettier formatting after generation. */
|
|
26
|
-
skipFormat?: boolean;
|
|
27
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/schema",
|
|
3
|
-
"$id": "NxArgoApplicationGeneratorSchema",
|
|
4
|
-
"title": "Argo CD Application generator",
|
|
5
|
-
"description": "Create a multi-source Argo CD Application and its Helm values file.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"name": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "Application metadata name.",
|
|
11
|
-
"pattern": "^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$",
|
|
12
|
-
"$default": {
|
|
13
|
-
"$source": "argv",
|
|
14
|
-
"index": 0
|
|
15
|
-
},
|
|
16
|
-
"x-prompt": "What is the Application name?",
|
|
17
|
-
"x-priority": "important"
|
|
18
|
-
},
|
|
19
|
-
"directory": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "Workspace-relative output directory for application.yaml and values.yaml.",
|
|
22
|
-
"x-prompt": "Where should the Application files be generated?",
|
|
23
|
-
"x-priority": "important"
|
|
24
|
-
},
|
|
25
|
-
"chart": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"description": "Helm chart name. Defaults to the Application name.",
|
|
28
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
|
|
29
|
-
},
|
|
30
|
-
"chartRepository": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"description": "HTTP(S) Helm repository or OCI registry URL.",
|
|
33
|
-
"x-prompt": "What Helm repository or OCI registry contains the chart?",
|
|
34
|
-
"x-priority": "important"
|
|
35
|
-
},
|
|
36
|
-
"chartVersion": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Exact semantic chart version.",
|
|
39
|
-
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$",
|
|
40
|
-
"x-prompt": "What Helm chart version should Argo CD deploy?",
|
|
41
|
-
"x-priority": "important"
|
|
42
|
-
},
|
|
43
|
-
"valuesRepoUrl": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"description": "HTTPS Git repository containing the generated values file.",
|
|
46
|
-
"pattern": "^https://",
|
|
47
|
-
"x-prompt": "What HTTPS Git repository contains the values file?",
|
|
48
|
-
"x-priority": "important"
|
|
49
|
-
},
|
|
50
|
-
"valuesRevision": {
|
|
51
|
-
"type": "string",
|
|
52
|
-
"description": "Git revision containing the generated values file.",
|
|
53
|
-
"x-prompt": "Which Git revision contains the values file?",
|
|
54
|
-
"x-priority": "important"
|
|
55
|
-
},
|
|
56
|
-
"project": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"description": "Argo CD AppProject name.",
|
|
59
|
-
"x-prompt": "Which Argo CD AppProject should own the Application?",
|
|
60
|
-
"x-priority": "important"
|
|
61
|
-
},
|
|
62
|
-
"destinationServer": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"description": "Kubernetes API server URL.",
|
|
65
|
-
"x-prompt": "Which Kubernetes API server should receive the Application?",
|
|
66
|
-
"x-priority": "important"
|
|
67
|
-
},
|
|
68
|
-
"namespace": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"description": "Kubernetes namespace for the deployed chart.",
|
|
71
|
-
"x-prompt": "Which Kubernetes namespace should receive the chart?",
|
|
72
|
-
"x-priority": "important"
|
|
73
|
-
},
|
|
74
|
-
"argocdNamespace": {
|
|
75
|
-
"type": "string",
|
|
76
|
-
"description": "Namespace where the Argo CD Application is created.",
|
|
77
|
-
"default": "argocd"
|
|
78
|
-
},
|
|
79
|
-
"skipFormat": {
|
|
80
|
-
"type": "boolean",
|
|
81
|
-
"description": "Skip Prettier formatting after the files are generated.",
|
|
82
|
-
"default": false
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"required": [
|
|
86
|
-
"name",
|
|
87
|
-
"directory",
|
|
88
|
-
"chartRepository",
|
|
89
|
-
"chartVersion",
|
|
90
|
-
"valuesRepoUrl",
|
|
91
|
-
"valuesRevision",
|
|
92
|
-
"project",
|
|
93
|
-
"destinationServer",
|
|
94
|
-
"namespace"
|
|
95
|
-
],
|
|
96
|
-
"additionalProperties": false
|
|
97
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type Tree } from '@nx/devkit';
|
|
2
|
-
import type { PreviewStackGeneratorSchema } from './schema';
|
|
3
|
-
/** Creates a GitOps project boundary for an explicit preview stack. */
|
|
4
|
-
export default function previewStackGenerator(tree: Tree, options: PreviewStackGeneratorSchema): Promise<void>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** Options accepted by the GitOps service Application generator. */
|
|
2
|
-
export interface ServiceApplicationGeneratorSchema {
|
|
3
|
-
/** Application deployment identity shared by workloads and GitOps. */
|
|
4
|
-
service: string;
|
|
5
|
-
/** Environment name represented by the generated Application. */
|
|
6
|
-
environment: string;
|
|
7
|
-
/** Nx workload project that owns this GitOps Application. */
|
|
8
|
-
app: string;
|
|
9
|
-
/** Parent directory for generated GitOps application files. */
|
|
10
|
-
directory?: string;
|
|
11
|
-
/** Generated Argo CD Application project name. */
|
|
12
|
-
projectName?: string;
|
|
13
|
-
/** Skip Prettier formatting after generation. */
|
|
14
|
-
skipFormat?: boolean;
|
|
15
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type Tree } from '@nx/devkit';
|
|
2
|
-
import type { ServiceApplicationGeneratorSchema } from './schema';
|
|
3
|
-
/** Creates a GitOps project boundary for one workload and environment. */
|
|
4
|
-
export default function serviceApplicationGenerator(tree: Tree, options: ServiceApplicationGeneratorSchema): Promise<void>;
|