@storm-software/cloudflare-tools 0.65.11 → 0.65.13
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 +18 -0
- package/README.md +1 -2
- package/dist/{chunk-5TU77X7L.js → chunk-5O2NNHGB.js} +2 -2
- package/dist/{chunk-ODZQBRJI.mjs → chunk-F5VJ3N6M.mjs} +1 -1
- package/dist/{chunk-VORADDEW.js → chunk-JHQMDJ3R.js} +2 -2
- package/dist/{chunk-7NLYFDQJ.mjs → chunk-MN5E7SMN.mjs} +2 -2
- package/dist/chunk-UYJSXWZ3.js +209 -0
- package/dist/chunk-XEYH42ZU.mjs +265 -0
- package/dist/chunk-XPGRDGQT.mjs +209 -0
- package/dist/chunk-YTZF32C6.js +262 -0
- package/dist/executors.js +2 -2
- package/dist/executors.mjs +2 -2
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +11 -11
- package/dist/index.mjs +14 -14
- package/dist/src/executors/r2-upload-publish/executor.js +3 -3
- package/dist/src/executors/r2-upload-publish/executor.mjs +2 -2
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +3 -3
- package/dist/src/generators/worker/generator.mjs +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.65.12](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.65.12) (2025-08-28)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([5c32031c0](https://github.com/storm-software/storm-ops/commit/5c32031c0))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([b15066368](https://github.com/storm-software/storm-ops/commit/b15066368))
|
|
13
|
+
|
|
14
|
+
## [0.65.11](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.65.11) (2025-08-28)
|
|
15
|
+
|
|
16
|
+
### Miscellaneous
|
|
17
|
+
|
|
18
|
+
- **monorepo:** Update workspace package links
|
|
19
|
+
([3adc8a08a](https://github.com/storm-software/storm-ops/commit/3adc8a08a))
|
|
20
|
+
- **monorepo:** Regenerate README markdown files
|
|
21
|
+
([95612041b](https://github.com/storm-software/storm-ops/commit/95612041b))
|
|
22
|
+
|
|
5
23
|
## [0.65.10](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.65.10) (2025-08-28)
|
|
6
24
|
|
|
7
25
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Cloudflare Tools](#storm-cloudflare-tools)
|
|
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.65.
|
|
10
|
+
version: "0.65.12",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -176,7 +176,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
176
176
|
nx: "catalog:",
|
|
177
177
|
tsup: "catalog:",
|
|
178
178
|
untyped: "catalog:",
|
|
179
|
-
wrangler: "^4.33.
|
|
179
|
+
wrangler: "^4.33.1"
|
|
180
180
|
},
|
|
181
181
|
publishConfig: {
|
|
182
182
|
access: "public"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5O2NNHGBjs = require('./chunk-5O2NNHGB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
66
66
|
const options = await normalizeOptions(tree, schema, config);
|
|
67
67
|
const tasks = [];
|
|
68
68
|
tasks.push(
|
|
69
|
-
await
|
|
69
|
+
await _chunk5O2NNHGBjs.generator_default.call(void 0, tree, {
|
|
70
70
|
...options,
|
|
71
71
|
skipFormat: true
|
|
72
72
|
})
|
|
@@ -7,7 +7,7 @@ var require_package = __commonJS({
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.65.
|
|
10
|
+
version: "0.65.12",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -176,7 +176,7 @@ var require_package = __commonJS({
|
|
|
176
176
|
nx: "catalog:",
|
|
177
177
|
tsup: "catalog:",
|
|
178
178
|
untyped: "catalog:",
|
|
179
|
-
wrangler: "^4.33.
|
|
179
|
+
wrangler: "^4.33.1"
|
|
180
180
|
},
|
|
181
181
|
publishConfig: {
|
|
182
182
|
access: "public"
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkNCQM44P3js = require('./chunk-NCQM44P3.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkHUZVQCWLjs = require('./chunk-HUZVQCWL.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
19
|
+
|
|
20
|
+
// src/executors/r2-upload-publish/executor.ts
|
|
21
|
+
var _clients3 = require('@aws-sdk/client-s3');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
var _devkit = require('@nx/devkit');
|
|
27
|
+
var _glob = require('glob');
|
|
28
|
+
var _child_process = require('child_process');
|
|
29
|
+
var _promises = require('fs/promises');
|
|
30
|
+
async function runExecutor(options, context) {
|
|
31
|
+
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
32
|
+
if (!context.projectName) {
|
|
33
|
+
throw new Error("The executor requires a projectName.");
|
|
34
|
+
}
|
|
35
|
+
console.info(
|
|
36
|
+
`\u{1F680} Running Storm Cloudflare Publish executor on the ${context.projectName} worker`
|
|
37
|
+
);
|
|
38
|
+
if (!context.projectName || !_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root])) {
|
|
39
|
+
throw new Error("The executor requires projectsConfigurations.");
|
|
40
|
+
}
|
|
41
|
+
try {
|
|
42
|
+
const workspaceRoot = _chunkHUZVQCWLjs.findWorkspaceRoot.call(void 0, );
|
|
43
|
+
const config = await _chunkHUZVQCWLjs.getConfig.call(void 0, workspaceRoot);
|
|
44
|
+
const sourceRoot = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.sourceRoot]), () => ( workspaceRoot));
|
|
45
|
+
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'access', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.name]), () => ( context.projectName));
|
|
46
|
+
const projectDetails = _chunkNU34IEWNjs.getPackageInfo.call(void 0,
|
|
47
|
+
context.projectsConfigurations.projects[context.projectName]
|
|
48
|
+
);
|
|
49
|
+
if (!_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content])) {
|
|
50
|
+
throw new Error(
|
|
51
|
+
`Could not find the project details for ${context.projectName}`
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
const args = _chunkNU34IEWNjs.createCliOptions.call(void 0, { ...options });
|
|
55
|
+
if (isDryRun) {
|
|
56
|
+
args.push("--dry-run");
|
|
57
|
+
}
|
|
58
|
+
const cloudflareAccountId = process.env.STORM_BOT_CLOUDFLARE_ACCOUNT;
|
|
59
|
+
if (!_optionalChain([options, 'optionalAccess', _16 => _16.registry]) && !cloudflareAccountId) {
|
|
60
|
+
throw new Error(
|
|
61
|
+
"The Storm Registry URL is not set in the Storm config. Please set either the `extensions.cyclone.registry` or `config.extensions.cyclone.accountId` property in the Storm config."
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) {
|
|
65
|
+
throw new Error(
|
|
66
|
+
"The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables are not set. Please set these environment variables to upload to the Cyclone Registry."
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
const endpoint = _optionalChain([options, 'optionalAccess', _17 => _17.registry]) ? options.registry : `https://${cloudflareAccountId}.r2.cloudflarestorage.com`;
|
|
70
|
+
let projectGraph;
|
|
71
|
+
try {
|
|
72
|
+
projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
73
|
+
} catch (e) {
|
|
74
|
+
await _devkit.createProjectGraphAsync.call(void 0, );
|
|
75
|
+
projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
76
|
+
}
|
|
77
|
+
if (!projectGraph) {
|
|
78
|
+
throw new Error(
|
|
79
|
+
"The executor failed because the project graph is not available. Please run the build command again."
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
_chunk2CDSXWFAjs.writeInfo.call(void 0,
|
|
83
|
+
`Publishing ${context.projectName} to the Storm Registry at ${endpoint}`
|
|
84
|
+
);
|
|
85
|
+
const s3Client = new (0, _clients3.S3)({
|
|
86
|
+
region: "auto",
|
|
87
|
+
endpoint,
|
|
88
|
+
credentials: {
|
|
89
|
+
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
|
|
90
|
+
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const version = _optionalChain([projectDetails, 'access', _18 => _18.content, 'optionalAccess', _19 => _19.version]);
|
|
94
|
+
_chunk2CDSXWFAjs.writeInfo.call(void 0, `Generated component version: ${version}`);
|
|
95
|
+
const files = await _glob.glob.call(void 0, _devkit.joinPathFragments.call(void 0, sourceRoot, "**/*"), {
|
|
96
|
+
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
97
|
+
});
|
|
98
|
+
const projectPath = `registry/${context.projectName}`;
|
|
99
|
+
const internalDependencies = await _chunkNCQM44P3js.getInternalDependencies.call(void 0,
|
|
100
|
+
context.projectName,
|
|
101
|
+
projectGraph
|
|
102
|
+
);
|
|
103
|
+
const dependencies = internalDependencies.filter(
|
|
104
|
+
(projectNode) => !projectNode.data.tags || projectNode.data.tags.every((tag) => tag.toLowerCase() !== "component")
|
|
105
|
+
).reduce((ret, dep) => {
|
|
106
|
+
if (!ret[dep.name]) {
|
|
107
|
+
ret[dep.name] = "latest";
|
|
108
|
+
}
|
|
109
|
+
return ret;
|
|
110
|
+
}, _nullishCoalesce(projectDetails.content.dependencies, () => ( {})));
|
|
111
|
+
const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
|
|
112
|
+
_chunk2CDSXWFAjs.writeInfo.call(void 0, `Clearing out existing items in ${projectPath}`);
|
|
113
|
+
if (!isDryRun) {
|
|
114
|
+
const response = await s3Client.listObjects({
|
|
115
|
+
Bucket: options.bucketId,
|
|
116
|
+
Prefix: projectPath
|
|
117
|
+
});
|
|
118
|
+
if (_optionalChain([response, 'optionalAccess', _20 => _20.Contents]) && response.Contents.length > 0) {
|
|
119
|
+
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
120
|
+
`Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`
|
|
121
|
+
);
|
|
122
|
+
await Promise.all(
|
|
123
|
+
response.Contents.map(
|
|
124
|
+
(item) => s3Client.deleteObjects({
|
|
125
|
+
Bucket: options.bucketId,
|
|
126
|
+
Delete: {
|
|
127
|
+
Objects: [
|
|
128
|
+
{
|
|
129
|
+
Key: item.Key
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
Quiet: false
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
)
|
|
136
|
+
);
|
|
137
|
+
} else {
|
|
138
|
+
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
139
|
+
`No existing items to delete in the component registry path ${projectPath}`
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
_chunk2CDSXWFAjs.writeWarning.call(void 0, "[Dry run]: skipping upload to the Cyclone Registry.");
|
|
144
|
+
}
|
|
145
|
+
const meta = {
|
|
146
|
+
name: context.projectName,
|
|
147
|
+
version,
|
|
148
|
+
release,
|
|
149
|
+
description: projectDetails.content.description,
|
|
150
|
+
tags: projectDetails.content.keywords,
|
|
151
|
+
dependencies,
|
|
152
|
+
devDependencies: null,
|
|
153
|
+
internalDependencies: internalDependencies.filter(
|
|
154
|
+
(projectNode) => projectNode.data.tags && projectNode.data.tags.some((tag) => tag.toLowerCase() === "component")
|
|
155
|
+
).map((dep) => dep.name)
|
|
156
|
+
};
|
|
157
|
+
if (projectDetails.type === "package.json") {
|
|
158
|
+
meta.devDependencies = projectDetails.content.devDependencies;
|
|
159
|
+
}
|
|
160
|
+
const metaJson = JSON.stringify(meta);
|
|
161
|
+
_chunk2CDSXWFAjs.writeInfo.call(void 0, `Generating meta.json file:
|
|
162
|
+
${metaJson}`);
|
|
163
|
+
await _chunkNCQM44P3js.r2UploadFile.call(void 0,
|
|
164
|
+
s3Client,
|
|
165
|
+
options.bucketId,
|
|
166
|
+
projectPath,
|
|
167
|
+
"meta.json",
|
|
168
|
+
version,
|
|
169
|
+
metaJson,
|
|
170
|
+
"application/json",
|
|
171
|
+
isDryRun
|
|
172
|
+
);
|
|
173
|
+
await Promise.all(
|
|
174
|
+
files.map((file) => {
|
|
175
|
+
const fileName = file.replaceAll("\\", "/").replace(sourceRoot.replaceAll("\\", "/"), "");
|
|
176
|
+
return _promises.readFile.call(void 0, file, { encoding: "utf8" }).then(
|
|
177
|
+
(fileContent) => _chunkNCQM44P3js.r2UploadFile.call(void 0,
|
|
178
|
+
s3Client,
|
|
179
|
+
options.bucketId,
|
|
180
|
+
projectPath,
|
|
181
|
+
fileName,
|
|
182
|
+
version,
|
|
183
|
+
fileContent,
|
|
184
|
+
"text/plain",
|
|
185
|
+
isDryRun
|
|
186
|
+
)
|
|
187
|
+
);
|
|
188
|
+
})
|
|
189
|
+
);
|
|
190
|
+
_chunk2CDSXWFAjs.writeSuccess.call(void 0,
|
|
191
|
+
`Successfully uploaded the ${projectName} component to the Cyclone Registry`,
|
|
192
|
+
config
|
|
193
|
+
);
|
|
194
|
+
return {
|
|
195
|
+
success: true
|
|
196
|
+
};
|
|
197
|
+
} catch (error) {
|
|
198
|
+
console.error("Failed to publish to Cloudflare Workers Registry");
|
|
199
|
+
console.error(error);
|
|
200
|
+
console.log("");
|
|
201
|
+
return {
|
|
202
|
+
success: false
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
exports.runExecutor = runExecutor;
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import {
|
|
2
|
+
findWorkspaceRoot,
|
|
3
|
+
getConfig
|
|
4
|
+
} from "./chunk-HHVUEOQK.mjs";
|
|
5
|
+
import {
|
|
6
|
+
getStopwatch,
|
|
7
|
+
writeDebug,
|
|
8
|
+
writeError,
|
|
9
|
+
writeFatal,
|
|
10
|
+
writeInfo,
|
|
11
|
+
writeTrace
|
|
12
|
+
} from "./chunk-V44DYGWX.mjs";
|
|
13
|
+
import {
|
|
14
|
+
generator_default
|
|
15
|
+
} from "./chunk-MN5E7SMN.mjs";
|
|
16
|
+
import {
|
|
17
|
+
__dirname
|
|
18
|
+
} from "./chunk-ZFX6WEQ7.mjs";
|
|
19
|
+
|
|
20
|
+
// src/generators/worker/generator.ts
|
|
21
|
+
import {
|
|
22
|
+
convertNxGenerator,
|
|
23
|
+
ensurePackage,
|
|
24
|
+
formatFiles,
|
|
25
|
+
generateFiles,
|
|
26
|
+
joinPathFragments,
|
|
27
|
+
names,
|
|
28
|
+
readProjectConfiguration,
|
|
29
|
+
runTasksInSerial,
|
|
30
|
+
updateJson,
|
|
31
|
+
updateProjectConfiguration
|
|
32
|
+
} from "@nx/devkit";
|
|
33
|
+
import { determineProjectNameAndRootOptions } from "@nx/devkit/src/generators/project-name-and-root-utils";
|
|
34
|
+
import { applicationGenerator as nodeApplicationGenerator } from "@nx/node";
|
|
35
|
+
import { nxVersion } from "@nx/node/src/utils/versions";
|
|
36
|
+
import { join } from "path";
|
|
37
|
+
|
|
38
|
+
// src/generators/worker/libs/get-account-id.ts
|
|
39
|
+
function getAccountId(accountId) {
|
|
40
|
+
return `account_id = "${accountId}"`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// src/generators/worker/libs/vitest-imports.ts
|
|
44
|
+
var vitestImports = `import { describe, expect, it, beforeAll, afterAll } from 'vitest';`;
|
|
45
|
+
|
|
46
|
+
// src/generators/worker/libs/vitest-script.ts
|
|
47
|
+
var vitestScript = `"test": "vitest run"`;
|
|
48
|
+
|
|
49
|
+
// src/generators/worker/generator.ts
|
|
50
|
+
async function applicationGenerator(tree, schema) {
|
|
51
|
+
const stopwatch = getStopwatch("Storm Worker generator");
|
|
52
|
+
let config;
|
|
53
|
+
try {
|
|
54
|
+
writeInfo(`\u26A1 Running the Storm Worker generator...
|
|
55
|
+
|
|
56
|
+
`, config);
|
|
57
|
+
const workspaceRoot = findWorkspaceRoot();
|
|
58
|
+
writeDebug(
|
|
59
|
+
`Loading the Storm Config from environment variables and storm.json file...
|
|
60
|
+
- workspaceRoot: ${workspaceRoot}`,
|
|
61
|
+
config
|
|
62
|
+
);
|
|
63
|
+
config = await getConfig(workspaceRoot);
|
|
64
|
+
writeTrace(
|
|
65
|
+
`Loaded Storm config into env:
|
|
66
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
67
|
+
config
|
|
68
|
+
);
|
|
69
|
+
const options = await normalizeOptions(tree, schema, config);
|
|
70
|
+
const tasks = [];
|
|
71
|
+
tasks.push(
|
|
72
|
+
await generator_default(tree, {
|
|
73
|
+
...options,
|
|
74
|
+
skipFormat: true
|
|
75
|
+
})
|
|
76
|
+
);
|
|
77
|
+
tasks.push(
|
|
78
|
+
await nodeApplicationGenerator(tree, {
|
|
79
|
+
...options,
|
|
80
|
+
framework: "none",
|
|
81
|
+
skipFormat: true,
|
|
82
|
+
unitTestRunner: options.unitTestRunner == "vitest" ? "none" : options.unitTestRunner,
|
|
83
|
+
e2eTestRunner: "none",
|
|
84
|
+
name: schema.name
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
if (options.unitTestRunner === "vitest") {
|
|
88
|
+
const { vitestGenerator, createOrEditViteConfig } = ensurePackage(
|
|
89
|
+
"@nx/vite",
|
|
90
|
+
nxVersion
|
|
91
|
+
);
|
|
92
|
+
const vitestTask = await vitestGenerator(tree, {
|
|
93
|
+
project: options.name,
|
|
94
|
+
uiFramework: "none",
|
|
95
|
+
coverageProvider: "v8",
|
|
96
|
+
skipFormat: true,
|
|
97
|
+
testEnvironment: "node"
|
|
98
|
+
});
|
|
99
|
+
tasks.push(vitestTask);
|
|
100
|
+
createOrEditViteConfig(
|
|
101
|
+
tree,
|
|
102
|
+
{
|
|
103
|
+
project: options.name,
|
|
104
|
+
includeLib: false,
|
|
105
|
+
includeVitest: true,
|
|
106
|
+
testEnvironment: "node"
|
|
107
|
+
},
|
|
108
|
+
true
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
addCloudflareFiles(tree, options);
|
|
112
|
+
updateTsAppConfig(tree, options);
|
|
113
|
+
addTargets(tree, options);
|
|
114
|
+
if (options.unitTestRunner === "none") {
|
|
115
|
+
removeTestFiles(tree, options);
|
|
116
|
+
}
|
|
117
|
+
if (!options.skipFormat) {
|
|
118
|
+
await formatFiles(tree);
|
|
119
|
+
}
|
|
120
|
+
if (options.template === "hono") {
|
|
121
|
+
tasks.push(() => {
|
|
122
|
+
const packageJsonPath = joinPathFragments(
|
|
123
|
+
options.directory ?? "",
|
|
124
|
+
"package.json"
|
|
125
|
+
);
|
|
126
|
+
if (tree.exists(packageJsonPath)) {
|
|
127
|
+
updateJson(tree, packageJsonPath, (json) => ({
|
|
128
|
+
...json,
|
|
129
|
+
dependencies: {
|
|
130
|
+
hono: "4.4.0",
|
|
131
|
+
...json?.dependencies
|
|
132
|
+
}
|
|
133
|
+
}));
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return runTasksInSerial(...tasks);
|
|
138
|
+
} catch (error) {
|
|
139
|
+
return () => {
|
|
140
|
+
writeFatal(
|
|
141
|
+
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
142
|
+
config
|
|
143
|
+
);
|
|
144
|
+
writeError(
|
|
145
|
+
`An exception was thrown in the generator's process
|
|
146
|
+
- Details: ${error.message}
|
|
147
|
+
- Stacktrace: ${error.stack}`,
|
|
148
|
+
config
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
} finally {
|
|
152
|
+
stopwatch();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function updateTsAppConfig(tree, options) {
|
|
156
|
+
updateJson(tree, join(options.appProjectRoot, "tsconfig.app.json"), (json) => {
|
|
157
|
+
json.compilerOptions = {
|
|
158
|
+
...json.compilerOptions,
|
|
159
|
+
esModuleInterop: true,
|
|
160
|
+
target: "es2021",
|
|
161
|
+
lib: ["es2021"],
|
|
162
|
+
module: "es2022",
|
|
163
|
+
moduleResolution: "node",
|
|
164
|
+
resolveJsonModule: true,
|
|
165
|
+
allowJs: true,
|
|
166
|
+
checkJs: false,
|
|
167
|
+
noEmit: true,
|
|
168
|
+
isolatedModules: true,
|
|
169
|
+
allowSyntheticDefaultImports: true,
|
|
170
|
+
forceConsistentCasingInFileNames: true,
|
|
171
|
+
strict: true,
|
|
172
|
+
skipLibCheck: true
|
|
173
|
+
};
|
|
174
|
+
json.compilerOptions.types = [
|
|
175
|
+
...json.compilerOptions.types,
|
|
176
|
+
"@cloudflare/workers-types"
|
|
177
|
+
];
|
|
178
|
+
return json;
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
function addCloudflareFiles(tree, options) {
|
|
182
|
+
tree.delete(join(options.appProjectRoot, "src/main.ts"));
|
|
183
|
+
generateFiles(
|
|
184
|
+
tree,
|
|
185
|
+
join(__dirname, "./files/common"),
|
|
186
|
+
options.appProjectRoot,
|
|
187
|
+
{
|
|
188
|
+
...options,
|
|
189
|
+
tmpl: "",
|
|
190
|
+
name: options.name,
|
|
191
|
+
accountId: options.accountId ? getAccountId(options.accountId) : "",
|
|
192
|
+
vitestScript: options.unitTestRunner === "vitest" ? vitestScript : ""
|
|
193
|
+
}
|
|
194
|
+
);
|
|
195
|
+
if (options.template && options.template !== "none") {
|
|
196
|
+
generateFiles(
|
|
197
|
+
tree,
|
|
198
|
+
join(__dirname, `./files/${options.template}`),
|
|
199
|
+
join(options.appProjectRoot, "src"),
|
|
200
|
+
{
|
|
201
|
+
...options,
|
|
202
|
+
tmpl: "",
|
|
203
|
+
name: options.name,
|
|
204
|
+
accountId: options.accountId ? getAccountId(options.accountId) : "",
|
|
205
|
+
vitestScript: options.unitTestRunner === "vitest" ? vitestScript : "",
|
|
206
|
+
vitestImports: options.unitTestRunner === "vitest" ? vitestImports : ""
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function addTargets(tree, options) {
|
|
212
|
+
try {
|
|
213
|
+
const projectConfiguration = readProjectConfiguration(tree, options.name);
|
|
214
|
+
projectConfiguration.targets = {
|
|
215
|
+
...projectConfiguration.targets ?? {},
|
|
216
|
+
serve: {
|
|
217
|
+
executor: "@storm-software/cloudflare-tools:serve",
|
|
218
|
+
options: {
|
|
219
|
+
port: options.port
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"nx-release-publish": {
|
|
223
|
+
executor: "@storm-software/cloudflare-tools:cloudflare-publish"
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
if (projectConfiguration.targets.build) {
|
|
227
|
+
delete projectConfiguration.targets.build;
|
|
228
|
+
}
|
|
229
|
+
updateProjectConfiguration(tree, options.name, projectConfiguration);
|
|
230
|
+
} catch (e) {
|
|
231
|
+
console.error(e);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
function removeTestFiles(tree, options) {
|
|
235
|
+
tree.delete(join(options.appProjectRoot, "src", "index.test.ts"));
|
|
236
|
+
}
|
|
237
|
+
async function normalizeOptions(host, options, config) {
|
|
238
|
+
const { projectName: appProjectName, projectRoot: appProjectRoot } = await determineProjectNameAndRootOptions(host, {
|
|
239
|
+
name: options.name,
|
|
240
|
+
projectType: "application",
|
|
241
|
+
directory: options.directory,
|
|
242
|
+
rootProject: options.rootProject
|
|
243
|
+
});
|
|
244
|
+
options.rootProject = appProjectRoot === ".";
|
|
245
|
+
return {
|
|
246
|
+
addPlugin: process.env.NX_ADD_PLUGINS !== "false",
|
|
247
|
+
accountId: process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
|
|
248
|
+
...options,
|
|
249
|
+
name: names(appProjectName).fileName,
|
|
250
|
+
frontendProject: options.frontendProject ? names(options.frontendProject).fileName : void 0,
|
|
251
|
+
appProjectRoot,
|
|
252
|
+
unitTestRunner: options.unitTestRunner ?? "vitest",
|
|
253
|
+
rootProject: options.rootProject ?? false,
|
|
254
|
+
template: options.template ?? "fetch-handler",
|
|
255
|
+
port: options.port ?? 3e3
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
var generator_default2 = applicationGenerator;
|
|
259
|
+
var applicationSchematic = convertNxGenerator(applicationGenerator);
|
|
260
|
+
|
|
261
|
+
export {
|
|
262
|
+
applicationGenerator,
|
|
263
|
+
generator_default2 as generator_default,
|
|
264
|
+
applicationSchematic
|
|
265
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createCliOptions,
|
|
3
|
+
getPackageInfo
|
|
4
|
+
} from "./chunk-PH3DHY4Q.mjs";
|
|
5
|
+
import {
|
|
6
|
+
getInternalDependencies,
|
|
7
|
+
r2UploadFile
|
|
8
|
+
} from "./chunk-IANDAPQS.mjs";
|
|
9
|
+
import {
|
|
10
|
+
findWorkspaceRoot,
|
|
11
|
+
getConfig
|
|
12
|
+
} from "./chunk-HHVUEOQK.mjs";
|
|
13
|
+
import {
|
|
14
|
+
writeDebug,
|
|
15
|
+
writeInfo,
|
|
16
|
+
writeSuccess,
|
|
17
|
+
writeWarning
|
|
18
|
+
} from "./chunk-V44DYGWX.mjs";
|
|
19
|
+
|
|
20
|
+
// src/executors/r2-upload-publish/executor.ts
|
|
21
|
+
import { S3 } from "@aws-sdk/client-s3";
|
|
22
|
+
import {
|
|
23
|
+
createProjectGraphAsync,
|
|
24
|
+
joinPathFragments,
|
|
25
|
+
readCachedProjectGraph
|
|
26
|
+
} from "@nx/devkit";
|
|
27
|
+
import { glob } from "glob";
|
|
28
|
+
import { execSync } from "node:child_process";
|
|
29
|
+
import { readFile } from "node:fs/promises";
|
|
30
|
+
async function runExecutor(options, context) {
|
|
31
|
+
const isDryRun = process.env.NX_DRY_RUN === "true" || options.dryRun || false;
|
|
32
|
+
if (!context.projectName) {
|
|
33
|
+
throw new Error("The executor requires a projectName.");
|
|
34
|
+
}
|
|
35
|
+
console.info(
|
|
36
|
+
`\u{1F680} Running Storm Cloudflare Publish executor on the ${context.projectName} worker`
|
|
37
|
+
);
|
|
38
|
+
if (!context.projectName || !context.projectsConfigurations?.projects || !context.projectsConfigurations.projects[context.projectName] || !context.projectsConfigurations.projects[context.projectName]?.root) {
|
|
39
|
+
throw new Error("The executor requires projectsConfigurations.");
|
|
40
|
+
}
|
|
41
|
+
try {
|
|
42
|
+
const workspaceRoot = findWorkspaceRoot();
|
|
43
|
+
const config = await getConfig(workspaceRoot);
|
|
44
|
+
const sourceRoot = context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? workspaceRoot;
|
|
45
|
+
const projectName = context.projectsConfigurations.projects[context.projectName]?.name ?? context.projectName;
|
|
46
|
+
const projectDetails = getPackageInfo(
|
|
47
|
+
context.projectsConfigurations.projects[context.projectName]
|
|
48
|
+
);
|
|
49
|
+
if (!projectDetails?.content) {
|
|
50
|
+
throw new Error(
|
|
51
|
+
`Could not find the project details for ${context.projectName}`
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
const args = createCliOptions({ ...options });
|
|
55
|
+
if (isDryRun) {
|
|
56
|
+
args.push("--dry-run");
|
|
57
|
+
}
|
|
58
|
+
const cloudflareAccountId = process.env.STORM_BOT_CLOUDFLARE_ACCOUNT;
|
|
59
|
+
if (!options?.registry && !cloudflareAccountId) {
|
|
60
|
+
throw new Error(
|
|
61
|
+
"The Storm Registry URL is not set in the Storm config. Please set either the `extensions.cyclone.registry` or `config.extensions.cyclone.accountId` property in the Storm config."
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
if (!process.env.AWS_ACCESS_KEY_ID || !process.env.AWS_SECRET_ACCESS_KEY) {
|
|
65
|
+
throw new Error(
|
|
66
|
+
"The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables are not set. Please set these environment variables to upload to the Cyclone Registry."
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
const endpoint = options?.registry ? options.registry : `https://${cloudflareAccountId}.r2.cloudflarestorage.com`;
|
|
70
|
+
let projectGraph;
|
|
71
|
+
try {
|
|
72
|
+
projectGraph = readCachedProjectGraph();
|
|
73
|
+
} catch {
|
|
74
|
+
await createProjectGraphAsync();
|
|
75
|
+
projectGraph = readCachedProjectGraph();
|
|
76
|
+
}
|
|
77
|
+
if (!projectGraph) {
|
|
78
|
+
throw new Error(
|
|
79
|
+
"The executor failed because the project graph is not available. Please run the build command again."
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
writeInfo(
|
|
83
|
+
`Publishing ${context.projectName} to the Storm Registry at ${endpoint}`
|
|
84
|
+
);
|
|
85
|
+
const s3Client = new S3({
|
|
86
|
+
region: "auto",
|
|
87
|
+
endpoint,
|
|
88
|
+
credentials: {
|
|
89
|
+
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
|
|
90
|
+
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const version = projectDetails.content?.version;
|
|
94
|
+
writeInfo(`Generated component version: ${version}`);
|
|
95
|
+
const files = await glob(joinPathFragments(sourceRoot, "**/*"), {
|
|
96
|
+
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
97
|
+
});
|
|
98
|
+
const projectPath = `registry/${context.projectName}`;
|
|
99
|
+
const internalDependencies = await getInternalDependencies(
|
|
100
|
+
context.projectName,
|
|
101
|
+
projectGraph
|
|
102
|
+
);
|
|
103
|
+
const dependencies = internalDependencies.filter(
|
|
104
|
+
(projectNode) => !projectNode.data.tags || projectNode.data.tags.every((tag) => tag.toLowerCase() !== "component")
|
|
105
|
+
).reduce((ret, dep) => {
|
|
106
|
+
if (!ret[dep.name]) {
|
|
107
|
+
ret[dep.name] = "latest";
|
|
108
|
+
}
|
|
109
|
+
return ret;
|
|
110
|
+
}, projectDetails.content.dependencies ?? {});
|
|
111
|
+
const release = options.tag ?? execSync("npm config get tag").toString().trim();
|
|
112
|
+
writeInfo(`Clearing out existing items in ${projectPath}`);
|
|
113
|
+
if (!isDryRun) {
|
|
114
|
+
const response = await s3Client.listObjects({
|
|
115
|
+
Bucket: options.bucketId,
|
|
116
|
+
Prefix: projectPath
|
|
117
|
+
});
|
|
118
|
+
if (response?.Contents && response.Contents.length > 0) {
|
|
119
|
+
writeDebug(
|
|
120
|
+
`Deleting the following existing items from the component registry: ${response.Contents.map((item) => item.Key).join(", ")}`
|
|
121
|
+
);
|
|
122
|
+
await Promise.all(
|
|
123
|
+
response.Contents.map(
|
|
124
|
+
(item) => s3Client.deleteObjects({
|
|
125
|
+
Bucket: options.bucketId,
|
|
126
|
+
Delete: {
|
|
127
|
+
Objects: [
|
|
128
|
+
{
|
|
129
|
+
Key: item.Key
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
Quiet: false
|
|
133
|
+
}
|
|
134
|
+
})
|
|
135
|
+
)
|
|
136
|
+
);
|
|
137
|
+
} else {
|
|
138
|
+
writeDebug(
|
|
139
|
+
`No existing items to delete in the component registry path ${projectPath}`
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
writeWarning("[Dry run]: skipping upload to the Cyclone Registry.");
|
|
144
|
+
}
|
|
145
|
+
const meta = {
|
|
146
|
+
name: context.projectName,
|
|
147
|
+
version,
|
|
148
|
+
release,
|
|
149
|
+
description: projectDetails.content.description,
|
|
150
|
+
tags: projectDetails.content.keywords,
|
|
151
|
+
dependencies,
|
|
152
|
+
devDependencies: null,
|
|
153
|
+
internalDependencies: internalDependencies.filter(
|
|
154
|
+
(projectNode) => projectNode.data.tags && projectNode.data.tags.some((tag) => tag.toLowerCase() === "component")
|
|
155
|
+
).map((dep) => dep.name)
|
|
156
|
+
};
|
|
157
|
+
if (projectDetails.type === "package.json") {
|
|
158
|
+
meta.devDependencies = projectDetails.content.devDependencies;
|
|
159
|
+
}
|
|
160
|
+
const metaJson = JSON.stringify(meta);
|
|
161
|
+
writeInfo(`Generating meta.json file:
|
|
162
|
+
${metaJson}`);
|
|
163
|
+
await r2UploadFile(
|
|
164
|
+
s3Client,
|
|
165
|
+
options.bucketId,
|
|
166
|
+
projectPath,
|
|
167
|
+
"meta.json",
|
|
168
|
+
version,
|
|
169
|
+
metaJson,
|
|
170
|
+
"application/json",
|
|
171
|
+
isDryRun
|
|
172
|
+
);
|
|
173
|
+
await Promise.all(
|
|
174
|
+
files.map((file) => {
|
|
175
|
+
const fileName = file.replaceAll("\\", "/").replace(sourceRoot.replaceAll("\\", "/"), "");
|
|
176
|
+
return readFile(file, { encoding: "utf8" }).then(
|
|
177
|
+
(fileContent) => r2UploadFile(
|
|
178
|
+
s3Client,
|
|
179
|
+
options.bucketId,
|
|
180
|
+
projectPath,
|
|
181
|
+
fileName,
|
|
182
|
+
version,
|
|
183
|
+
fileContent,
|
|
184
|
+
"text/plain",
|
|
185
|
+
isDryRun
|
|
186
|
+
)
|
|
187
|
+
);
|
|
188
|
+
})
|
|
189
|
+
);
|
|
190
|
+
writeSuccess(
|
|
191
|
+
`Successfully uploaded the ${projectName} component to the Cyclone Registry`,
|
|
192
|
+
config
|
|
193
|
+
);
|
|
194
|
+
return {
|
|
195
|
+
success: true
|
|
196
|
+
};
|
|
197
|
+
} catch (error) {
|
|
198
|
+
console.error("Failed to publish to Cloudflare Workers Registry");
|
|
199
|
+
console.error(error);
|
|
200
|
+
console.log("");
|
|
201
|
+
return {
|
|
202
|
+
success: false
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export {
|
|
208
|
+
runExecutor
|
|
209
|
+
};
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkHUZVQCWLjs = require('./chunk-HUZVQCWL.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _chunk5O2NNHGBjs = require('./chunk-5O2NNHGB.js');
|
|
16
|
+
|
|
17
|
+
// src/generators/worker/generator.ts
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
var _devkit = require('@nx/devkit');
|
|
30
|
+
var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
|
|
31
|
+
var _node = require('@nx/node');
|
|
32
|
+
var _versions = require('@nx/node/src/utils/versions');
|
|
33
|
+
var _path = require('path');
|
|
34
|
+
|
|
35
|
+
// src/generators/worker/libs/get-account-id.ts
|
|
36
|
+
function getAccountId(accountId) {
|
|
37
|
+
return `account_id = "${accountId}"`;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// src/generators/worker/libs/vitest-imports.ts
|
|
41
|
+
var vitestImports = `import { describe, expect, it, beforeAll, afterAll } from 'vitest';`;
|
|
42
|
+
|
|
43
|
+
// src/generators/worker/libs/vitest-script.ts
|
|
44
|
+
var vitestScript = `"test": "vitest run"`;
|
|
45
|
+
|
|
46
|
+
// src/generators/worker/generator.ts
|
|
47
|
+
async function applicationGenerator(tree, schema) {
|
|
48
|
+
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Storm Worker generator");
|
|
49
|
+
let config;
|
|
50
|
+
try {
|
|
51
|
+
_chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
|
|
52
|
+
|
|
53
|
+
`, config);
|
|
54
|
+
const workspaceRoot = _chunkHUZVQCWLjs.findWorkspaceRoot.call(void 0, );
|
|
55
|
+
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
56
|
+
`Loading the Storm Config from environment variables and storm.json file...
|
|
57
|
+
- workspaceRoot: ${workspaceRoot}`,
|
|
58
|
+
config
|
|
59
|
+
);
|
|
60
|
+
config = await _chunkHUZVQCWLjs.getConfig.call(void 0, workspaceRoot);
|
|
61
|
+
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
62
|
+
`Loaded Storm config into env:
|
|
63
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
64
|
+
config
|
|
65
|
+
);
|
|
66
|
+
const options = await normalizeOptions(tree, schema, config);
|
|
67
|
+
const tasks = [];
|
|
68
|
+
tasks.push(
|
|
69
|
+
await _chunk5O2NNHGBjs.generator_default.call(void 0, tree, {
|
|
70
|
+
...options,
|
|
71
|
+
skipFormat: true
|
|
72
|
+
})
|
|
73
|
+
);
|
|
74
|
+
tasks.push(
|
|
75
|
+
await _node.applicationGenerator.call(void 0, tree, {
|
|
76
|
+
...options,
|
|
77
|
+
framework: "none",
|
|
78
|
+
skipFormat: true,
|
|
79
|
+
unitTestRunner: options.unitTestRunner == "vitest" ? "none" : options.unitTestRunner,
|
|
80
|
+
e2eTestRunner: "none",
|
|
81
|
+
name: schema.name
|
|
82
|
+
})
|
|
83
|
+
);
|
|
84
|
+
if (options.unitTestRunner === "vitest") {
|
|
85
|
+
const { vitestGenerator, createOrEditViteConfig } = _devkit.ensurePackage.call(void 0,
|
|
86
|
+
"@nx/vite",
|
|
87
|
+
_versions.nxVersion
|
|
88
|
+
);
|
|
89
|
+
const vitestTask = await vitestGenerator(tree, {
|
|
90
|
+
project: options.name,
|
|
91
|
+
uiFramework: "none",
|
|
92
|
+
coverageProvider: "v8",
|
|
93
|
+
skipFormat: true,
|
|
94
|
+
testEnvironment: "node"
|
|
95
|
+
});
|
|
96
|
+
tasks.push(vitestTask);
|
|
97
|
+
createOrEditViteConfig(
|
|
98
|
+
tree,
|
|
99
|
+
{
|
|
100
|
+
project: options.name,
|
|
101
|
+
includeLib: false,
|
|
102
|
+
includeVitest: true,
|
|
103
|
+
testEnvironment: "node"
|
|
104
|
+
},
|
|
105
|
+
true
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
addCloudflareFiles(tree, options);
|
|
109
|
+
updateTsAppConfig(tree, options);
|
|
110
|
+
addTargets(tree, options);
|
|
111
|
+
if (options.unitTestRunner === "none") {
|
|
112
|
+
removeTestFiles(tree, options);
|
|
113
|
+
}
|
|
114
|
+
if (!options.skipFormat) {
|
|
115
|
+
await _devkit.formatFiles.call(void 0, tree);
|
|
116
|
+
}
|
|
117
|
+
if (options.template === "hono") {
|
|
118
|
+
tasks.push(() => {
|
|
119
|
+
const packageJsonPath = _devkit.joinPathFragments.call(void 0,
|
|
120
|
+
_nullishCoalesce(options.directory, () => ( "")),
|
|
121
|
+
"package.json"
|
|
122
|
+
);
|
|
123
|
+
if (tree.exists(packageJsonPath)) {
|
|
124
|
+
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => ({
|
|
125
|
+
...json,
|
|
126
|
+
dependencies: {
|
|
127
|
+
hono: "4.4.0",
|
|
128
|
+
..._optionalChain([json, 'optionalAccess', _ => _.dependencies])
|
|
129
|
+
}
|
|
130
|
+
}));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return _devkit.runTasksInSerial.call(void 0, ...tasks);
|
|
135
|
+
} catch (error) {
|
|
136
|
+
return () => {
|
|
137
|
+
_chunk2CDSXWFAjs.writeFatal.call(void 0,
|
|
138
|
+
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
139
|
+
config
|
|
140
|
+
);
|
|
141
|
+
_chunk2CDSXWFAjs.writeError.call(void 0,
|
|
142
|
+
`An exception was thrown in the generator's process
|
|
143
|
+
- Details: ${error.message}
|
|
144
|
+
- Stacktrace: ${error.stack}`,
|
|
145
|
+
config
|
|
146
|
+
);
|
|
147
|
+
};
|
|
148
|
+
} finally {
|
|
149
|
+
stopwatch();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function updateTsAppConfig(tree, options) {
|
|
153
|
+
_devkit.updateJson.call(void 0, tree, _path.join.call(void 0, options.appProjectRoot, "tsconfig.app.json"), (json) => {
|
|
154
|
+
json.compilerOptions = {
|
|
155
|
+
...json.compilerOptions,
|
|
156
|
+
esModuleInterop: true,
|
|
157
|
+
target: "es2021",
|
|
158
|
+
lib: ["es2021"],
|
|
159
|
+
module: "es2022",
|
|
160
|
+
moduleResolution: "node",
|
|
161
|
+
resolveJsonModule: true,
|
|
162
|
+
allowJs: true,
|
|
163
|
+
checkJs: false,
|
|
164
|
+
noEmit: true,
|
|
165
|
+
isolatedModules: true,
|
|
166
|
+
allowSyntheticDefaultImports: true,
|
|
167
|
+
forceConsistentCasingInFileNames: true,
|
|
168
|
+
strict: true,
|
|
169
|
+
skipLibCheck: true
|
|
170
|
+
};
|
|
171
|
+
json.compilerOptions.types = [
|
|
172
|
+
...json.compilerOptions.types,
|
|
173
|
+
"@cloudflare/workers-types"
|
|
174
|
+
];
|
|
175
|
+
return json;
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
function addCloudflareFiles(tree, options) {
|
|
179
|
+
tree.delete(_path.join.call(void 0, options.appProjectRoot, "src/main.ts"));
|
|
180
|
+
_devkit.generateFiles.call(void 0,
|
|
181
|
+
tree,
|
|
182
|
+
_path.join.call(void 0, __dirname, "./files/common"),
|
|
183
|
+
options.appProjectRoot,
|
|
184
|
+
{
|
|
185
|
+
...options,
|
|
186
|
+
tmpl: "",
|
|
187
|
+
name: options.name,
|
|
188
|
+
accountId: options.accountId ? getAccountId(options.accountId) : "",
|
|
189
|
+
vitestScript: options.unitTestRunner === "vitest" ? vitestScript : ""
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
if (options.template && options.template !== "none") {
|
|
193
|
+
_devkit.generateFiles.call(void 0,
|
|
194
|
+
tree,
|
|
195
|
+
_path.join.call(void 0, __dirname, `./files/${options.template}`),
|
|
196
|
+
_path.join.call(void 0, options.appProjectRoot, "src"),
|
|
197
|
+
{
|
|
198
|
+
...options,
|
|
199
|
+
tmpl: "",
|
|
200
|
+
name: options.name,
|
|
201
|
+
accountId: options.accountId ? getAccountId(options.accountId) : "",
|
|
202
|
+
vitestScript: options.unitTestRunner === "vitest" ? vitestScript : "",
|
|
203
|
+
vitestImports: options.unitTestRunner === "vitest" ? vitestImports : ""
|
|
204
|
+
}
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function addTargets(tree, options) {
|
|
209
|
+
try {
|
|
210
|
+
const projectConfiguration = _devkit.readProjectConfiguration.call(void 0, tree, options.name);
|
|
211
|
+
projectConfiguration.targets = {
|
|
212
|
+
..._nullishCoalesce(projectConfiguration.targets, () => ( {})),
|
|
213
|
+
serve: {
|
|
214
|
+
executor: "@storm-software/cloudflare-tools:serve",
|
|
215
|
+
options: {
|
|
216
|
+
port: options.port
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"nx-release-publish": {
|
|
220
|
+
executor: "@storm-software/cloudflare-tools:cloudflare-publish"
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
if (projectConfiguration.targets.build) {
|
|
224
|
+
delete projectConfiguration.targets.build;
|
|
225
|
+
}
|
|
226
|
+
_devkit.updateProjectConfiguration.call(void 0, tree, options.name, projectConfiguration);
|
|
227
|
+
} catch (e) {
|
|
228
|
+
console.error(e);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
function removeTestFiles(tree, options) {
|
|
232
|
+
tree.delete(_path.join.call(void 0, options.appProjectRoot, "src", "index.test.ts"));
|
|
233
|
+
}
|
|
234
|
+
async function normalizeOptions(host, options, config) {
|
|
235
|
+
const { projectName: appProjectName, projectRoot: appProjectRoot } = await _projectnameandrootutils.determineProjectNameAndRootOptions.call(void 0, host, {
|
|
236
|
+
name: options.name,
|
|
237
|
+
projectType: "application",
|
|
238
|
+
directory: options.directory,
|
|
239
|
+
rootProject: options.rootProject
|
|
240
|
+
});
|
|
241
|
+
options.rootProject = appProjectRoot === ".";
|
|
242
|
+
return {
|
|
243
|
+
addPlugin: process.env.NX_ADD_PLUGINS !== "false",
|
|
244
|
+
accountId: process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
|
|
245
|
+
...options,
|
|
246
|
+
name: _devkit.names.call(void 0, appProjectName).fileName,
|
|
247
|
+
frontendProject: options.frontendProject ? _devkit.names.call(void 0, options.frontendProject).fileName : void 0,
|
|
248
|
+
appProjectRoot,
|
|
249
|
+
unitTestRunner: _nullishCoalesce(options.unitTestRunner, () => ( "vitest")),
|
|
250
|
+
rootProject: _nullishCoalesce(options.rootProject, () => ( false)),
|
|
251
|
+
template: _nullishCoalesce(options.template, () => ( "fetch-handler")),
|
|
252
|
+
port: _nullishCoalesce(options.port, () => ( 3e3))
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
var generator_default2 = applicationGenerator;
|
|
256
|
+
var applicationSchematic = _devkit.convertNxGenerator.call(void 0, applicationGenerator);
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
exports.applicationGenerator = applicationGenerator; exports.generator_default = generator_default2; exports.applicationSchematic = applicationSchematic;
|
package/dist/executors.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO66D74Z.js');
|
|
2
2
|
require('./chunk-IRORGRVZ.js');
|
|
3
|
+
require('./chunk-UYJSXWZ3.js');
|
|
3
4
|
require('./chunk-LRGILLMQ.js');
|
|
4
|
-
require('./chunk-PUBL4ZFL.js');
|
|
5
|
-
require('./chunk-NCQM44P3.js');
|
|
6
5
|
require('./chunk-NU34IEWN.js');
|
|
6
|
+
require('./chunk-NCQM44P3.js');
|
|
7
7
|
require('./chunk-HUZVQCWL.js');
|
|
8
8
|
require('./chunk-2CDSXWFA.js');
|
|
9
9
|
require('./chunk-MCKGQKYU.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
2
|
import "./chunk-I66YQUR5.mjs";
|
|
3
|
+
import "./chunk-XPGRDGQT.mjs";
|
|
3
4
|
import "./chunk-KMLK2F6Z.mjs";
|
|
4
|
-
import "./chunk-FXMVUKUI.mjs";
|
|
5
|
-
import "./chunk-IANDAPQS.mjs";
|
|
6
5
|
import "./chunk-PH3DHY4Q.mjs";
|
|
6
|
+
import "./chunk-IANDAPQS.mjs";
|
|
7
7
|
import "./chunk-HHVUEOQK.mjs";
|
|
8
8
|
import "./chunk-V44DYGWX.mjs";
|
|
9
9
|
import "./chunk-ZFX6WEQ7.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYTZF32C6js = require('./chunk-YTZF32C6.js');
|
|
6
|
+
require('./chunk-HUZVQCWL.js');
|
|
7
|
+
require('./chunk-2CDSXWFA.js');
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-HUZVQCWL.js');
|
|
11
|
-
require('./chunk-2CDSXWFA.js');
|
|
11
|
+
var _chunk5O2NNHGBjs = require('./chunk-5O2NNHGB.js');
|
|
12
12
|
require('./chunk-MCKGQKYU.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.applicationGenerator =
|
|
18
|
+
exports.applicationGenerator = _chunkYTZF32C6js.applicationGenerator; exports.applicationSchematic = _chunkYTZF32C6js.applicationSchematic; exports.initGenerator = _chunk5O2NNHGBjs.initGenerator; exports.initSchematic = _chunk5O2NNHGBjs.initSchematic;
|
package/dist/generators.mjs
CHANGED
|
@@ -2,13 +2,13 @@ import "./chunk-3J7KBHMJ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
applicationGenerator,
|
|
4
4
|
applicationSchematic
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XEYH42ZU.mjs";
|
|
6
|
+
import "./chunk-HHVUEOQK.mjs";
|
|
7
|
+
import "./chunk-V44DYGWX.mjs";
|
|
6
8
|
import {
|
|
7
9
|
initGenerator,
|
|
8
10
|
initSchematic
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-HHVUEOQK.mjs";
|
|
11
|
-
import "./chunk-V44DYGWX.mjs";
|
|
11
|
+
} from "./chunk-MN5E7SMN.mjs";
|
|
12
12
|
import "./chunk-ZFX6WEQ7.mjs";
|
|
13
13
|
export {
|
|
14
14
|
applicationGenerator,
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-XO66D74Z.js');
|
|
2
|
-
require('./chunk-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkVORADDEWjs = require('./chunk-VORADDEW.js');
|
|
2
|
+
require('./chunk-IRORGRVZ.js');
|
|
3
|
+
require('./chunk-UYJSXWZ3.js');
|
|
4
|
+
require('./chunk-LRGILLMQ.js');
|
|
7
5
|
|
|
8
6
|
|
|
9
7
|
|
|
10
|
-
var
|
|
8
|
+
var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
|
|
9
|
+
require('./chunk-DHBG5ASJ.js');
|
|
11
10
|
require('./chunk-CVGPWUNP.js');
|
|
12
|
-
require('./chunk-IRORGRVZ.js');
|
|
13
|
-
require('./chunk-LRGILLMQ.js');
|
|
14
|
-
require('./chunk-PUBL4ZFL.js');
|
|
15
11
|
|
|
16
12
|
|
|
17
13
|
|
|
@@ -19,9 +15,13 @@ var _chunkNCQM44P3js = require('./chunk-NCQM44P3.js');
|
|
|
19
15
|
|
|
20
16
|
|
|
21
17
|
|
|
22
|
-
var
|
|
18
|
+
var _chunkYTZF32C6js = require('./chunk-YTZF32C6.js');
|
|
23
19
|
require('./chunk-HUZVQCWL.js');
|
|
24
20
|
require('./chunk-2CDSXWFA.js');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
var _chunk5O2NNHGBjs = require('./chunk-5O2NNHGB.js');
|
|
25
25
|
require('./chunk-MCKGQKYU.js');
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
@@ -163,4 +163,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
|
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
exports.applicationGenerator =
|
|
166
|
+
exports.applicationGenerator = _chunkYTZF32C6js.applicationGenerator; exports.applicationSchematic = _chunkYTZF32C6js.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkNCQM44P3js.getInternalDependencies; exports.initGenerator = _chunk5O2NNHGBjs.initGenerator; exports.initSchematic = _chunk5O2NNHGBjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkNCQM44P3js.r2UploadFile;
|
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "./chunk-YSCEY447.mjs";
|
|
2
|
-
import "./chunk-3J7KBHMJ.mjs";
|
|
3
|
-
import {
|
|
4
|
-
applicationGenerator,
|
|
5
|
-
applicationSchematic
|
|
6
|
-
} from "./chunk-ODZQBRJI.mjs";
|
|
7
|
-
import {
|
|
8
|
-
initGenerator,
|
|
9
|
-
initSchematic
|
|
10
|
-
} from "./chunk-7NLYFDQJ.mjs";
|
|
11
|
-
import "./chunk-7Z5PILRU.mjs";
|
|
12
2
|
import "./chunk-I66YQUR5.mjs";
|
|
3
|
+
import "./chunk-XPGRDGQT.mjs";
|
|
13
4
|
import "./chunk-KMLK2F6Z.mjs";
|
|
14
|
-
import
|
|
5
|
+
import {
|
|
6
|
+
ProjectTagConstants,
|
|
7
|
+
addProjectTag
|
|
8
|
+
} from "./chunk-PH3DHY4Q.mjs";
|
|
9
|
+
import "./chunk-3J7KBHMJ.mjs";
|
|
10
|
+
import "./chunk-7Z5PILRU.mjs";
|
|
15
11
|
import {
|
|
16
12
|
getInternalDependencies,
|
|
17
13
|
r2UploadFile
|
|
18
14
|
} from "./chunk-IANDAPQS.mjs";
|
|
19
15
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./chunk-
|
|
16
|
+
applicationGenerator,
|
|
17
|
+
applicationSchematic
|
|
18
|
+
} from "./chunk-XEYH42ZU.mjs";
|
|
23
19
|
import "./chunk-HHVUEOQK.mjs";
|
|
24
20
|
import "./chunk-V44DYGWX.mjs";
|
|
21
|
+
import {
|
|
22
|
+
initGenerator,
|
|
23
|
+
initSchematic
|
|
24
|
+
} from "./chunk-MN5E7SMN.mjs";
|
|
25
25
|
import "./chunk-ZFX6WEQ7.mjs";
|
|
26
26
|
|
|
27
27
|
// src/plugins/index.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-NCQM44P3.js');
|
|
3
|
+
var _chunkUYJSXWZ3js = require('../../../chunk-UYJSXWZ3.js');
|
|
5
4
|
require('../../../chunk-NU34IEWN.js');
|
|
5
|
+
require('../../../chunk-NCQM44P3.js');
|
|
6
6
|
require('../../../chunk-HUZVQCWL.js');
|
|
7
7
|
require('../../../chunk-2CDSXWFA.js');
|
|
8
8
|
require('../../../chunk-MCKGQKYU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkUYJSXWZ3js.runExecutor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runExecutor
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-IANDAPQS.mjs";
|
|
3
|
+
} from "../../../chunk-XPGRDGQT.mjs";
|
|
5
4
|
import "../../../chunk-PH3DHY4Q.mjs";
|
|
5
|
+
import "../../../chunk-IANDAPQS.mjs";
|
|
6
6
|
import "../../../chunk-HHVUEOQK.mjs";
|
|
7
7
|
import "../../../chunk-V44DYGWX.mjs";
|
|
8
8
|
import "../../../chunk-ZFX6WEQ7.mjs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk5O2NNHGBjs = require('../../../chunk-5O2NNHGB.js');
|
|
6
6
|
require('../../../chunk-MCKGQKYU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunk5O2NNHGBjs.generator_default; exports.initGenerator = _chunk5O2NNHGBjs.initGenerator; exports.initSchematic = _chunk5O2NNHGBjs.initSchematic;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../../../chunk-5TU77X7L.js');
|
|
5
|
+
var _chunkYTZF32C6js = require('../../../chunk-YTZF32C6.js');
|
|
7
6
|
require('../../../chunk-HUZVQCWL.js');
|
|
8
7
|
require('../../../chunk-2CDSXWFA.js');
|
|
8
|
+
require('../../../chunk-5O2NNHGB.js');
|
|
9
9
|
require('../../../chunk-MCKGQKYU.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applicationGenerator =
|
|
14
|
+
exports.applicationGenerator = _chunkYTZF32C6js.applicationGenerator; exports.applicationSchematic = _chunkYTZF32C6js.applicationSchematic; exports.default = _chunkYTZF32C6js.generator_default;
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
applicationGenerator,
|
|
3
3
|
applicationSchematic,
|
|
4
4
|
generator_default
|
|
5
|
-
} from "../../../chunk-
|
|
6
|
-
import "../../../chunk-7NLYFDQJ.mjs";
|
|
5
|
+
} from "../../../chunk-XEYH42ZU.mjs";
|
|
7
6
|
import "../../../chunk-HHVUEOQK.mjs";
|
|
8
7
|
import "../../../chunk-V44DYGWX.mjs";
|
|
8
|
+
import "../../../chunk-MN5E7SMN.mjs";
|
|
9
9
|
import "../../../chunk-ZFX6WEQ7.mjs";
|
|
10
10
|
export {
|
|
11
11
|
applicationGenerator,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.65.
|
|
3
|
+
"version": "0.65.13",
|
|
4
4
|
"description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "github",
|
|
@@ -145,10 +145,10 @@
|
|
|
145
145
|
"nx": "^21.4.1",
|
|
146
146
|
"tsup": "8.4.0",
|
|
147
147
|
"untyped": "^1.5.2",
|
|
148
|
-
"wrangler": "^4.33.
|
|
148
|
+
"wrangler": "^4.33.1"
|
|
149
149
|
},
|
|
150
150
|
"publishConfig": { "access": "public" },
|
|
151
151
|
"executors": "./executors.json",
|
|
152
152
|
"generators": "./generators.json",
|
|
153
|
-
"gitHead": "
|
|
153
|
+
"gitHead": "99ce6b979dc4fb39d2c34edbebfb26b20dc3ba9d"
|
|
154
154
|
}
|