@tekki-forge/compiler 0.0.0-stage → 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/README.md +4 -2
- package/dist/compile.d.ts +17 -0
- package/dist/compile.js +691 -0
- package/dist/compile.js.map +1 -0
- package/dist/dashboard.d.ts +7 -0
- package/dist/dashboard.js +103 -0
- package/dist/dashboard.js.map +1 -0
- package/dist/features.d.ts +13 -0
- package/dist/features.js +247 -0
- package/dist/features.js.map +1 -0
- package/dist/files.d.ts +34 -0
- package/dist/files.js +32 -0
- package/dist/files.js.map +1 -0
- package/dist/i18n.d.ts +24 -0
- package/dist/i18n.js +168 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/indexes.d.ts +13 -0
- package/dist/indexes.js +71 -0
- package/dist/indexes.js.map +1 -0
- package/dist/ir.d.ts +413 -0
- package/dist/ir.js +27 -0
- package/dist/ir.js.map +1 -0
- package/dist/landing.d.ts +5 -0
- package/dist/landing.js +73 -0
- package/dist/landing.js.map +1 -0
- package/dist/load.d.ts +12 -0
- package/dist/load.js +38 -0
- package/dist/load.js.map +1 -0
- package/dist/naming.d.ts +11 -0
- package/dist/naming.js +58 -0
- package/dist/naming.js.map +1 -0
- package/dist/notifications.d.ts +5 -0
- package/dist/notifications.js +80 -0
- package/dist/notifications.js.map +1 -0
- package/dist/rules.d.ts +4 -0
- package/dist/rules.js +43 -0
- package/dist/rules.js.map +1 -0
- package/dist/theme.d.ts +69 -0
- package/dist/theme.js +257 -0
- package/dist/theme.js.map +1 -0
- package/dist/ui.d.ts +83 -0
- package/dist/ui.js +102 -0
- package/dist/ui.js.map +1 -0
- package/package.json +41 -3
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @tekki-forge/compiler
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Forge schema compiler: config -> validated, normalized IR.
|
|
4
|
+
|
|
5
|
+
Part of [Tekki Forge](https://www.npmjs.com/package/tekki-forge), which turns a `forge.config.ts` into a production-ready full-stack app. Apps created with `forge new` install this package for you; see the [tekki-forge](https://www.npmjs.com/package/tekki-forge) package for the documentation.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AppDefinition } from "@tekki-forge/core";
|
|
2
|
+
import { type AppIR, type SortIR } from "./ir.js";
|
|
3
|
+
export interface SchemaIssue {
|
|
4
|
+
path: string;
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ForgeSchemaError extends Error {
|
|
8
|
+
readonly issues: SchemaIssue[];
|
|
9
|
+
constructor(issues: SchemaIssue[]);
|
|
10
|
+
}
|
|
11
|
+
/** "10MB" | "500KB" | "1.5 GB" | bytes → bytes. */
|
|
12
|
+
export declare function parseSize(v: string | number): number | undefined;
|
|
13
|
+
/** Compile a Forge app definition into the normalized IR, collecting every issue before failing. */
|
|
14
|
+
export declare function compile(config: AppDefinition): AppIR;
|
|
15
|
+
/** Five-field cron ("0 3 * * *"): minute hour day-of-month month day-of-week. */
|
|
16
|
+
export declare function isCronPattern(v: string): boolean;
|
|
17
|
+
export declare function parseSort(sort: string): SortIR;
|