@storm-software/terraform-tools 0.1.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 +12 -0
- package/LICENSE +201 -0
- package/README.md +431 -0
- package/executors.json +46 -0
- package/generators.json +14 -0
- package/index.js +4901 -0
- package/meta.json +1 -0
- package/package.json +69 -0
- package/packages/build-tools/src/build/index.d.ts +3 -0
- package/packages/build-tools/src/build/rolldown.d.ts +20 -0
- package/packages/build-tools/src/build/ts-build.d.ts +20 -0
- package/packages/build-tools/src/build/unbuild.d.ts +20 -0
- package/packages/build-tools/src/cli/index.d.ts +2 -0
- package/packages/build-tools/src/config/browser-config.d.ts +2 -0
- package/packages/build-tools/src/config/default-config.d.ts +2 -0
- package/packages/build-tools/src/config/get-config.d.ts +2 -0
- package/packages/build-tools/src/config/get-rolldown-config.d.ts +6 -0
- package/packages/build-tools/src/config/get-unbuild-config.d.ts +6 -0
- package/packages/build-tools/src/config/index.d.ts +7 -0
- package/packages/build-tools/src/config/neutral-config.d.ts +2 -0
- package/packages/build-tools/src/config/node-config.d.ts +3 -0
- package/packages/build-tools/src/index.d.ts +6 -0
- package/packages/build-tools/src/plugins/analyze-plugin.d.ts +4 -0
- package/packages/build-tools/src/plugins/index.d.ts +3 -0
- package/packages/build-tools/src/plugins/swc-plugin.d.ts +2 -0
- package/packages/build-tools/src/plugins/type-definitions.d.ts +7 -0
- package/packages/build-tools/src/types.d.ts +213 -0
- package/packages/build-tools/src/utils/apply-default-options.d.ts +6 -0
- package/packages/build-tools/src/utils/generate-package-json.d.ts +7 -0
- package/packages/build-tools/src/utils/get-entry-points.d.ts +3 -0
- package/packages/build-tools/src/utils/get-file-banner.d.ts +8 -0
- package/packages/build-tools/src/utils/get-project-deps.d.ts +5 -0
- package/packages/build-tools/src/utils/index.d.ts +7 -0
- package/packages/build-tools/src/utils/out-extension.d.ts +6 -0
- package/packages/build-tools/src/utils/run-tsup-build.d.ts +3 -0
- package/packages/build-tools/src/utils/task-graph.d.ts +6 -0
- package/packages/config/src/define-config.d.ts +172 -0
- package/packages/config/src/index.d.ts +11 -0
- package/packages/config/src/schema.d.ts +1909 -0
- package/packages/config/src/types.d.ts +23 -0
- package/packages/config-tools/src/config-file/get-config-file.d.ts +16 -0
- package/packages/config-tools/src/config-file/index.d.ts +1 -0
- package/packages/config-tools/src/create-storm-config.d.ts +26 -0
- package/packages/config-tools/src/env/get-env.d.ts +15 -0
- package/packages/config-tools/src/env/index.d.ts +2 -0
- package/packages/config-tools/src/env/set-env.d.ts +14 -0
- package/packages/config-tools/src/index.d.ts +13 -0
- package/packages/config-tools/src/types.d.ts +33 -0
- package/packages/config-tools/src/utilities/apply-workspace-tokens.d.ts +4 -0
- package/packages/config-tools/src/utilities/chalk.d.ts +23 -0
- package/packages/config-tools/src/utilities/correct-paths.d.ts +1 -0
- package/packages/config-tools/src/utilities/file-path-utils.d.ts +2 -0
- package/packages/config-tools/src/utilities/find-up.d.ts +4 -0
- package/packages/config-tools/src/utilities/find-workspace-root.d.ts +14 -0
- package/packages/config-tools/src/utilities/get-default-config.d.ts +15 -0
- package/packages/config-tools/src/utilities/get-log-level.d.ts +15 -0
- package/packages/config-tools/src/utilities/index.d.ts +10 -0
- package/packages/config-tools/src/utilities/logger.d.ts +74 -0
- package/packages/config-tools/src/utilities/process-handler.d.ts +4 -0
- package/packages/config-tools/src/utilities/run.d.ts +18 -0
- package/packages/terraform-tools/index.d.ts +1 -0
- package/packages/terraform-tools/src/base/base-executor.d.ts +24 -0
- package/packages/terraform-tools/src/base/index.d.ts +1 -0
- package/packages/terraform-tools/src/executors/apply/executor.d.ts +4 -0
- package/packages/terraform-tools/src/executors/destroy/executor.d.ts +4 -0
- package/packages/terraform-tools/src/executors/index.d.ts +4 -0
- package/packages/terraform-tools/src/executors/output/executor.d.ts +5 -0
- package/packages/terraform-tools/src/executors/plan/executor.d.ts +4 -0
- package/packages/terraform-tools/src/generators/index.d.ts +1 -0
- package/packages/terraform-tools/src/generators/init/init.d.ts +4 -0
- package/packages/terraform-tools/src/index.d.ts +3 -0
- package/packages/workspace-tools/index.d.ts +32 -0
- package/packages/workspace-tools/src/base/base-executor.d.ts +7 -0
- package/packages/workspace-tools/src/base/base-generator.d.ts +4 -0
- package/packages/workspace-tools/src/base/index.d.ts +3 -0
- package/packages/workspace-tools/src/base/typescript-library-generator.d.ts +8 -0
- package/packages/workspace-tools/src/executors/cargo-publish/executor.d.ts +6 -0
- package/packages/workspace-tools/src/executors/clean-package/constants.d.ts +4 -0
- package/packages/workspace-tools/src/executors/clean-package/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/clean-package/types.d.ts +8 -0
- package/packages/workspace-tools/src/executors/clean-package/utils.d.ts +4 -0
- package/packages/workspace-tools/src/executors/npm-publish/executor.d.ts +6 -0
- package/packages/workspace-tools/src/executors/rolldown/executor.d.ts +9 -0
- package/packages/workspace-tools/src/executors/size-limit/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup-browser/executor.d.ts +7 -0
- package/packages/workspace-tools/src/executors/tsup-neutral/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/tsup-node/executor.d.ts +7 -0
- package/packages/workspace-tools/src/executors/typia/executor.d.ts +8 -0
- package/packages/workspace-tools/src/executors/unbuild/executor.d.ts +9 -0
- package/packages/workspace-tools/src/generators/config-schema/generator.d.ts +13 -0
- package/packages/workspace-tools/src/generators/init/init.d.ts +4 -0
- package/packages/workspace-tools/src/generators/node-library/generator.d.ts +5 -0
- package/packages/workspace-tools/src/generators/preset/generator.d.ts +5 -0
- package/packages/workspace-tools/src/generators/release-version/generator.d.ts +13 -0
- package/packages/workspace-tools/src/utils/apply-workspace-tokens.d.ts +8 -0
- package/packages/workspace-tools/src/utils/cargo.d.ts +26 -0
- package/packages/workspace-tools/src/utils/create-cli-options.d.ts +1 -0
- package/packages/workspace-tools/src/utils/get-project-configurations.d.ts +13 -0
- package/packages/workspace-tools/src/utils/index.d.ts +9 -0
- package/packages/workspace-tools/src/utils/lock-file.d.ts +23 -0
- package/packages/workspace-tools/src/utils/project-tags.d.ts +30 -0
- package/packages/workspace-tools/src/utils/toml.d.ts +167 -0
- package/packages/workspace-tools/src/utils/typia-transform.d.ts +2 -0
- package/packages/workspace-tools/src/utils/versions.d.ts +18 -0
- package/src/executors/apply/executor.js +4875 -0
- package/src/executors/apply/schema.d.ts +5 -0
- package/src/executors/apply/schema.json +21 -0
- package/src/executors/destroy/executor.js +4875 -0
- package/src/executors/destroy/schema.d.ts +5 -0
- package/src/executors/destroy/schema.json +16 -0
- package/src/executors/output/executor.js +4875 -0
- package/src/executors/output/schema.d.ts +1 -0
- package/src/executors/output/schema.json +10 -0
- package/src/executors/plan/executor.js +4875 -0
- package/src/executors/plan/schema.d.ts +5 -0
- package/src/executors/plan/schema.json +16 -0
- package/src/generators/init/init.js +39 -0
- package/src/generators/init/schema.d.ts +3 -0
- package/src/generators/init/schema.json +16 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import type Rolldown from "rolldown";
|
|
2
|
+
import type { Plugin } from "rolldown";
|
|
3
|
+
import type { Options } from "tsup";
|
|
4
|
+
import type { Diagnostic, ParsedCommandLine, Program, SourceFile, TransformerFactory } from "typescript";
|
|
5
|
+
import type { BuildOptions as UnbuildOptions, RollupBuildOptions as UnbuildRollupBuildOptions } from "unbuild";
|
|
6
|
+
export interface TsupContext {
|
|
7
|
+
projectRoot: string;
|
|
8
|
+
sourceRoot: string;
|
|
9
|
+
projectName: string;
|
|
10
|
+
main: string;
|
|
11
|
+
}
|
|
12
|
+
export type BuildOptions = Options;
|
|
13
|
+
export type Entry = string | string[] | Record<string, string>;
|
|
14
|
+
export type GetConfigParams = Omit<TsupGetConfigOptions, "entry" | "assets" | "clean" | "outputPath" | "tsConfig" | "main"> & {
|
|
15
|
+
entry: Entry;
|
|
16
|
+
outDir: string;
|
|
17
|
+
projectRoot: string;
|
|
18
|
+
workspaceRoot: string;
|
|
19
|
+
tsconfig: string;
|
|
20
|
+
shims?: boolean;
|
|
21
|
+
apiReport?: boolean;
|
|
22
|
+
docModel?: boolean;
|
|
23
|
+
tsdocMetadata?: boolean;
|
|
24
|
+
dtsTsConfig: ParsedCommandLine;
|
|
25
|
+
getTransform?: (program: Program, diagnostics: Diagnostic[]) => TransformerFactory<SourceFile>;
|
|
26
|
+
};
|
|
27
|
+
export type TsupGetConfigOptions = Omit<TypeScriptBuildOptions, "banner" | "entry"> & {
|
|
28
|
+
banner?: {
|
|
29
|
+
js?: string;
|
|
30
|
+
css?: string;
|
|
31
|
+
};
|
|
32
|
+
dtsTsConfig: ParsedCommandLine;
|
|
33
|
+
entry: Entry;
|
|
34
|
+
};
|
|
35
|
+
export type Platform = "browser" | "node" | "neutral";
|
|
36
|
+
export type FileInputOutput = {
|
|
37
|
+
input: string;
|
|
38
|
+
output: string;
|
|
39
|
+
};
|
|
40
|
+
export type AssetGlob = FileInputOutput & {
|
|
41
|
+
glob: string;
|
|
42
|
+
ignore?: string[];
|
|
43
|
+
dot?: boolean;
|
|
44
|
+
};
|
|
45
|
+
export interface AdditionalCLIOptions {
|
|
46
|
+
projectRoot: string;
|
|
47
|
+
sourceRoot: string;
|
|
48
|
+
projectName: string;
|
|
49
|
+
}
|
|
50
|
+
export interface TypeScriptBuildOptions extends AdditionalCLIOptions {
|
|
51
|
+
additionalEntryPoints?: string[];
|
|
52
|
+
assets: (AssetGlob | string)[];
|
|
53
|
+
bundle?: boolean;
|
|
54
|
+
deleteOutputPath?: boolean;
|
|
55
|
+
esbuildOptions?: Record<string, any>;
|
|
56
|
+
esbuildConfig?: string;
|
|
57
|
+
external?: string[];
|
|
58
|
+
outputFileName?: string;
|
|
59
|
+
outputHashing?: "none" | "all";
|
|
60
|
+
outputPath: string;
|
|
61
|
+
platform?: "node" | "browser" | "neutral" | "worker";
|
|
62
|
+
sourcemap?: boolean | "linked" | "inline" | "external" | "both";
|
|
63
|
+
target?: string;
|
|
64
|
+
tsConfig: string;
|
|
65
|
+
watch?: boolean;
|
|
66
|
+
entry: string;
|
|
67
|
+
options?: Options;
|
|
68
|
+
clean?: boolean;
|
|
69
|
+
debug?: boolean;
|
|
70
|
+
banner?: string;
|
|
71
|
+
verbose?: boolean;
|
|
72
|
+
define?: Record<string, string | undefined | null>;
|
|
73
|
+
env?: Record<string, string | undefined | null>;
|
|
74
|
+
apiReport?: boolean;
|
|
75
|
+
docModel?: boolean;
|
|
76
|
+
tsdocMetadata?: boolean;
|
|
77
|
+
includeSrc?: boolean;
|
|
78
|
+
plugins?: any[];
|
|
79
|
+
shims?: boolean;
|
|
80
|
+
splitting?: boolean;
|
|
81
|
+
treeshake?: boolean;
|
|
82
|
+
generatePackageJson?: boolean;
|
|
83
|
+
emitOnAll?: boolean;
|
|
84
|
+
getConfig: (params: GetConfigParams) => Options;
|
|
85
|
+
format?: string[];
|
|
86
|
+
metafile?: boolean;
|
|
87
|
+
minify?: boolean;
|
|
88
|
+
skipNativeModulesPlugin?: boolean;
|
|
89
|
+
useJsxModule?: boolean;
|
|
90
|
+
}
|
|
91
|
+
export type RolldownFormat = "cjs" | "es";
|
|
92
|
+
export declare const RolldownFormat: {
|
|
93
|
+
COMMONJS: RolldownFormat;
|
|
94
|
+
ES_MODULE: RolldownFormat;
|
|
95
|
+
};
|
|
96
|
+
export type IsExternal = (source: string, importer: string | undefined, isResolved: boolean) => boolean;
|
|
97
|
+
export type RolldownResolveOptions = Omit<BindingResolveOptions, "alias"> & {
|
|
98
|
+
alias?: Record<string, string>;
|
|
99
|
+
};
|
|
100
|
+
export interface BindingResolveOptions {
|
|
101
|
+
alias?: Record<string, string[]>;
|
|
102
|
+
aliasFields?: string[][];
|
|
103
|
+
conditionNames?: string[];
|
|
104
|
+
exportsFields?: string[][];
|
|
105
|
+
extensions?: string[];
|
|
106
|
+
mainFields?: string[];
|
|
107
|
+
mainFiles?: string[];
|
|
108
|
+
modules?: string[];
|
|
109
|
+
symlinks?: boolean;
|
|
110
|
+
tsconfigFilename?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface RenderedModule {
|
|
113
|
+
readonly code: string | null;
|
|
114
|
+
originalLength: number;
|
|
115
|
+
removedExports: string[];
|
|
116
|
+
renderedExports: string[];
|
|
117
|
+
renderedLength: number;
|
|
118
|
+
}
|
|
119
|
+
export interface PreRenderedChunk {
|
|
120
|
+
exports: string[];
|
|
121
|
+
facadeModuleId: string | null;
|
|
122
|
+
isDynamicEntry: boolean;
|
|
123
|
+
isEntry: boolean;
|
|
124
|
+
isImplicitEntry: boolean;
|
|
125
|
+
moduleIds: string[];
|
|
126
|
+
name: string;
|
|
127
|
+
type: "chunk";
|
|
128
|
+
}
|
|
129
|
+
export interface RenderedChunk extends PreRenderedChunk {
|
|
130
|
+
dynamicImports: string[];
|
|
131
|
+
fileName: string;
|
|
132
|
+
implicitlyLoadedBefore: string[];
|
|
133
|
+
importedBindings: {
|
|
134
|
+
[imported: string]: string[];
|
|
135
|
+
};
|
|
136
|
+
imports: string[];
|
|
137
|
+
modules: {
|
|
138
|
+
[id: string]: RenderedModule;
|
|
139
|
+
};
|
|
140
|
+
referencedFiles: string[];
|
|
141
|
+
}
|
|
142
|
+
type InputOption = string | string[] | {
|
|
143
|
+
[entryAlias: string]: string;
|
|
144
|
+
};
|
|
145
|
+
export interface InputOptions {
|
|
146
|
+
input?: InputOption;
|
|
147
|
+
plugins?: Plugin[];
|
|
148
|
+
external?: IsExternal;
|
|
149
|
+
resolve?: RolldownResolveOptions;
|
|
150
|
+
cwd: string;
|
|
151
|
+
platform: Platform;
|
|
152
|
+
treeshake: boolean;
|
|
153
|
+
}
|
|
154
|
+
export interface OutputOptions extends Rolldown.OutputOptions {
|
|
155
|
+
dir?: string;
|
|
156
|
+
format?: "es";
|
|
157
|
+
exports?: "default" | "named" | "none" | "auto";
|
|
158
|
+
sourcemap?: boolean | "inline" | "hidden";
|
|
159
|
+
banner?: string | ((chunk: RenderedChunk) => string | Promise<string>);
|
|
160
|
+
footer?: string | ((chunk: RenderedChunk) => string | Promise<string>);
|
|
161
|
+
}
|
|
162
|
+
export interface RolldownBuildOptions extends InputOptions {
|
|
163
|
+
output?: OutputOptions;
|
|
164
|
+
}
|
|
165
|
+
export type RolldownUserDefinedConfig = string | RolldownBuildOptions | ((config: RolldownBuildOptions) => RolldownBuildOptions | Promise<RolldownBuildOptions>);
|
|
166
|
+
export type RolldownOptions = AdditionalCLIOptions & {
|
|
167
|
+
clean: boolean;
|
|
168
|
+
watch: boolean;
|
|
169
|
+
entry: string;
|
|
170
|
+
additionalEntryPoints?: string[];
|
|
171
|
+
assets: (AssetGlob | string)[];
|
|
172
|
+
generatePackageJson: boolean;
|
|
173
|
+
includeSrc: boolean;
|
|
174
|
+
banner?: OutputOptions["banner"];
|
|
175
|
+
footer?: OutputOptions["footer"];
|
|
176
|
+
outputPath: string;
|
|
177
|
+
skipTypeCheck: boolean;
|
|
178
|
+
verbose: boolean;
|
|
179
|
+
tsConfig: string;
|
|
180
|
+
minify: boolean;
|
|
181
|
+
treeshake: boolean;
|
|
182
|
+
extractCss: boolean;
|
|
183
|
+
sourcemap?: OutputOptions["sourcemap"];
|
|
184
|
+
exports?: OutputOptions["exports"];
|
|
185
|
+
platform: InputOptions["platform"];
|
|
186
|
+
resolve: InputOptions["resolve"];
|
|
187
|
+
external: InputOptions["external"];
|
|
188
|
+
plugins: Plugin[];
|
|
189
|
+
rolldownConfig?: RolldownUserDefinedConfig | RolldownUserDefinedConfig[];
|
|
190
|
+
};
|
|
191
|
+
export type DeepPartial<T> = T extends object ? {
|
|
192
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
193
|
+
} : T;
|
|
194
|
+
export type UnbuildBuildOptions = AdditionalCLIOptions & Omit<UnbuildOptions, "name" | "rootDir" | "entries" | "externals" | "outDir"> & {
|
|
195
|
+
clean: boolean;
|
|
196
|
+
watch: boolean;
|
|
197
|
+
verbose: boolean;
|
|
198
|
+
minify: boolean;
|
|
199
|
+
tsLibs: string[];
|
|
200
|
+
includeSrc: boolean;
|
|
201
|
+
generatePackageJson: boolean;
|
|
202
|
+
tsConfig: string;
|
|
203
|
+
outputPath: string;
|
|
204
|
+
entry?: string;
|
|
205
|
+
additionalEntryPoints?: string[];
|
|
206
|
+
external?: (string | RegExp)[];
|
|
207
|
+
assets: (AssetGlob | string)[];
|
|
208
|
+
banner?: OutputOptions["banner"];
|
|
209
|
+
footer?: OutputOptions["footer"];
|
|
210
|
+
rollupConfig?: DeepPartial<UnbuildRollupBuildOptions> | string;
|
|
211
|
+
configPath?: string;
|
|
212
|
+
};
|
|
213
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StormConfig } from "@storm-software/config";
|
|
2
|
+
import type { TypeScriptBuildOptions } from "../../declarations";
|
|
3
|
+
import type { RolldownOptions, UnbuildBuildOptions } from "../types";
|
|
4
|
+
export declare const applyDefaultOptions: (options: Partial<any>, config?: StormConfig) => TypeScriptBuildOptions;
|
|
5
|
+
export declare const applyDefaultRolldownOptions: (options: Partial<RolldownOptions>, config?: StormConfig) => RolldownOptions;
|
|
6
|
+
export declare const applyDefaultUnbuildOptions: (options: Partial<UnbuildBuildOptions>, config?: StormConfig) => UnbuildBuildOptions;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ProjectConfiguration, ProjectGraph } from "@nx/devkit";
|
|
2
|
+
import type { StormConfig } from "@storm-software/config";
|
|
3
|
+
import type { TypeScriptBuildOptions } from "../../declarations";
|
|
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>;
|
|
7
|
+
export declare const addPackageJsonExports: (sourceRoot: string, packageJson: Record<string, any>) => Promise<Record<string, any>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get a banner header to display at the top of a file
|
|
3
|
+
*
|
|
4
|
+
* @param name - The name to use in the display
|
|
5
|
+
* @param commentStart - The comment starting token
|
|
6
|
+
* @returns The banner header
|
|
7
|
+
*/
|
|
8
|
+
export declare const getFileBanner: (name: string, commentStart?: string) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProjectGraph, ProjectGraphExternalNode, ProjectGraphProjectNode } from "@nx/devkit";
|
|
2
|
+
import type { DependentBuildableProjectNode } from "@nx/js/src/utils/buildable-libs-utils.js";
|
|
3
|
+
export declare function getExtraDependencies(projectName: string, graph: ProjectGraph): DependentBuildableProjectNode[];
|
|
4
|
+
export declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
|
|
5
|
+
export declare function getExternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphExternalNode[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NxJsonConfiguration, TaskGraph, ProjectGraph } from "@nx/devkit";
|
|
2
|
+
export declare function getAllWorkspaceTaskGraphs(nxJson: NxJsonConfiguration, projectGraph: ProjectGraph): {
|
|
3
|
+
taskGraphs: Record<string, TaskGraph>;
|
|
4
|
+
errors: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
export declare function createTaskId(projectId: string, targetId: string, configurationId?: string): string;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import type { StormConfigInput } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* Type the config values for the current Storm workspace
|
|
4
|
+
*
|
|
5
|
+
* @param input - The config values for the current Storm workspace
|
|
6
|
+
* @returns The config values for the current Storm workspace
|
|
7
|
+
*/
|
|
8
|
+
export declare const defineConfig: (input: StormConfigInput) => {
|
|
9
|
+
colors: {
|
|
10
|
+
dark: {
|
|
11
|
+
foreground?: string | undefined;
|
|
12
|
+
background?: string | undefined;
|
|
13
|
+
brand?: string | undefined;
|
|
14
|
+
brand2?: string | undefined;
|
|
15
|
+
brand3?: string | undefined;
|
|
16
|
+
accent?: string | undefined;
|
|
17
|
+
help?: string | undefined;
|
|
18
|
+
success?: string | undefined;
|
|
19
|
+
info?: string | undefined;
|
|
20
|
+
warning?: string | undefined;
|
|
21
|
+
error?: string | undefined;
|
|
22
|
+
fatal?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
light: {
|
|
25
|
+
foreground?: string | undefined;
|
|
26
|
+
background?: string | undefined;
|
|
27
|
+
brand?: string | undefined;
|
|
28
|
+
brand2?: string | undefined;
|
|
29
|
+
brand3?: string | undefined;
|
|
30
|
+
accent?: string | undefined;
|
|
31
|
+
help?: string | undefined;
|
|
32
|
+
success?: string | undefined;
|
|
33
|
+
info?: string | undefined;
|
|
34
|
+
warning?: string | undefined;
|
|
35
|
+
error?: string | undefined;
|
|
36
|
+
fatal?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
brand?: string | undefined;
|
|
40
|
+
brand2?: string | undefined;
|
|
41
|
+
brand3?: string | undefined;
|
|
42
|
+
accent?: string | undefined;
|
|
43
|
+
help?: string | undefined;
|
|
44
|
+
success?: string | undefined;
|
|
45
|
+
info?: string | undefined;
|
|
46
|
+
warning?: string | undefined;
|
|
47
|
+
error?: string | undefined;
|
|
48
|
+
fatal?: string | undefined;
|
|
49
|
+
dark?: string | undefined;
|
|
50
|
+
light?: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
base: {
|
|
53
|
+
dark: {
|
|
54
|
+
foreground?: string | undefined;
|
|
55
|
+
background?: string | undefined;
|
|
56
|
+
brand?: string | undefined;
|
|
57
|
+
brand2?: string | undefined;
|
|
58
|
+
brand3?: string | undefined;
|
|
59
|
+
accent?: string | undefined;
|
|
60
|
+
help?: string | undefined;
|
|
61
|
+
success?: string | undefined;
|
|
62
|
+
info?: string | undefined;
|
|
63
|
+
warning?: string | undefined;
|
|
64
|
+
error?: string | undefined;
|
|
65
|
+
fatal?: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
light: {
|
|
68
|
+
foreground?: string | undefined;
|
|
69
|
+
background?: string | undefined;
|
|
70
|
+
brand?: string | undefined;
|
|
71
|
+
brand2?: string | undefined;
|
|
72
|
+
brand3?: string | undefined;
|
|
73
|
+
accent?: string | undefined;
|
|
74
|
+
help?: string | undefined;
|
|
75
|
+
success?: string | undefined;
|
|
76
|
+
info?: string | undefined;
|
|
77
|
+
warning?: string | undefined;
|
|
78
|
+
error?: string | undefined;
|
|
79
|
+
fatal?: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
82
|
+
brand?: string | undefined;
|
|
83
|
+
brand2?: string | undefined;
|
|
84
|
+
brand3?: string | undefined;
|
|
85
|
+
accent?: string | undefined;
|
|
86
|
+
help?: string | undefined;
|
|
87
|
+
success?: string | undefined;
|
|
88
|
+
info?: string | undefined;
|
|
89
|
+
warning?: string | undefined;
|
|
90
|
+
error?: string | undefined;
|
|
91
|
+
fatal?: string | undefined;
|
|
92
|
+
dark?: string | undefined;
|
|
93
|
+
light?: string | undefined;
|
|
94
|
+
};
|
|
95
|
+
} | Record<string, {
|
|
96
|
+
dark: {
|
|
97
|
+
foreground?: string | undefined;
|
|
98
|
+
background?: string | undefined;
|
|
99
|
+
brand?: string | undefined;
|
|
100
|
+
brand2?: string | undefined;
|
|
101
|
+
brand3?: string | undefined;
|
|
102
|
+
accent?: string | undefined;
|
|
103
|
+
help?: string | undefined;
|
|
104
|
+
success?: string | undefined;
|
|
105
|
+
info?: string | undefined;
|
|
106
|
+
warning?: string | undefined;
|
|
107
|
+
error?: string | undefined;
|
|
108
|
+
fatal?: string | undefined;
|
|
109
|
+
};
|
|
110
|
+
light: {
|
|
111
|
+
foreground?: string | undefined;
|
|
112
|
+
background?: string | undefined;
|
|
113
|
+
brand?: string | undefined;
|
|
114
|
+
brand2?: string | undefined;
|
|
115
|
+
brand3?: string | undefined;
|
|
116
|
+
accent?: string | undefined;
|
|
117
|
+
help?: string | undefined;
|
|
118
|
+
success?: string | undefined;
|
|
119
|
+
info?: string | undefined;
|
|
120
|
+
warning?: string | undefined;
|
|
121
|
+
error?: string | undefined;
|
|
122
|
+
fatal?: string | undefined;
|
|
123
|
+
};
|
|
124
|
+
} | {
|
|
125
|
+
brand?: string | undefined;
|
|
126
|
+
brand2?: string | undefined;
|
|
127
|
+
brand3?: string | undefined;
|
|
128
|
+
accent?: string | undefined;
|
|
129
|
+
help?: string | undefined;
|
|
130
|
+
success?: string | undefined;
|
|
131
|
+
info?: string | undefined;
|
|
132
|
+
warning?: string | undefined;
|
|
133
|
+
error?: string | undefined;
|
|
134
|
+
fatal?: string | undefined;
|
|
135
|
+
dark?: string | undefined;
|
|
136
|
+
light?: string | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
$schema?: string | undefined;
|
|
139
|
+
extends?: string | undefined;
|
|
140
|
+
name?: string | undefined;
|
|
141
|
+
namespace?: string | undefined;
|
|
142
|
+
organization?: string | undefined;
|
|
143
|
+
repository?: string | undefined;
|
|
144
|
+
license?: string | undefined;
|
|
145
|
+
homepage?: string | undefined;
|
|
146
|
+
branch?: string | undefined;
|
|
147
|
+
preid?: string | undefined;
|
|
148
|
+
owner?: string | undefined;
|
|
149
|
+
worker?: string | undefined;
|
|
150
|
+
env?: "development" | "staging" | "production" | undefined;
|
|
151
|
+
workspaceRoot?: string | undefined;
|
|
152
|
+
packageDirectory?: string | undefined;
|
|
153
|
+
externalPackagePatterns?: string[] | undefined;
|
|
154
|
+
skipCache?: boolean | undefined;
|
|
155
|
+
cacheDirectory?: string | undefined;
|
|
156
|
+
buildDirectory?: string | undefined;
|
|
157
|
+
outputDirectory?: string | undefined;
|
|
158
|
+
runtimeVersion?: string | undefined;
|
|
159
|
+
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
160
|
+
timezone?: string | undefined;
|
|
161
|
+
locale?: string | undefined;
|
|
162
|
+
logLevel?: "info" | "error" | "fatal" | "silent" | "warn" | "debug" | "trace" | "all" | undefined;
|
|
163
|
+
cloudflareAccountId?: string | null | undefined;
|
|
164
|
+
registry?: {
|
|
165
|
+
github?: string | undefined;
|
|
166
|
+
npm?: string | undefined;
|
|
167
|
+
cargo?: string | undefined;
|
|
168
|
+
cyclone?: string | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
configFile?: string | null | undefined;
|
|
171
|
+
extensions?: Record<string, any> | undefined;
|
|
172
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The config-schema library used by Storm Software for building TypeScript applications.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* A package containing various utilities to support custom workspace configurations
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export * from "./schema";
|
|
10
|
+
export * from "./types";
|
|
11
|
+
export * from "./define-config";
|