@better-t-stack/template-generator 3.18.0 → 3.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fs-writer.d.mts +1 -1
- package/dist/index.d.mts +22 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +23210 -23121
- package/dist/index.mjs.map +1 -1
- package/dist/{types-DUzPfsFZ.d.mts → types-zSU486rU.d.mts} +3 -1
- package/dist/types-zSU486rU.d.mts.map +1 -0
- package/package.json +2 -2
- package/dist/types-DUzPfsFZ.d.mts.map +0 -1
package/dist/fs-writer.d.mts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as VirtualFileTree, i as VirtualFile, n as GeneratorOptions, o as VirtualNode, r as VirtualDirectory, t as GeneratorError } from "./types-
|
|
2
|
-
import { Result
|
|
1
|
+
import { a as VirtualFileTree, i as VirtualFile, n as GeneratorOptions, o as VirtualNode, r as VirtualDirectory, t as GeneratorError } from "./types-zSU486rU.mjs";
|
|
2
|
+
import { Result } from "better-result";
|
|
3
3
|
import * as memfs0 from "memfs";
|
|
4
4
|
import Handlebars from "handlebars";
|
|
5
5
|
import { ProjectConfig } from "@better-t-stack/types";
|
|
@@ -43,6 +43,9 @@ declare function processFileContent(filePath: string, content: string, context:
|
|
|
43
43
|
//#region src/template-handlers/utils.d.ts
|
|
44
44
|
type TemplateData = Map<string, string>;
|
|
45
45
|
//#endregion
|
|
46
|
+
//#region src/template-handlers/addons.d.ts
|
|
47
|
+
declare function processAddonTemplates(vfs: VirtualFileSystem, templates: TemplateData, config: ProjectConfig): Promise<void>;
|
|
48
|
+
//#endregion
|
|
46
49
|
//#region src/generator.d.ts
|
|
47
50
|
/**
|
|
48
51
|
* Generates a virtual project file tree from templates and configuration.
|
|
@@ -57,7 +60,17 @@ type TemplateData = Map<string, string>;
|
|
|
57
60
|
* });
|
|
58
61
|
* ```
|
|
59
62
|
*/
|
|
60
|
-
declare function generate(options: GeneratorOptions): Promise<Result
|
|
63
|
+
declare function generate(options: GeneratorOptions): Promise<Result<VirtualFileTree, GeneratorError>>;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/processors/addons-deps.d.ts
|
|
66
|
+
declare function processAddonsDeps(vfs: VirtualFileSystem, config: ProjectConfig): void;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/bts-config.d.ts
|
|
69
|
+
/**
|
|
70
|
+
* Writes the BTS configuration file to the VFS (for new project creation).
|
|
71
|
+
* This is browser-safe as it only writes to VFS, not the real filesystem.
|
|
72
|
+
*/
|
|
73
|
+
declare function writeBtsConfigToVfs(vfs: VirtualFileSystem, projectConfig: ProjectConfig, version: string, reproducibleCommand?: string): void;
|
|
61
74
|
//#endregion
|
|
62
75
|
//#region src/templates.generated.d.ts
|
|
63
76
|
declare const EMBEDDED_TEMPLATES: Map<string, string>;
|
|
@@ -97,8 +110,8 @@ declare const dependencyVersionMap: {
|
|
|
97
110
|
readonly "@vite-pwa/assets-generator": "^1.0.0";
|
|
98
111
|
readonly "@tauri-apps/cli": "^2.4.0";
|
|
99
112
|
readonly "@biomejs/biome": "^2.2.0";
|
|
100
|
-
readonly oxlint: "^1.
|
|
101
|
-
readonly oxfmt: "^0.
|
|
113
|
+
readonly oxlint: "^1.41.0";
|
|
114
|
+
readonly oxfmt: "^0.26.0";
|
|
102
115
|
readonly husky: "^9.1.7";
|
|
103
116
|
readonly lefthook: "^2.0.13";
|
|
104
117
|
readonly "lint-staged": "^16.1.2";
|
|
@@ -173,5 +186,8 @@ declare const dependencyVersionMap: {
|
|
|
173
186
|
};
|
|
174
187
|
type AvailableDependencies = keyof typeof dependencyVersionMap;
|
|
175
188
|
//#endregion
|
|
176
|
-
|
|
189
|
+
//#region src/utils/reproducible-command.d.ts
|
|
190
|
+
declare function generateReproducibleCommand(config: ProjectConfig): string;
|
|
191
|
+
//#endregion
|
|
192
|
+
export { type AvailableDependencies, EMBEDDED_TEMPLATES, GeneratorError, GeneratorOptions, Handlebars, TEMPLATE_COUNT, type TemplateData, VirtualDirectory, VirtualFile, VirtualFileSystem, VirtualFileTree, VirtualNode, dependencyVersionMap, generate, generateReproducibleCommand, isBinaryFile, processAddonTemplates, processAddonsDeps, processFileContent, processTemplateString, transformFilename, writeBtsConfigToVfs };
|
|
177
193
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/virtual-fs.ts","../src/core/template-processor.ts","../src/template-handlers/utils.ts","../src/generator.ts","../src/templates.generated.ts","../src/utils/add-deps.ts"],"sourcesContent":[],"mappings":";;;;;;;cAOa,iBAAA;;;;;;EAAA,QAAA,CAAA,QAAA,EAAA,MAAiB,CAAA,EAAA,MAAA,GAAA,SAAA;EA6Ea,MAAA,CAAA,IAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAkCX,UAAA,CAAA,QAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAAgB,eAcrC,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,OAAA;EAAA,KAGJ,CAAA,OAAA,EAAA,MAAA,CAAA,EAAA,IAAA;EAAA,UAAA,CAAA,QAAA,EAAA,MAAA,CAAA,EAAA,OAAA;;2CAnDoC;;ECzE3B,WAAA,CAAA,CAAA,EAAA,MAAA,EAAA;EAIA,iBAAY,CAAA,CAAA,EAAA,MAAA,EAAA;EAIZ,YAAA,CAAA,CAAA,EAAA,MAAiB;EAUjB,iBAAA,CAAA,CAAA,EAAkB,MAAA;6BDyFF;;eAAgB,MAAA,CAcrC;EE9HC,KAAA,CAAA,CAAA,EF8HD,MAAA,CAGJ,GEjIoB;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/virtual-fs.ts","../src/core/template-processor.ts","../src/template-handlers/utils.ts","../src/template-handlers/addons.ts","../src/generator.ts","../src/processors/addons-deps.ts","../src/bts-config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