Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(meta-css): switch generated framework output to JSON, simplify
- Loading branch information
1 parent
f126005
commit 8850cae
Showing
6 changed files
with
207 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,44 @@ | ||
import type { IObjectOf } from "@thi.ng/api"; | ||
import type { CommandCtx } from "@thi.ng/args"; | ||
import type { FormatPresets } from "@thi.ng/text-format"; | ||
|
||
export interface CommonOpts { | ||
out: string; | ||
out?: string; | ||
verbose: boolean; | ||
} | ||
|
||
export interface AppCtx<T extends CommonOpts> | ||
extends CommandCtx<T, CommonOpts> { | ||
format: FormatPresets; | ||
} | ||
|
||
export interface CompiledSpecs { | ||
defs: IObjectOf<any>; | ||
media: IObjectOf<any>; | ||
info: SpecInfo; | ||
} | ||
|
||
export interface GeneratorConfig { | ||
info: SpecInfo; | ||
media: IObjectOf<string>; | ||
indexed: IObjectOf<any>; | ||
specs: Spec[]; | ||
} | ||
|
||
export interface SpecInfo { | ||
name: string; | ||
version: string; | ||
} | ||
|
||
export interface Spec { | ||
prefix: string; | ||
prop: string | string[]; | ||
def?: Record<string, string>; | ||
items: string | any[]; | ||
index?: Index; | ||
unit?: string | null; | ||
comment?: string; | ||
var?: string | string[]; | ||
} | ||
|
||
export type Index = "i" | "i1" | "v"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.