@bamboocss/node 1.12.0 → 1.12.2
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/package.json +13 -13
- package/dist/index.d.cts +0 -191
- package/dist/index.d.mts +0 -191
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/node",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"description": "The core css bamboo library",
|
|
5
5
|
"homepage": "https://bamboo-css.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,18 +52,18 @@
|
|
|
52
52
|
"postcss": "8.5.14",
|
|
53
53
|
"ts-morph": "28.0.0",
|
|
54
54
|
"ts-pattern": "5.9.0",
|
|
55
|
-
"@bamboocss/config": "1.12.
|
|
56
|
-
"@bamboocss/core": "1.12.
|
|
57
|
-
"@bamboocss/
|
|
58
|
-
"@bamboocss/parser": "1.12.
|
|
59
|
-
"@bamboocss/
|
|
60
|
-
"@bamboocss/plugin-
|
|
61
|
-
"@bamboocss/plugin-
|
|
62
|
-
"@bamboocss/plugin-
|
|
63
|
-
"@bamboocss/reporter": "1.12.
|
|
64
|
-
"@bamboocss/shared": "1.12.
|
|
65
|
-
"@bamboocss/
|
|
66
|
-
"@bamboocss/
|
|
55
|
+
"@bamboocss/config": "1.12.2",
|
|
56
|
+
"@bamboocss/core": "1.12.2",
|
|
57
|
+
"@bamboocss/generator": "1.12.2",
|
|
58
|
+
"@bamboocss/parser": "1.12.2",
|
|
59
|
+
"@bamboocss/logger": "1.12.2",
|
|
60
|
+
"@bamboocss/plugin-lightningcss": "1.12.2",
|
|
61
|
+
"@bamboocss/plugin-vue": "1.12.2",
|
|
62
|
+
"@bamboocss/plugin-svelte": "1.12.2",
|
|
63
|
+
"@bamboocss/reporter": "1.12.2",
|
|
64
|
+
"@bamboocss/shared": "1.12.2",
|
|
65
|
+
"@bamboocss/token-dictionary": "1.12.2",
|
|
66
|
+
"@bamboocss/types": "1.12.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/fs-extra": "11.0.4",
|
package/dist/index.d.cts
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { ReportFormat } from "@bamboocss/reporter";
|
|
2
|
-
import { AnalysisOptions, Artifact, ArtifactId, BambooHooks, Config, CssArtifactType, LoadConfigResult, Runtime, SpecFile, WatchOptions, WatcherEventType } from "@bamboocss/types";
|
|
3
|
-
import { StyleEncoder, Stylesheet } from "@bamboocss/core";
|
|
4
|
-
import { Generator } from "@bamboocss/generator";
|
|
5
|
-
import { ParserResult, Project } from "@bamboocss/parser";
|
|
6
|
-
import { Message, Root } from "postcss";
|
|
7
|
-
|
|
8
|
-
//#region src/diff-engine.d.ts
|
|
9
|
-
declare class DiffEngine {
|
|
10
|
-
private ctx;
|
|
11
|
-
private prevConfig;
|
|
12
|
-
constructor(ctx: Generator);
|
|
13
|
-
/**
|
|
14
|
-
* Reload config from disk and refresh the context
|
|
15
|
-
*/
|
|
16
|
-
reloadConfigAndRefreshContext(fn?: (conf: LoadConfigResult) => void): Promise<import("@bamboocss/types").DiffConfigResult>;
|
|
17
|
-
/**
|
|
18
|
-
* Update the context from the refreshed config
|
|
19
|
-
* then persist the changes on each affected engines
|
|
20
|
-
* Returns the list of affected artifacts/engines
|
|
21
|
-
*/
|
|
22
|
-
refresh(conf: LoadConfigResult, fn?: (conf: LoadConfigResult) => void): import("@bamboocss/types").DiffConfigResult;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/output-engine.d.ts
|
|
26
|
-
interface OutputEngineOptions extends Generator {
|
|
27
|
-
runtime: Runtime;
|
|
28
|
-
hooks: Partial<BambooHooks>;
|
|
29
|
-
}
|
|
30
|
-
declare class OutputEngine {
|
|
31
|
-
private paths;
|
|
32
|
-
private fs;
|
|
33
|
-
private path;
|
|
34
|
-
constructor(options: OutputEngineOptions);
|
|
35
|
-
empty: () => void;
|
|
36
|
-
ensure: (file: string, cwd: string) => string;
|
|
37
|
-
write: (output: Artifact | undefined) => Promise<PromiseSettledResult<void>[]> | undefined;
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/create-context.d.ts
|
|
41
|
-
declare class BambooContext extends Generator {
|
|
42
|
-
runtime: Runtime;
|
|
43
|
-
project: Project;
|
|
44
|
-
output: OutputEngine;
|
|
45
|
-
diff: DiffEngine;
|
|
46
|
-
explicitDeps: string[];
|
|
47
|
-
constructor(conf: LoadConfigResult);
|
|
48
|
-
private getExplicitDependencies;
|
|
49
|
-
initMessage: () => string;
|
|
50
|
-
getFiles: () => string[];
|
|
51
|
-
parseFile: (filePath: string, styleEncoder?: StyleEncoder) => ParserResult | undefined;
|
|
52
|
-
parseFiles: (styleEncoder?: StyleEncoder) => {
|
|
53
|
-
filesWithCss: string[];
|
|
54
|
-
files: string[];
|
|
55
|
-
results: ParserResult[];
|
|
56
|
-
};
|
|
57
|
-
writeCss: (sheet?: Stylesheet) => Promise<PromiseSettledResult<void>[]> | undefined;
|
|
58
|
-
writeSplitCss: (sheet: Stylesheet) => Promise<void>;
|
|
59
|
-
watchConfig: (cb: (file: string) => void | Promise<void>, opts?: Omit<WatchOptions, "include">) => void;
|
|
60
|
-
watchFiles: (cb: (event: WatcherEventType, file: string) => void | Promise<void>, opts?: Omit<WatchOptions, "include" | "exclude" | "poll" | "cwd" | "logger">) => void;
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/analyze.d.ts
|
|
64
|
-
declare function analyze(ctx: BambooContext, options?: AnalysisOptions): {
|
|
65
|
-
getRecipeReport(format?: ReportFormat): {
|
|
66
|
-
report: import("@bamboocss/reporter").RecipeReportEntry[];
|
|
67
|
-
formatted: string;
|
|
68
|
-
};
|
|
69
|
-
getTokenReport(format?: ReportFormat): {
|
|
70
|
-
report: import("@bamboocss/reporter").TokenAnalysisReport;
|
|
71
|
-
formatted: string;
|
|
72
|
-
};
|
|
73
|
-
writeReport(filePath: string): Promise<void>;
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/build-info.d.ts
|
|
77
|
-
declare function buildInfo(ctx: BambooContext, outfile: string): Promise<void>;
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/builder.d.ts
|
|
80
|
-
declare class Builder {
|
|
81
|
-
/**
|
|
82
|
-
* The current bamboo context
|
|
83
|
-
*/
|
|
84
|
-
context: BambooContext | undefined;
|
|
85
|
-
private hasEmitted;
|
|
86
|
-
private filesMeta;
|
|
87
|
-
private explicitDepsMeta;
|
|
88
|
-
private affecteds;
|
|
89
|
-
private configDependencies;
|
|
90
|
-
setConfigDependencies(options: SetupContextOptions): void;
|
|
91
|
-
setup: (options?: {
|
|
92
|
-
configPath?: string;
|
|
93
|
-
cwd?: string;
|
|
94
|
-
}) => Promise<BambooContext | undefined>;
|
|
95
|
-
emit(): Promise<void>;
|
|
96
|
-
setupContext: (options: SetupContextOptions) => Promise<BambooContext>;
|
|
97
|
-
getContextOrThrow: () => BambooContext;
|
|
98
|
-
getFileMeta: (file: string) => {
|
|
99
|
-
mtime: number;
|
|
100
|
-
isUnchanged: boolean;
|
|
101
|
-
};
|
|
102
|
-
checkFilesChanged(files: string[]): {
|
|
103
|
-
changes: Map<string, FileMeta>;
|
|
104
|
-
hasFilesChanged: boolean;
|
|
105
|
-
};
|
|
106
|
-
extractFile: (ctx: BambooContext, file: string) => import("@bamboocss/parser").ParserResult | undefined;
|
|
107
|
-
extract: () => void;
|
|
108
|
-
isValidRoot: (root: Root) => boolean;
|
|
109
|
-
write: (root: Root) => void;
|
|
110
|
-
registerDependency: (fn: (dep: Message) => void) => void;
|
|
111
|
-
}
|
|
112
|
-
interface FileMeta {
|
|
113
|
-
mtime: number;
|
|
114
|
-
isUnchanged: boolean;
|
|
115
|
-
}
|
|
116
|
-
interface SetupContextOptions {
|
|
117
|
-
configPath: string;
|
|
118
|
-
cwd?: string;
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region src/codegen.d.ts
|
|
122
|
-
declare function codegen(ctx: BambooContext, ids?: ArtifactId[]): Promise<{
|
|
123
|
-
box: string;
|
|
124
|
-
msg: string;
|
|
125
|
-
}>;
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region src/config.d.ts
|
|
128
|
-
/**
|
|
129
|
-
* Load config and create context with auto-injected plugins.
|
|
130
|
-
* Used by the CLI and PostCSS plugin.
|
|
131
|
-
*/
|
|
132
|
-
declare function loadConfigAndCreateContext(options?: {
|
|
133
|
-
cwd?: string;
|
|
134
|
-
config?: Config;
|
|
135
|
-
configPath?: string;
|
|
136
|
-
}): Promise<BambooContext>;
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region src/cpu-profile.d.ts
|
|
139
|
-
declare const startProfiling: (cwd: string, prefix: string, isWatching?: boolean) => Promise<(cb?: () => void) => void>;
|
|
140
|
-
//#endregion
|
|
141
|
-
//#region src/cssgen.d.ts
|
|
142
|
-
interface CssGenOptions {
|
|
143
|
-
cwd: string;
|
|
144
|
-
outfile?: string;
|
|
145
|
-
type?: CssArtifactType;
|
|
146
|
-
minimal?: boolean;
|
|
147
|
-
splitting?: boolean;
|
|
148
|
-
}
|
|
149
|
-
declare const cssgen: (ctx: BambooContext, options: CssGenOptions) => Promise<void>;
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region src/debug.d.ts
|
|
152
|
-
interface DebugOptions {
|
|
153
|
-
outdir: string;
|
|
154
|
-
dry: boolean;
|
|
155
|
-
onlyConfig?: boolean;
|
|
156
|
-
}
|
|
157
|
-
declare function debug(ctx: BambooContext, options: DebugOptions): Promise<void>;
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/generate.d.ts
|
|
160
|
-
declare function generate(config: Config, configPath?: string): Promise<void>;
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region src/git-ignore.d.ts
|
|
163
|
-
declare function setupGitIgnore(ctx: BambooContext): void;
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region src/logstream.d.ts
|
|
166
|
-
interface LogstreamOptions {
|
|
167
|
-
cwd?: string;
|
|
168
|
-
logfile?: string;
|
|
169
|
-
}
|
|
170
|
-
declare const setLogStream: (options: LogstreamOptions) => {
|
|
171
|
-
end(): void;
|
|
172
|
-
[Symbol.dispose]: () => void;
|
|
173
|
-
};
|
|
174
|
-
//#endregion
|
|
175
|
-
//#region src/parse-dependency.d.ts
|
|
176
|
-
declare function parseDependency(fileOrGlob: string): Message | null;
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region src/setup-config.d.ts
|
|
179
|
-
type SetupOptions = Partial<Config> & {
|
|
180
|
-
force?: boolean;
|
|
181
|
-
};
|
|
182
|
-
declare function setupConfig(cwd: string, opts?: SetupOptions): Promise<void>;
|
|
183
|
-
declare function setupPostcss(cwd: string): Promise<void>;
|
|
184
|
-
//#endregion
|
|
185
|
-
//#region src/spec.d.ts
|
|
186
|
-
interface SpecOptions {
|
|
187
|
-
outdir?: string;
|
|
188
|
-
}
|
|
189
|
-
declare function spec(ctx: BambooContext, options: SpecOptions): Promise<SpecFile[]>;
|
|
190
|
-
//#endregion
|
|
191
|
-
export { BambooContext, Builder, type CssGenOptions, analyze, buildInfo, codegen, cssgen, debug, generate, loadConfigAndCreateContext, parseDependency, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling };
|
package/dist/index.d.mts
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { ReportFormat } from "@bamboocss/reporter";
|
|
2
|
-
import { Generator } from "@bamboocss/generator";
|
|
3
|
-
import { ParserResult, Project } from "@bamboocss/parser";
|
|
4
|
-
import { StyleEncoder, Stylesheet } from "@bamboocss/core";
|
|
5
|
-
import { AnalysisOptions, Artifact, ArtifactId, BambooHooks, Config, CssArtifactType, LoadConfigResult, Runtime, SpecFile, WatchOptions, WatcherEventType } from "@bamboocss/types";
|
|
6
|
-
import { Message, Root } from "postcss";
|
|
7
|
-
|
|
8
|
-
//#region src/diff-engine.d.ts
|
|
9
|
-
declare class DiffEngine {
|
|
10
|
-
private ctx;
|
|
11
|
-
private prevConfig;
|
|
12
|
-
constructor(ctx: Generator);
|
|
13
|
-
/**
|
|
14
|
-
* Reload config from disk and refresh the context
|
|
15
|
-
*/
|
|
16
|
-
reloadConfigAndRefreshContext(fn?: (conf: LoadConfigResult) => void): Promise<import("@bamboocss/types").DiffConfigResult>;
|
|
17
|
-
/**
|
|
18
|
-
* Update the context from the refreshed config
|
|
19
|
-
* then persist the changes on each affected engines
|
|
20
|
-
* Returns the list of affected artifacts/engines
|
|
21
|
-
*/
|
|
22
|
-
refresh(conf: LoadConfigResult, fn?: (conf: LoadConfigResult) => void): import("@bamboocss/types").DiffConfigResult;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/output-engine.d.ts
|
|
26
|
-
interface OutputEngineOptions extends Generator {
|
|
27
|
-
runtime: Runtime;
|
|
28
|
-
hooks: Partial<BambooHooks>;
|
|
29
|
-
}
|
|
30
|
-
declare class OutputEngine {
|
|
31
|
-
private paths;
|
|
32
|
-
private fs;
|
|
33
|
-
private path;
|
|
34
|
-
constructor(options: OutputEngineOptions);
|
|
35
|
-
empty: () => void;
|
|
36
|
-
ensure: (file: string, cwd: string) => string;
|
|
37
|
-
write: (output: Artifact | undefined) => Promise<PromiseSettledResult<void>[]> | undefined;
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/create-context.d.ts
|
|
41
|
-
declare class BambooContext extends Generator {
|
|
42
|
-
runtime: Runtime;
|
|
43
|
-
project: Project;
|
|
44
|
-
output: OutputEngine;
|
|
45
|
-
diff: DiffEngine;
|
|
46
|
-
explicitDeps: string[];
|
|
47
|
-
constructor(conf: LoadConfigResult);
|
|
48
|
-
private getExplicitDependencies;
|
|
49
|
-
initMessage: () => string;
|
|
50
|
-
getFiles: () => string[];
|
|
51
|
-
parseFile: (filePath: string, styleEncoder?: StyleEncoder) => ParserResult | undefined;
|
|
52
|
-
parseFiles: (styleEncoder?: StyleEncoder) => {
|
|
53
|
-
filesWithCss: string[];
|
|
54
|
-
files: string[];
|
|
55
|
-
results: ParserResult[];
|
|
56
|
-
};
|
|
57
|
-
writeCss: (sheet?: Stylesheet) => Promise<PromiseSettledResult<void>[]> | undefined;
|
|
58
|
-
writeSplitCss: (sheet: Stylesheet) => Promise<void>;
|
|
59
|
-
watchConfig: (cb: (file: string) => void | Promise<void>, opts?: Omit<WatchOptions, "include">) => void;
|
|
60
|
-
watchFiles: (cb: (event: WatcherEventType, file: string) => void | Promise<void>, opts?: Omit<WatchOptions, "include" | "exclude" | "poll" | "cwd" | "logger">) => void;
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/analyze.d.ts
|
|
64
|
-
declare function analyze(ctx: BambooContext, options?: AnalysisOptions): {
|
|
65
|
-
getRecipeReport(format?: ReportFormat): {
|
|
66
|
-
report: import("@bamboocss/reporter").RecipeReportEntry[];
|
|
67
|
-
formatted: string;
|
|
68
|
-
};
|
|
69
|
-
getTokenReport(format?: ReportFormat): {
|
|
70
|
-
report: import("@bamboocss/reporter").TokenAnalysisReport;
|
|
71
|
-
formatted: string;
|
|
72
|
-
};
|
|
73
|
-
writeReport(filePath: string): Promise<void>;
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/build-info.d.ts
|
|
77
|
-
declare function buildInfo(ctx: BambooContext, outfile: string): Promise<void>;
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/builder.d.ts
|
|
80
|
-
declare class Builder {
|
|
81
|
-
/**
|
|
82
|
-
* The current bamboo context
|
|
83
|
-
*/
|
|
84
|
-
context: BambooContext | undefined;
|
|
85
|
-
private hasEmitted;
|
|
86
|
-
private filesMeta;
|
|
87
|
-
private explicitDepsMeta;
|
|
88
|
-
private affecteds;
|
|
89
|
-
private configDependencies;
|
|
90
|
-
setConfigDependencies(options: SetupContextOptions): void;
|
|
91
|
-
setup: (options?: {
|
|
92
|
-
configPath?: string;
|
|
93
|
-
cwd?: string;
|
|
94
|
-
}) => Promise<BambooContext | undefined>;
|
|
95
|
-
emit(): Promise<void>;
|
|
96
|
-
setupContext: (options: SetupContextOptions) => Promise<BambooContext>;
|
|
97
|
-
getContextOrThrow: () => BambooContext;
|
|
98
|
-
getFileMeta: (file: string) => {
|
|
99
|
-
mtime: number;
|
|
100
|
-
isUnchanged: boolean;
|
|
101
|
-
};
|
|
102
|
-
checkFilesChanged(files: string[]): {
|
|
103
|
-
changes: Map<string, FileMeta>;
|
|
104
|
-
hasFilesChanged: boolean;
|
|
105
|
-
};
|
|
106
|
-
extractFile: (ctx: BambooContext, file: string) => import("@bamboocss/parser").ParserResult | undefined;
|
|
107
|
-
extract: () => void;
|
|
108
|
-
isValidRoot: (root: Root) => boolean;
|
|
109
|
-
write: (root: Root) => void;
|
|
110
|
-
registerDependency: (fn: (dep: Message) => void) => void;
|
|
111
|
-
}
|
|
112
|
-
interface FileMeta {
|
|
113
|
-
mtime: number;
|
|
114
|
-
isUnchanged: boolean;
|
|
115
|
-
}
|
|
116
|
-
interface SetupContextOptions {
|
|
117
|
-
configPath: string;
|
|
118
|
-
cwd?: string;
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region src/codegen.d.ts
|
|
122
|
-
declare function codegen(ctx: BambooContext, ids?: ArtifactId[]): Promise<{
|
|
123
|
-
box: string;
|
|
124
|
-
msg: string;
|
|
125
|
-
}>;
|
|
126
|
-
//#endregion
|
|
127
|
-
//#region src/config.d.ts
|
|
128
|
-
/**
|
|
129
|
-
* Load config and create context with auto-injected plugins.
|
|
130
|
-
* Used by the CLI and PostCSS plugin.
|
|
131
|
-
*/
|
|
132
|
-
declare function loadConfigAndCreateContext(options?: {
|
|
133
|
-
cwd?: string;
|
|
134
|
-
config?: Config;
|
|
135
|
-
configPath?: string;
|
|
136
|
-
}): Promise<BambooContext>;
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region src/cpu-profile.d.ts
|
|
139
|
-
declare const startProfiling: (cwd: string, prefix: string, isWatching?: boolean) => Promise<(cb?: () => void) => void>;
|
|
140
|
-
//#endregion
|
|
141
|
-
//#region src/cssgen.d.ts
|
|
142
|
-
interface CssGenOptions {
|
|
143
|
-
cwd: string;
|
|
144
|
-
outfile?: string;
|
|
145
|
-
type?: CssArtifactType;
|
|
146
|
-
minimal?: boolean;
|
|
147
|
-
splitting?: boolean;
|
|
148
|
-
}
|
|
149
|
-
declare const cssgen: (ctx: BambooContext, options: CssGenOptions) => Promise<void>;
|
|
150
|
-
//#endregion
|
|
151
|
-
//#region src/debug.d.ts
|
|
152
|
-
interface DebugOptions {
|
|
153
|
-
outdir: string;
|
|
154
|
-
dry: boolean;
|
|
155
|
-
onlyConfig?: boolean;
|
|
156
|
-
}
|
|
157
|
-
declare function debug(ctx: BambooContext, options: DebugOptions): Promise<void>;
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/generate.d.ts
|
|
160
|
-
declare function generate(config: Config, configPath?: string): Promise<void>;
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region src/git-ignore.d.ts
|
|
163
|
-
declare function setupGitIgnore(ctx: BambooContext): void;
|
|
164
|
-
//#endregion
|
|
165
|
-
//#region src/logstream.d.ts
|
|
166
|
-
interface LogstreamOptions {
|
|
167
|
-
cwd?: string;
|
|
168
|
-
logfile?: string;
|
|
169
|
-
}
|
|
170
|
-
declare const setLogStream: (options: LogstreamOptions) => {
|
|
171
|
-
end(): void;
|
|
172
|
-
[Symbol.dispose]: () => void;
|
|
173
|
-
};
|
|
174
|
-
//#endregion
|
|
175
|
-
//#region src/parse-dependency.d.ts
|
|
176
|
-
declare function parseDependency(fileOrGlob: string): Message | null;
|
|
177
|
-
//#endregion
|
|
178
|
-
//#region src/setup-config.d.ts
|
|
179
|
-
type SetupOptions = Partial<Config> & {
|
|
180
|
-
force?: boolean;
|
|
181
|
-
};
|
|
182
|
-
declare function setupConfig(cwd: string, opts?: SetupOptions): Promise<void>;
|
|
183
|
-
declare function setupPostcss(cwd: string): Promise<void>;
|
|
184
|
-
//#endregion
|
|
185
|
-
//#region src/spec.d.ts
|
|
186
|
-
interface SpecOptions {
|
|
187
|
-
outdir?: string;
|
|
188
|
-
}
|
|
189
|
-
declare function spec(ctx: BambooContext, options: SpecOptions): Promise<SpecFile[]>;
|
|
190
|
-
//#endregion
|
|
191
|
-
export { BambooContext, Builder, type CssGenOptions, analyze, buildInfo, codegen, cssgen, debug, generate, loadConfigAndCreateContext, parseDependency, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling };
|