@storm-software/cloudflare-tools 0.6.0 → 0.6.2
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 +16 -0
- package/README.md +9 -5
- package/index.js +6300 -4785
- package/meta.json +1 -1
- package/package.json +19 -19
- package/packages/config/src/define-config.d.ts +6 -0
- package/packages/config/src/schema.d.ts +45 -0
- package/packages/workspace-tools/src/executors/cargo-publish/executor.d.ts +1 -1
- package/packages/workspace-tools/src/utils/cargo.d.ts +1 -0
- package/src/executors/cloudflare-publish/executor.js +3426 -4729
- package/src/executors/serve/executor.js +3428 -4731
- package/src/generators/init/generator.js +101 -101
- package/src/generators/worker/generator.js +6739 -5253
package/package.json
CHANGED
|
@@ -1,34 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.6.2",
|
|
4
|
+
"type": "commonjs",
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"storm",
|
|
8
|
-
"storm-ops",
|
|
9
|
-
"stormstack",
|
|
10
|
-
"storm-stack",
|
|
11
|
-
"sullivanpj",
|
|
12
|
-
"open-system",
|
|
13
|
-
"monorepo"
|
|
14
|
-
],
|
|
15
|
-
"homepage": "https://stormsoftware.com",
|
|
16
|
-
"bugs": {
|
|
17
|
-
"url": "https://github.com/storm-software/storm-ops/issues",
|
|
18
|
-
"email": "support@stormsoftware.com"
|
|
19
|
-
},
|
|
20
6
|
"repository": {
|
|
21
7
|
"type": "github",
|
|
22
8
|
"url": "https://github.com/storm-software/storm-ops",
|
|
23
9
|
"directory": "packages/cloudflare-tools"
|
|
24
10
|
},
|
|
25
|
-
"
|
|
11
|
+
"homepage": "https://stormsoftware.com",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/storm-software/storm-ops/issues",
|
|
14
|
+
"email": "support@stormsoftware.com"
|
|
15
|
+
},
|
|
26
16
|
"author": {
|
|
27
17
|
"name": "Storm Software",
|
|
28
18
|
"email": "contact@stormsoftware.com",
|
|
29
19
|
"url": "https://stormsoftware.com"
|
|
30
20
|
},
|
|
31
|
-
"
|
|
21
|
+
"license": "Apache 2.0",
|
|
22
|
+
"private": false,
|
|
23
|
+
"main": "./index.js",
|
|
32
24
|
"exports": {
|
|
33
25
|
".": "./index.js",
|
|
34
26
|
"./package.json": "./package.json",
|
|
@@ -38,8 +30,16 @@
|
|
|
38
30
|
"./executors/*/schema.json": "./src/executors/*/schema.json",
|
|
39
31
|
"./plugin": "./src/plugin/index.js"
|
|
40
32
|
},
|
|
41
|
-
"main": "./index.js",
|
|
42
33
|
"typings": "./declarations.d.ts",
|
|
34
|
+
"keywords": [
|
|
35
|
+
"storm",
|
|
36
|
+
"storm-ops",
|
|
37
|
+
"stormstack",
|
|
38
|
+
"storm-stack",
|
|
39
|
+
"sullivanpj",
|
|
40
|
+
"open-system",
|
|
41
|
+
"monorepo"
|
|
42
|
+
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@nx/devkit": "^19.1.0",
|
|
45
45
|
"@nx/node": "^19.1.0",
|
|
@@ -6,6 +6,12 @@ import type { StormConfigInput } from "./types";
|
|
|
6
6
|
* @returns The config values for the current Storm workspace
|
|
7
7
|
*/
|
|
8
8
|
export declare const defineConfig: (input: StormConfigInput) => {
|
|
9
|
+
registry: {
|
|
10
|
+
github?: string | undefined;
|
|
11
|
+
npm?: string | undefined;
|
|
12
|
+
cargo?: string | undefined;
|
|
13
|
+
cyclone?: string | undefined;
|
|
14
|
+
};
|
|
9
15
|
colors: {
|
|
10
16
|
dark: {
|
|
11
17
|
foreground?: string | undefined;
|
|
@@ -221,6 +221,23 @@ export declare const SingleThemeColorConfigSchema: z.ZodObject<{
|
|
|
221
221
|
dark?: string | undefined;
|
|
222
222
|
light?: string | undefined;
|
|
223
223
|
}>;
|
|
224
|
+
export declare const RegistryUrlConfigSchema: z.ZodOptional<z.ZodString>;
|
|
225
|
+
export declare const RegistryConfigSchema: z.ZodObject<{
|
|
226
|
+
github: z.ZodOptional<z.ZodString>;
|
|
227
|
+
npm: z.ZodOptional<z.ZodString>;
|
|
228
|
+
cargo: z.ZodOptional<z.ZodString>;
|
|
229
|
+
cyclone: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
github?: string | undefined;
|
|
232
|
+
npm?: string | undefined;
|
|
233
|
+
cargo?: string | undefined;
|
|
234
|
+
cyclone?: string | undefined;
|
|
235
|
+
}, {
|
|
236
|
+
github?: string | undefined;
|
|
237
|
+
npm?: string | undefined;
|
|
238
|
+
cargo?: string | undefined;
|
|
239
|
+
cyclone?: string | undefined;
|
|
240
|
+
}>;
|
|
224
241
|
/**
|
|
225
242
|
* Storm theme color config values used for styling various workspace elements
|
|
226
243
|
*/
|
|
@@ -790,6 +807,22 @@ export declare const StormConfigSchema: z.ZodObject<{
|
|
|
790
807
|
locale: z.ZodDefault<z.ZodString>;
|
|
791
808
|
logLevel: z.ZodDefault<z.ZodEnum<["silent", "fatal", "error", "warn", "info", "debug", "trace", "all"]>>;
|
|
792
809
|
cloudflareAccountId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
810
|
+
registry: z.ZodObject<{
|
|
811
|
+
github: z.ZodOptional<z.ZodString>;
|
|
812
|
+
npm: z.ZodOptional<z.ZodString>;
|
|
813
|
+
cargo: z.ZodOptional<z.ZodString>;
|
|
814
|
+
cyclone: z.ZodOptional<z.ZodString>;
|
|
815
|
+
}, "strip", z.ZodTypeAny, {
|
|
816
|
+
github?: string | undefined;
|
|
817
|
+
npm?: string | undefined;
|
|
818
|
+
cargo?: string | undefined;
|
|
819
|
+
cyclone?: string | undefined;
|
|
820
|
+
}, {
|
|
821
|
+
github?: string | undefined;
|
|
822
|
+
npm?: string | undefined;
|
|
823
|
+
cargo?: string | undefined;
|
|
824
|
+
cyclone?: string | undefined;
|
|
825
|
+
}>;
|
|
793
826
|
configFile: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
794
827
|
colors: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
795
828
|
dark: z.ZodDefault<z.ZodString>;
|
|
@@ -1347,6 +1380,12 @@ export declare const StormConfigSchema: z.ZodObject<{
|
|
|
1347
1380
|
locale: string;
|
|
1348
1381
|
logLevel: "info" | "error" | "fatal" | "silent" | "warn" | "debug" | "trace" | "all";
|
|
1349
1382
|
cloudflareAccountId: string | null;
|
|
1383
|
+
registry: {
|
|
1384
|
+
github?: string | undefined;
|
|
1385
|
+
npm?: string | undefined;
|
|
1386
|
+
cargo?: string | undefined;
|
|
1387
|
+
cyclone?: string | undefined;
|
|
1388
|
+
};
|
|
1350
1389
|
configFile: string | null;
|
|
1351
1390
|
colors: {
|
|
1352
1391
|
dark: {
|
|
@@ -1468,6 +1507,12 @@ export declare const StormConfigSchema: z.ZodObject<{
|
|
|
1468
1507
|
workspaceRoot?: string | undefined;
|
|
1469
1508
|
packageDirectory?: string | undefined;
|
|
1470
1509
|
}, {
|
|
1510
|
+
registry: {
|
|
1511
|
+
github?: string | undefined;
|
|
1512
|
+
npm?: string | undefined;
|
|
1513
|
+
cargo?: string | undefined;
|
|
1514
|
+
cyclone?: string | undefined;
|
|
1515
|
+
};
|
|
1471
1516
|
colors: {
|
|
1472
1517
|
dark: {
|
|
1473
1518
|
foreground?: string | undefined;
|
|
@@ -3,4 +3,4 @@ import type { CargoPublishExecutorSchema } from "./schema.d";
|
|
|
3
3
|
export default function runExecutor(options: CargoPublishExecutorSchema, context: ExecutorContext): Promise<{
|
|
4
4
|
success: boolean;
|
|
5
5
|
}>;
|
|
6
|
-
export declare const getRegistryVersion: (name: string, version: string) => Promise<string>;
|
|
6
|
+
export declare const getRegistryVersion: (name: string, version: string, registry: string) => Promise<string>;
|