@storm-software/cloudflare-tools 0.17.1 → 0.18.0
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 +9 -0
- package/index.js +8889 -12129
- package/meta.json +1 -1
- package/package.json +10 -7
- package/packages/build-tools/src/config/get-rolldown-config.d.ts +1 -1
- package/packages/build-tools/src/config/get-unbuild-config.d.ts +4 -4
- package/packages/build-tools/src/types.d.ts +4 -2
- package/packages/build-tools/src/utils/generate-package-json.d.ts +3 -0
- package/packages/cloudflare-tools/src/executors/serve/executor.d.ts +3 -3
- package/packages/config/src/define-config.d.ts +18 -0
- package/packages/config/src/schema.d.ts +254 -0
- package/packages/config-tools/src/config-file/get-config-file.d.ts +1 -1
- package/packages/config-tools/src/create-storm-config.d.ts +1 -1
- package/packages/config-tools/src/utilities/get-default-config.d.ts +1 -1
- package/packages/config-tools/src/utilities/logger.d.ts +1 -1
- package/packages/workspace-tools/index.d.ts +13 -11
- package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +1 -1
- package/packages/workspace-tools/src/executors/size-limit/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +2 -2
- package/src/executors/cloudflare-publish/executor.js +6649 -5255
- package/src/executors/serve/executor.js +6651 -5283
- package/src/generators/init/generator.js +96 -94
- package/src/generators/worker/generator.js +655 -4291
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/cloudflare-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
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
6
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"email": "contact@stormsoftware.com",
|
|
19
19
|
"url": "https://stormsoftware.com"
|
|
20
20
|
},
|
|
21
|
-
"license": "Apache
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
22
|
"private": false,
|
|
23
23
|
"main": "./index.js",
|
|
24
24
|
"exports": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"monorepo"
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@nx/devkit": ">=19.
|
|
45
|
-
"@nx/node": ">=19.
|
|
46
|
-
"@nx/web": ">=19.
|
|
47
|
-
"@nx/webpack": ">=19.
|
|
48
|
-
"nx": ">=19.
|
|
44
|
+
"@nx/devkit": ">=19.5.0",
|
|
45
|
+
"@nx/node": ">=19.5.0",
|
|
46
|
+
"@nx/web": ">=19.5.0",
|
|
47
|
+
"@nx/webpack": ">=19.5.0",
|
|
48
|
+
"nx": ">=19.5.0",
|
|
49
49
|
"wrangler": ">=3.58.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
"c12": "1.10.0",
|
|
73
73
|
"jest-resolve": "29.7.0"
|
|
74
74
|
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@nx/devkit": "^19.5.0"
|
|
77
|
+
},
|
|
75
78
|
"publishConfig": {
|
|
76
79
|
"access": "public"
|
|
77
80
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RolldownBuildOptions, RolldownOptions } from "../types";
|
|
2
2
|
import { type DependentBuildableProjectNode } from "@nx/js/src/utils/buildable-libs-utils.js";
|
|
3
|
-
import type { PackageJson } from "nx/src/utils/package-json.js";
|
|
4
3
|
import type { StormConfig } from "@storm-software/config";
|
|
4
|
+
import type { PackageJson } from "nx/src/utils/package-json.js";
|
|
5
5
|
export declare const DEFAULT_CONFIG: RolldownBuildOptions;
|
|
6
6
|
export declare function getRolldownBuildOptions(config: StormConfig, options: RolldownOptions, dependencies: DependentBuildableProjectNode[], packageJson: PackageJson, npmDeps: string[]): Promise<RolldownBuildOptions[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type DependentBuildableProjectNode } from "@nx/js/src/utils/buildable-libs-utils.js";
|
|
3
|
-
import type { PackageJson } from "nx/src/utils/package-json.js";
|
|
1
|
+
import { ProjectGraph } from "@nx/devkit";
|
|
4
2
|
import type { StormConfig } from "@storm-software/config";
|
|
3
|
+
import type { PackageJson } from "nx/src/utils/package-json.js";
|
|
5
4
|
import { type BuildConfig } from "unbuild";
|
|
6
|
-
|
|
5
|
+
import type { UnbuildBuildOptions } from "../types";
|
|
6
|
+
export declare function getUnbuildBuildOptions(config: StormConfig, options: UnbuildBuildOptions, packageJson: PackageJson, projectGraph: ProjectGraph): Promise<BuildConfig[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Options } from "tsup";
|
|
2
1
|
import type Rolldown from "rolldown";
|
|
3
|
-
import type { Program, Diagnostic, TransformerFactory, SourceFile, ParsedCommandLine } from "typescript";
|
|
4
2
|
import type { Plugin } from "rolldown";
|
|
3
|
+
import type { Options } from "tsup";
|
|
4
|
+
import type { Diagnostic, ParsedCommandLine, Program, SourceFile, TransformerFactory } from "typescript";
|
|
5
5
|
import type { BuildOptions as UnbuildOptions, RollupBuildOptions as UnbuildRollupBuildOptions } from "unbuild";
|
|
6
6
|
export interface TsupContext {
|
|
7
7
|
projectRoot: string;
|
|
@@ -196,7 +196,9 @@ export type UnbuildBuildOptions = AdditionalCLIOptions & Omit<UnbuildOptions, "n
|
|
|
196
196
|
watch: boolean;
|
|
197
197
|
verbose: boolean;
|
|
198
198
|
minify: boolean;
|
|
199
|
+
tsLibs: string[];
|
|
199
200
|
includeSrc: boolean;
|
|
201
|
+
generatePackageJson: boolean;
|
|
200
202
|
tsConfig: string;
|
|
201
203
|
outputPath: string;
|
|
202
204
|
entry?: string;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { ProjectConfiguration, ProjectGraph } from "@nx/devkit";
|
|
1
2
|
import type { StormConfig } from "@storm-software/config";
|
|
2
3
|
import type { TypeScriptBuildOptions } from "../../declarations";
|
|
3
4
|
export declare const generatePackageJson: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, options: TypeScriptBuildOptions) => Promise<Record<string, any>>;
|
|
5
|
+
export declare const formatPackageJson: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, options: Pick<TypeScriptBuildOptions, "tsConfig" | "external" | "generatePackageJson" | "bundle" | "includeSrc">, packageJson: Record<string, any>, projectGraph: ProjectGraph, projectsConfigurations: Record<string, ProjectConfiguration>) => Promise<Record<string, any>>;
|
|
6
|
+
export declare const addWorkspacePackageJsonFields: (config: StormConfig, projectRoot: string, sourceRoot: string, projectName: string, includeSrc: boolean | undefined, packageJson: Record<string, any>) => Record<string, any>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ExecutorContext } from "@nx/devkit";
|
|
2
|
-
import { ServeExecutorSchema } from "./schema";
|
|
1
|
+
import type { ExecutorContext, PromiseExecutor } from "@nx/devkit";
|
|
3
2
|
import type { StormConfig } from "@storm-software/config";
|
|
3
|
+
import { ServeExecutorSchema } from "./schema";
|
|
4
4
|
export declare function serveExecutor(options: ServeExecutorSchema, context: ExecutorContext, config?: StormConfig): AsyncGenerator<{
|
|
5
5
|
success: boolean;
|
|
6
6
|
baseUrl: string;
|
|
7
7
|
}, {
|
|
8
8
|
success: boolean;
|
|
9
9
|
}, undefined>;
|
|
10
|
-
declare const _default:
|
|
10
|
+
declare const _default: PromiseExecutor<ServeExecutorSchema>;
|
|
11
11
|
export default _default;
|
|
@@ -11,6 +11,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
11
11
|
foreground?: string | undefined;
|
|
12
12
|
background?: string | undefined;
|
|
13
13
|
brand?: string | undefined;
|
|
14
|
+
brand2?: string | undefined;
|
|
15
|
+
brand3?: string | undefined;
|
|
14
16
|
accent?: string | undefined;
|
|
15
17
|
help?: string | undefined;
|
|
16
18
|
success?: string | undefined;
|
|
@@ -23,6 +25,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
23
25
|
foreground?: string | undefined;
|
|
24
26
|
background?: string | undefined;
|
|
25
27
|
brand?: string | undefined;
|
|
28
|
+
brand2?: string | undefined;
|
|
29
|
+
brand3?: string | undefined;
|
|
26
30
|
accent?: string | undefined;
|
|
27
31
|
help?: string | undefined;
|
|
28
32
|
success?: string | undefined;
|
|
@@ -33,6 +37,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
33
37
|
};
|
|
34
38
|
} | {
|
|
35
39
|
brand?: string | undefined;
|
|
40
|
+
brand2?: string | undefined;
|
|
41
|
+
brand3?: string | undefined;
|
|
36
42
|
accent?: string | undefined;
|
|
37
43
|
help?: string | undefined;
|
|
38
44
|
success?: string | undefined;
|
|
@@ -48,6 +54,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
48
54
|
foreground?: string | undefined;
|
|
49
55
|
background?: string | undefined;
|
|
50
56
|
brand?: string | undefined;
|
|
57
|
+
brand2?: string | undefined;
|
|
58
|
+
brand3?: string | undefined;
|
|
51
59
|
accent?: string | undefined;
|
|
52
60
|
help?: string | undefined;
|
|
53
61
|
success?: string | undefined;
|
|
@@ -60,6 +68,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
60
68
|
foreground?: string | undefined;
|
|
61
69
|
background?: string | undefined;
|
|
62
70
|
brand?: string | undefined;
|
|
71
|
+
brand2?: string | undefined;
|
|
72
|
+
brand3?: string | undefined;
|
|
63
73
|
accent?: string | undefined;
|
|
64
74
|
help?: string | undefined;
|
|
65
75
|
success?: string | undefined;
|
|
@@ -70,6 +80,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
70
80
|
};
|
|
71
81
|
} | {
|
|
72
82
|
brand?: string | undefined;
|
|
83
|
+
brand2?: string | undefined;
|
|
84
|
+
brand3?: string | undefined;
|
|
73
85
|
accent?: string | undefined;
|
|
74
86
|
help?: string | undefined;
|
|
75
87
|
success?: string | undefined;
|
|
@@ -85,6 +97,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
85
97
|
foreground?: string | undefined;
|
|
86
98
|
background?: string | undefined;
|
|
87
99
|
brand?: string | undefined;
|
|
100
|
+
brand2?: string | undefined;
|
|
101
|
+
brand3?: string | undefined;
|
|
88
102
|
accent?: string | undefined;
|
|
89
103
|
help?: string | undefined;
|
|
90
104
|
success?: string | undefined;
|
|
@@ -97,6 +111,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
97
111
|
foreground?: string | undefined;
|
|
98
112
|
background?: string | undefined;
|
|
99
113
|
brand?: string | undefined;
|
|
114
|
+
brand2?: string | undefined;
|
|
115
|
+
brand3?: string | undefined;
|
|
100
116
|
accent?: string | undefined;
|
|
101
117
|
help?: string | undefined;
|
|
102
118
|
success?: string | undefined;
|
|
@@ -107,6 +123,8 @@ export declare const defineConfig: (input: StormConfigInput) => {
|
|
|
107
123
|
};
|
|
108
124
|
} | {
|
|
109
125
|
brand?: string | undefined;
|
|
126
|
+
brand2?: string | undefined;
|
|
127
|
+
brand3?: string | undefined;
|
|
110
128
|
accent?: string | undefined;
|
|
111
129
|
help?: string | undefined;
|
|
112
130
|
success?: string | undefined;
|