@joltdesign/scripts 1.0.0 → 1.0.1
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 +2 -3
- package/dist/test-lint.js +0 -4
- package/dist/test-lint.js.map +0 -1
- package/jolt-config.schema.json +0 -308
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"bin": {
|
|
5
5
|
"jolt": "./dist/cli.js"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.1",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@biomejs/biome": "^2.3.6",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"vitest": "^4.0.10"
|
|
18
18
|
},
|
|
19
19
|
"files": [
|
|
20
|
-
"/dist"
|
|
21
|
-
"jolt-config.schema.json"
|
|
20
|
+
"/dist"
|
|
22
21
|
],
|
|
23
22
|
"scripts": {
|
|
24
23
|
"build": "tsc -b && yarn run generate-schema",
|
package/dist/test-lint.js
DELETED
package/dist/test-lint.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-lint.js","sourceRoot":"","sources":["../src/test-lint.ts"],"names":[],"mappings":"AAAA,IAAI,IAAI;IAAE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA"}
|
package/jolt-config.schema.json
DELETED
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"awsRegion": {
|
|
6
|
-
"default": "eu-west-1",
|
|
7
|
-
"description": "AWS region for operations",
|
|
8
|
-
"type": "string"
|
|
9
|
-
},
|
|
10
|
-
"imageName": {
|
|
11
|
-
"description": "Docker image name for production builds",
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"devImageName": {
|
|
15
|
-
"description": "Docker image name for development builds (overrides imageName + dev suffix)",
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"devSuffix": {
|
|
19
|
-
"default": "-dev",
|
|
20
|
-
"description": "Suffix to append to image name for development builds",
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"buildPlatform": {
|
|
24
|
-
"description": "Docker build platform (e.g., linux/amd64, linux/arm64)",
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"buildContext": {
|
|
28
|
-
"default": ".",
|
|
29
|
-
"description": "Docker build context path",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"ecrBaseUrl": {
|
|
33
|
-
"description": "ECR repository base URL",
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"ecsCluster": {
|
|
37
|
-
"description": "Production ECS cluster name",
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
"devEcsCluster": {
|
|
41
|
-
"description": "Development ECS cluster name",
|
|
42
|
-
"type": "string"
|
|
43
|
-
},
|
|
44
|
-
"ecsService": {
|
|
45
|
-
"description": "Production ECS service name",
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
"devEcsService": {
|
|
49
|
-
"description": "Development ECS service name",
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"codebuildProject": {
|
|
53
|
-
"description": "Production CodeBuild project name",
|
|
54
|
-
"type": "string"
|
|
55
|
-
},
|
|
56
|
-
"devCodebuildProject": {
|
|
57
|
-
"description": "Development CodeBuild project name",
|
|
58
|
-
"type": "string"
|
|
59
|
-
},
|
|
60
|
-
"cloudfrontDistribution": {
|
|
61
|
-
"description": "CloudFront distribution ID for cache invalidation",
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
|
-
"sshAccount": {
|
|
65
|
-
"description": "SSH account for production deployments (user@host format)",
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
"devSshAccount": {
|
|
69
|
-
"description": "SSH account for development deployments (user@host format)",
|
|
70
|
-
"type": "string"
|
|
71
|
-
},
|
|
72
|
-
"sshPort": {
|
|
73
|
-
"default": "22",
|
|
74
|
-
"description": "SSH port number",
|
|
75
|
-
"type": "string"
|
|
76
|
-
},
|
|
77
|
-
"liveFolder": {
|
|
78
|
-
"description": "Remote folder path for production deployments",
|
|
79
|
-
"type": "string"
|
|
80
|
-
},
|
|
81
|
-
"devFolder": {
|
|
82
|
-
"description": "Remote folder path for development deployments",
|
|
83
|
-
"type": "string"
|
|
84
|
-
},
|
|
85
|
-
"branch": {
|
|
86
|
-
"description": "Git branch for production deployments",
|
|
87
|
-
"type": "string"
|
|
88
|
-
},
|
|
89
|
-
"devBranch": {
|
|
90
|
-
"description": "Git branch for development deployments",
|
|
91
|
-
"type": "string"
|
|
92
|
-
},
|
|
93
|
-
"repo": {
|
|
94
|
-
"description": "Git repository URL",
|
|
95
|
-
"type": "string"
|
|
96
|
-
},
|
|
97
|
-
"codeSubfolder": {
|
|
98
|
-
"description": "Subfolder within repository containing the code",
|
|
99
|
-
"type": "string"
|
|
100
|
-
},
|
|
101
|
-
"nexcessDeployScript": {
|
|
102
|
-
"default": "bin/nexcess-deploy-script.sh",
|
|
103
|
-
"description": "Path to Nexcess deployment script",
|
|
104
|
-
"type": "string"
|
|
105
|
-
},
|
|
106
|
-
"nexcessCleanupScript": {
|
|
107
|
-
"default": "bin/nexcess-cleanup.sh",
|
|
108
|
-
"description": "Path to Nexcess cleanup script",
|
|
109
|
-
"type": "string"
|
|
110
|
-
},
|
|
111
|
-
"dbSeed": {
|
|
112
|
-
"description": "Database seed file path",
|
|
113
|
-
"type": "string"
|
|
114
|
-
},
|
|
115
|
-
"dbBackupPath": {
|
|
116
|
-
"description": "Path for database backups",
|
|
117
|
-
"type": "string"
|
|
118
|
-
},
|
|
119
|
-
"devPlugins": {
|
|
120
|
-
"description": "WordPress plugins to activate on development servers",
|
|
121
|
-
"type": "string"
|
|
122
|
-
},
|
|
123
|
-
"devPluginDelay": {
|
|
124
|
-
"default": "30",
|
|
125
|
-
"description": "Maximum number of seconds to wait for dev plugins to be activated",
|
|
126
|
-
"type": "string"
|
|
127
|
-
},
|
|
128
|
-
"wpCliContainer": {
|
|
129
|
-
"description": "Docker container name for WP-CLI operations",
|
|
130
|
-
"type": "string"
|
|
131
|
-
},
|
|
132
|
-
"wpCliContainerProfile": {
|
|
133
|
-
"description": "Docker Compose profile for WP-CLI container",
|
|
134
|
-
"type": "string"
|
|
135
|
-
},
|
|
136
|
-
"wpUpdates": {
|
|
137
|
-
"description": "WordPress automatic update configuration",
|
|
138
|
-
"type": "object",
|
|
139
|
-
"properties": {
|
|
140
|
-
"doNotUpdate": {
|
|
141
|
-
"description": "List of plugins/themes to skip during updates",
|
|
142
|
-
"default": [],
|
|
143
|
-
"type": "array",
|
|
144
|
-
"items": {
|
|
145
|
-
"type": "string"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"pluginFolder": {
|
|
149
|
-
"description": "Path to WordPress plugins folder",
|
|
150
|
-
"default": "code/wp-content/plugins",
|
|
151
|
-
"type": "string"
|
|
152
|
-
},
|
|
153
|
-
"themeFolder": {
|
|
154
|
-
"description": "Path to WordPress themes folder",
|
|
155
|
-
"default": "code/wp-content/themes",
|
|
156
|
-
"type": "string"
|
|
157
|
-
},
|
|
158
|
-
"wpRoot": {
|
|
159
|
-
"description": "Path to WordPress root directory",
|
|
160
|
-
"default": "code/",
|
|
161
|
-
"type": "string"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
"additionalProperties": false
|
|
165
|
-
},
|
|
166
|
-
"dockerCommand": {
|
|
167
|
-
"default": "docker",
|
|
168
|
-
"description": "Override for docker command",
|
|
169
|
-
"type": "string"
|
|
170
|
-
},
|
|
171
|
-
"composeCommand": {
|
|
172
|
-
"default": "docker compose",
|
|
173
|
-
"description": "Override for docker compose command",
|
|
174
|
-
"type": "string"
|
|
175
|
-
},
|
|
176
|
-
"terraformCommand": {
|
|
177
|
-
"description": "Override for terraform/tofu command (auto-detects tofu vs terraform)",
|
|
178
|
-
"type": "string"
|
|
179
|
-
},
|
|
180
|
-
"nodeCommand": {
|
|
181
|
-
"default": "node",
|
|
182
|
-
"description": "Override for node command",
|
|
183
|
-
"type": "string"
|
|
184
|
-
},
|
|
185
|
-
"yarnCommand": {
|
|
186
|
-
"default": "yarn",
|
|
187
|
-
"description": "Override for yarn command",
|
|
188
|
-
"type": "string"
|
|
189
|
-
},
|
|
190
|
-
"awsCommand": {
|
|
191
|
-
"default": "aws",
|
|
192
|
-
"description": "Override for aws command",
|
|
193
|
-
"type": "string"
|
|
194
|
-
},
|
|
195
|
-
"sshCommand": {
|
|
196
|
-
"default": "ssh",
|
|
197
|
-
"description": "Override for ssh command",
|
|
198
|
-
"type": "string"
|
|
199
|
-
},
|
|
200
|
-
"rsyncCommand": {
|
|
201
|
-
"default": "rsync",
|
|
202
|
-
"description": "Override for rsync command",
|
|
203
|
-
"type": "string"
|
|
204
|
-
},
|
|
205
|
-
"gitCommand": {
|
|
206
|
-
"default": "git",
|
|
207
|
-
"description": "Override for git command",
|
|
208
|
-
"type": "string"
|
|
209
|
-
},
|
|
210
|
-
"gzipCommand": {
|
|
211
|
-
"default": "gzip",
|
|
212
|
-
"description": "Override for gzip command",
|
|
213
|
-
"type": "string"
|
|
214
|
-
},
|
|
215
|
-
"prepareCommands": {
|
|
216
|
-
"description": "Commands to run during preparation phase",
|
|
217
|
-
"type": "array",
|
|
218
|
-
"items": {
|
|
219
|
-
"anyOf": [
|
|
220
|
-
{
|
|
221
|
-
"description": "Simple command string",
|
|
222
|
-
"type": "string"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"type": "object",
|
|
226
|
-
"properties": {
|
|
227
|
-
"cmd": {
|
|
228
|
-
"description": "Command to execute",
|
|
229
|
-
"type": "string"
|
|
230
|
-
},
|
|
231
|
-
"name": {
|
|
232
|
-
"description": "Display name for the command",
|
|
233
|
-
"type": "string"
|
|
234
|
-
},
|
|
235
|
-
"fail": {
|
|
236
|
-
"description": "Whether to fail if command returns non-zero exit code",
|
|
237
|
-
"default": true,
|
|
238
|
-
"type": "boolean"
|
|
239
|
-
},
|
|
240
|
-
"dir": {
|
|
241
|
-
"description": "Working directory for the command",
|
|
242
|
-
"type": "string"
|
|
243
|
-
},
|
|
244
|
-
"timing": {
|
|
245
|
-
"description": "When to run the command during preparation",
|
|
246
|
-
"default": "normal",
|
|
247
|
-
"type": "string",
|
|
248
|
-
"enum": ["early", "normal"]
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
"required": ["cmd"],
|
|
252
|
-
"additionalProperties": false
|
|
253
|
-
}
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"sites": {
|
|
258
|
-
"description": "Site-specific configuration overrides",
|
|
259
|
-
"type": "object",
|
|
260
|
-
"propertyNames": {
|
|
261
|
-
"type": "string"
|
|
262
|
-
},
|
|
263
|
-
"additionalProperties": {
|
|
264
|
-
"type": "object",
|
|
265
|
-
"propertyNames": {
|
|
266
|
-
"type": "string"
|
|
267
|
-
},
|
|
268
|
-
"additionalProperties": {
|
|
269
|
-
"type": "string"
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
"$schema": {
|
|
274
|
-
"type": "string",
|
|
275
|
-
"description": "JSON Schema reference for IDE support"
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
"additionalProperties": {
|
|
279
|
-
"type": "string"
|
|
280
|
-
},
|
|
281
|
-
"$id": "https://github.com/Jolt-Design/jolt-scripts/schema/jolt-config.json",
|
|
282
|
-
"title": "Jolt Scripts Configuration",
|
|
283
|
-
"description": "Configuration schema for Jolt Scripts DevOps automation tool",
|
|
284
|
-
"examples": [
|
|
285
|
-
{
|
|
286
|
-
"imageName": "my-app",
|
|
287
|
-
"awsRegion": "us-east-1",
|
|
288
|
-
"ecsCluster": "production-cluster",
|
|
289
|
-
"ecsService": "my-app-service",
|
|
290
|
-
"devEcsCluster": "dev-cluster",
|
|
291
|
-
"devEcsService": "my-app-dev-service",
|
|
292
|
-
"prepareCommands": [
|
|
293
|
-
"yarn install",
|
|
294
|
-
{
|
|
295
|
-
"cmd": "yarn build",
|
|
296
|
-
"name": "Build application",
|
|
297
|
-
"timing": "normal"
|
|
298
|
-
}
|
|
299
|
-
],
|
|
300
|
-
"sites": {
|
|
301
|
-
"staging": {
|
|
302
|
-
"ecsCluster": "staging-cluster",
|
|
303
|
-
"ecsService": "my-app-staging"
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
}
|