@bamboocss/dev 1.11.4 → 1.12.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/cli-default.cjs +745 -136
- package/dist/cli-default.mjs +633 -4
- package/dist/cli-main.cjs +141 -7
- package/dist/cli-main.mjs +493 -1
- package/dist/errors.cjs +119 -2
- package/dist/errors.mjs +118 -1
- package/dist/index.cjs +0 -1
- package/dist/interactive.cjs +137 -2
- package/dist/interactive.mjs +113 -1
- package/dist/presets.cjs +23 -2
- package/package.json +13 -13
- package/dist/chunk-C2EiDwsr.cjs +0 -35
- package/dist/cli-default.d.cts +0 -1
- package/dist/cli-default.d.mts +0 -1
- package/dist/cli-main-BVVeBGKc.mjs +0 -404
- package/dist/cli-main.d.cts +0 -4
- package/dist/cli-main.d.mts +0 -4
- package/dist/errors-BhazEH_W.cjs +0 -125
- package/dist/errors-DyRfueHt.mjs +0 -119
- package/dist/errors.d.cts +0 -4
- package/dist/errors.d.mts +0 -4
- package/dist/index.d.cts +0 -29
- package/dist/index.d.mts +0 -29
- package/dist/interactive-B0V4rbad.cjs +0 -134
- package/dist/interactive-BJBHyhfI.mjs +0 -115
- package/dist/interactive.d.cts +0 -11
- package/dist/interactive.d.mts +0 -11
- package/dist/presets.d.cts +0 -2
- package/dist/presets.d.mts +0 -2
- package/dist/types.d.cts +0 -107
- package/dist/types.d.mts +0 -107
package/dist/index.d.cts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AnimationStyles, BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, LayerStyles, Parts, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, TextStyles, ThemeVariant, Tokens } from "@bamboocss/types";
|
|
2
|
-
|
|
3
|
-
//#region src/index.d.ts
|
|
4
|
-
declare function defineConfig(config: Config): Config & {
|
|
5
|
-
name: string;
|
|
6
|
-
};
|
|
7
|
-
declare function defineRecipe<T extends RecipeVariantRecord>(config: RecipeConfig<T>): RecipeConfig;
|
|
8
|
-
declare function defineSlotRecipe<S extends string, T extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, T>): SlotRecipeConfig;
|
|
9
|
-
declare function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>;
|
|
10
|
-
declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
|
|
11
|
-
declare function definePreset(preset: Preset): Preset;
|
|
12
|
-
declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
|
|
13
|
-
declare function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject;
|
|
14
|
-
declare function defineGlobalFontface(definition: GlobalFontface): GlobalFontface;
|
|
15
|
-
declare function defineUtility(utility: PropertyConfig): PropertyConfig;
|
|
16
|
-
declare function definePlugin(plugin: BambooPlugin): BambooPlugin;
|
|
17
|
-
declare function defineThemeVariant<T extends ThemeVariant>(theme: T): T;
|
|
18
|
-
declare function defineThemeContract<C extends Partial<Omit<ThemeVariant, 'selector'>>>(_contract: C): <T extends C & ThemeVariant>(theme: T) => T;
|
|
19
|
-
type ProxyValue<T> = {
|
|
20
|
-
<Value>(definition: Value extends T ? Value : T): Value;
|
|
21
|
-
} & { [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value };
|
|
22
|
-
declare const defineTokens: ProxyValue<Tokens>;
|
|
23
|
-
declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
|
|
24
|
-
declare function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles;
|
|
25
|
-
declare function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles;
|
|
26
|
-
declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
|
|
27
|
-
declare function defineAnimationStyles(definition: CompositionStyles['animationStyles']): AnimationStyles;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { type AnimationStyles, type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type LayerStyles, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type TextStyles, type Tokens, defineAnimationStyles, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineParts, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineTextStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
|
package/dist/index.d.mts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AnimationStyles, BambooPlugin, CompositionStyles, Config, CssKeyframes, GlobalFontface, GlobalStyleObject, HooksApiInterface, LayerStyles, Parts, PatternConfig, PatternProperties, Preset, PropertyConfig, RecipeConfig, RecipeVariantRecord, SemanticTokens, SlotRecipeConfig, SlotRecipeVariantRecord, SystemStyleObject, TextStyles, ThemeVariant, Tokens } from "@bamboocss/types";
|
|
2
|
-
|
|
3
|
-
//#region src/index.d.ts
|
|
4
|
-
declare function defineConfig(config: Config): Config & {
|
|
5
|
-
name: string;
|
|
6
|
-
};
|
|
7
|
-
declare function defineRecipe<T extends RecipeVariantRecord>(config: RecipeConfig<T>): RecipeConfig;
|
|
8
|
-
declare function defineSlotRecipe<S extends string, T extends SlotRecipeVariantRecord<S>>(config: SlotRecipeConfig<S, T>): SlotRecipeConfig;
|
|
9
|
-
declare function defineParts<T extends Parts>(parts: T): (config: Partial<Record<keyof T, SystemStyleObject>>) => Partial<Record<keyof T, SystemStyleObject>>;
|
|
10
|
-
declare function definePattern<T extends PatternConfig>(config: T): PatternConfig;
|
|
11
|
-
declare function definePreset(preset: Preset): Preset;
|
|
12
|
-
declare function defineKeyframes(keyframes: CssKeyframes): CssKeyframes;
|
|
13
|
-
declare function defineGlobalStyles(definition: GlobalStyleObject): GlobalStyleObject;
|
|
14
|
-
declare function defineGlobalFontface(definition: GlobalFontface): GlobalFontface;
|
|
15
|
-
declare function defineUtility(utility: PropertyConfig): PropertyConfig;
|
|
16
|
-
declare function definePlugin(plugin: BambooPlugin): BambooPlugin;
|
|
17
|
-
declare function defineThemeVariant<T extends ThemeVariant>(theme: T): T;
|
|
18
|
-
declare function defineThemeContract<C extends Partial<Omit<ThemeVariant, 'selector'>>>(_contract: C): <T extends C & ThemeVariant>(theme: T) => T;
|
|
19
|
-
type ProxyValue<T> = {
|
|
20
|
-
<Value>(definition: Value extends T ? Value : T): Value;
|
|
21
|
-
} & { [K in keyof Required<T>]: <Value>(definition: Value extends T[K] ? Value : T[K]) => Value };
|
|
22
|
-
declare const defineTokens: ProxyValue<Tokens>;
|
|
23
|
-
declare const defineSemanticTokens: ProxyValue<SemanticTokens>;
|
|
24
|
-
declare function defineTextStyles(definition: CompositionStyles['textStyles']): TextStyles;
|
|
25
|
-
declare function defineLayerStyles(definition: CompositionStyles['layerStyles']): LayerStyles;
|
|
26
|
-
declare function defineStyles(definition: SystemStyleObject): SystemStyleObject;
|
|
27
|
-
declare function defineAnimationStyles(definition: CompositionStyles['animationStyles']): AnimationStyles;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { type AnimationStyles, type CompositionStyles, type Config, type CssKeyframes, type GlobalStyleObject, type HooksApiInterface, type LayerStyles, type PatternConfig, type PatternProperties, type Preset, type PropertyConfig, type RecipeConfig, type RecipeVariantRecord, type SemanticTokens, type SlotRecipeConfig, type SlotRecipeVariantRecord, type SystemStyleObject, type TextStyles, type Tokens, defineAnimationStyles, defineConfig, defineGlobalFontface, defineGlobalStyles, defineKeyframes, defineLayerStyles, defineParts, definePattern, definePlugin, definePreset, defineRecipe, defineSemanticTokens, defineSlotRecipe, defineStyles, defineTextStyles, defineThemeContract, defineThemeVariant, defineTokens, defineUtility };
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-C2EiDwsr.cjs");
|
|
2
|
-
let _clack_prompts = require("@clack/prompts");
|
|
3
|
-
_clack_prompts = require_chunk.__toESM(_clack_prompts);
|
|
4
|
-
//#region package.json
|
|
5
|
-
var name = "@bamboocss/dev";
|
|
6
|
-
var version = "1.11.4";
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/interactive.ts
|
|
9
|
-
const interactive = async () => {
|
|
10
|
-
_clack_prompts.intro(`bamboo v${version}`);
|
|
11
|
-
const initFlags = await _clack_prompts.group({
|
|
12
|
-
usePostcss: () => _clack_prompts.select({
|
|
13
|
-
message: "Would you like to use PostCSS ?",
|
|
14
|
-
initialValue: "yes",
|
|
15
|
-
options: [{
|
|
16
|
-
value: "yes",
|
|
17
|
-
label: "Yes"
|
|
18
|
-
}, {
|
|
19
|
-
value: "no",
|
|
20
|
-
label: "No"
|
|
21
|
-
}]
|
|
22
|
-
}),
|
|
23
|
-
useMjsExtension: () => _clack_prompts.select({
|
|
24
|
-
message: "Use the mjs extension ?",
|
|
25
|
-
initialValue: "yes",
|
|
26
|
-
options: [{
|
|
27
|
-
value: "yes",
|
|
28
|
-
label: "Yes"
|
|
29
|
-
}, {
|
|
30
|
-
value: "no",
|
|
31
|
-
label: "No"
|
|
32
|
-
}]
|
|
33
|
-
}),
|
|
34
|
-
jsxOptions: () => _clack_prompts.group({
|
|
35
|
-
styleProps: () => _clack_prompts.select({
|
|
36
|
-
message: "Would you like to use JSX Style Props ?",
|
|
37
|
-
initialValue: "yes",
|
|
38
|
-
options: [{
|
|
39
|
-
value: "yes",
|
|
40
|
-
label: "Yes"
|
|
41
|
-
}, {
|
|
42
|
-
value: "no",
|
|
43
|
-
label: "No"
|
|
44
|
-
}]
|
|
45
|
-
}),
|
|
46
|
-
jsxFramework: () => _clack_prompts.select({
|
|
47
|
-
message: "What JSX framework?",
|
|
48
|
-
initialValue: "react",
|
|
49
|
-
options: [
|
|
50
|
-
{
|
|
51
|
-
value: "react",
|
|
52
|
-
label: "React"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
value: "vue",
|
|
56
|
-
label: "Vue"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
value: "solid",
|
|
60
|
-
label: "Solid"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
value: "qwik",
|
|
64
|
-
label: "Qwik"
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
})
|
|
68
|
-
}),
|
|
69
|
-
whatSyntax: () => _clack_prompts.select({
|
|
70
|
-
message: "What css syntax would you like to use?",
|
|
71
|
-
initialValue: "object",
|
|
72
|
-
options: [{
|
|
73
|
-
value: "object-literal",
|
|
74
|
-
label: "Object"
|
|
75
|
-
}, {
|
|
76
|
-
value: "template-literal",
|
|
77
|
-
label: "Template literal"
|
|
78
|
-
}]
|
|
79
|
-
}),
|
|
80
|
-
withStrictTokens: () => _clack_prompts.select({
|
|
81
|
-
message: "Use strict tokens to enforce full type-safety?",
|
|
82
|
-
initialValue: "no",
|
|
83
|
-
options: [{
|
|
84
|
-
value: "yes",
|
|
85
|
-
label: "Yes"
|
|
86
|
-
}, {
|
|
87
|
-
value: "no",
|
|
88
|
-
label: "No"
|
|
89
|
-
}]
|
|
90
|
-
}),
|
|
91
|
-
shouldUpdateGitignore: () => _clack_prompts.select({
|
|
92
|
-
message: "Update gitignore?",
|
|
93
|
-
initialValue: "yes",
|
|
94
|
-
options: [{
|
|
95
|
-
value: "yes",
|
|
96
|
-
label: "Yes"
|
|
97
|
-
}, {
|
|
98
|
-
value: "no",
|
|
99
|
-
label: "No"
|
|
100
|
-
}]
|
|
101
|
-
})
|
|
102
|
-
}, { onCancel: () => {
|
|
103
|
-
_clack_prompts.cancel("Operation cancelled.");
|
|
104
|
-
process.exit(0);
|
|
105
|
-
} });
|
|
106
|
-
_clack_prompts.outro("Let's get started! 🐼");
|
|
107
|
-
return {
|
|
108
|
-
postcss: initFlags.usePostcss === "yes",
|
|
109
|
-
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
110
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
111
|
-
syntax: initFlags.whatSyntax,
|
|
112
|
-
strictTokens: initFlags.withStrictTokens === "yes",
|
|
113
|
-
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
//#endregion
|
|
117
|
-
Object.defineProperty(exports, "interactive", {
|
|
118
|
-
enumerable: true,
|
|
119
|
-
get: function() {
|
|
120
|
-
return interactive;
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
Object.defineProperty(exports, "name", {
|
|
124
|
-
enumerable: true,
|
|
125
|
-
get: function() {
|
|
126
|
-
return name;
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
Object.defineProperty(exports, "version", {
|
|
130
|
-
enumerable: true,
|
|
131
|
-
get: function() {
|
|
132
|
-
return version;
|
|
133
|
-
}
|
|
134
|
-
});
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import * as p from "@clack/prompts";
|
|
2
|
-
//#region package.json
|
|
3
|
-
var name = "@bamboocss/dev";
|
|
4
|
-
var version = "1.11.4";
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/interactive.ts
|
|
7
|
-
const interactive = async () => {
|
|
8
|
-
p.intro(`bamboo v${version}`);
|
|
9
|
-
const initFlags = await p.group({
|
|
10
|
-
usePostcss: () => p.select({
|
|
11
|
-
message: "Would you like to use PostCSS ?",
|
|
12
|
-
initialValue: "yes",
|
|
13
|
-
options: [{
|
|
14
|
-
value: "yes",
|
|
15
|
-
label: "Yes"
|
|
16
|
-
}, {
|
|
17
|
-
value: "no",
|
|
18
|
-
label: "No"
|
|
19
|
-
}]
|
|
20
|
-
}),
|
|
21
|
-
useMjsExtension: () => p.select({
|
|
22
|
-
message: "Use the mjs extension ?",
|
|
23
|
-
initialValue: "yes",
|
|
24
|
-
options: [{
|
|
25
|
-
value: "yes",
|
|
26
|
-
label: "Yes"
|
|
27
|
-
}, {
|
|
28
|
-
value: "no",
|
|
29
|
-
label: "No"
|
|
30
|
-
}]
|
|
31
|
-
}),
|
|
32
|
-
jsxOptions: () => p.group({
|
|
33
|
-
styleProps: () => p.select({
|
|
34
|
-
message: "Would you like to use JSX Style Props ?",
|
|
35
|
-
initialValue: "yes",
|
|
36
|
-
options: [{
|
|
37
|
-
value: "yes",
|
|
38
|
-
label: "Yes"
|
|
39
|
-
}, {
|
|
40
|
-
value: "no",
|
|
41
|
-
label: "No"
|
|
42
|
-
}]
|
|
43
|
-
}),
|
|
44
|
-
jsxFramework: () => p.select({
|
|
45
|
-
message: "What JSX framework?",
|
|
46
|
-
initialValue: "react",
|
|
47
|
-
options: [
|
|
48
|
-
{
|
|
49
|
-
value: "react",
|
|
50
|
-
label: "React"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
value: "vue",
|
|
54
|
-
label: "Vue"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
value: "solid",
|
|
58
|
-
label: "Solid"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
value: "qwik",
|
|
62
|
-
label: "Qwik"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
})
|
|
66
|
-
}),
|
|
67
|
-
whatSyntax: () => p.select({
|
|
68
|
-
message: "What css syntax would you like to use?",
|
|
69
|
-
initialValue: "object",
|
|
70
|
-
options: [{
|
|
71
|
-
value: "object-literal",
|
|
72
|
-
label: "Object"
|
|
73
|
-
}, {
|
|
74
|
-
value: "template-literal",
|
|
75
|
-
label: "Template literal"
|
|
76
|
-
}]
|
|
77
|
-
}),
|
|
78
|
-
withStrictTokens: () => p.select({
|
|
79
|
-
message: "Use strict tokens to enforce full type-safety?",
|
|
80
|
-
initialValue: "no",
|
|
81
|
-
options: [{
|
|
82
|
-
value: "yes",
|
|
83
|
-
label: "Yes"
|
|
84
|
-
}, {
|
|
85
|
-
value: "no",
|
|
86
|
-
label: "No"
|
|
87
|
-
}]
|
|
88
|
-
}),
|
|
89
|
-
shouldUpdateGitignore: () => p.select({
|
|
90
|
-
message: "Update gitignore?",
|
|
91
|
-
initialValue: "yes",
|
|
92
|
-
options: [{
|
|
93
|
-
value: "yes",
|
|
94
|
-
label: "Yes"
|
|
95
|
-
}, {
|
|
96
|
-
value: "no",
|
|
97
|
-
label: "No"
|
|
98
|
-
}]
|
|
99
|
-
})
|
|
100
|
-
}, { onCancel: () => {
|
|
101
|
-
p.cancel("Operation cancelled.");
|
|
102
|
-
process.exit(0);
|
|
103
|
-
} });
|
|
104
|
-
p.outro("Let's get started! 🐼");
|
|
105
|
-
return {
|
|
106
|
-
postcss: initFlags.usePostcss === "yes",
|
|
107
|
-
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
108
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
109
|
-
syntax: initFlags.whatSyntax,
|
|
110
|
-
strictTokens: initFlags.withStrictTokens === "yes",
|
|
111
|
-
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
//#endregion
|
|
115
|
-
export { name as n, version as r, interactive as t };
|
package/dist/interactive.d.cts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/interactive.d.ts
|
|
2
|
-
declare const interactive: () => Promise<InitFlags>;
|
|
3
|
-
interface InitFlags {
|
|
4
|
-
postcss: boolean;
|
|
5
|
-
outExtension: string;
|
|
6
|
-
jsxFramework: string;
|
|
7
|
-
syntax: string;
|
|
8
|
-
gitignore: boolean;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { InitFlags, interactive };
|
package/dist/interactive.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/interactive.d.ts
|
|
2
|
-
declare const interactive: () => Promise<InitFlags>;
|
|
3
|
-
interface InitFlags {
|
|
4
|
-
postcss: boolean;
|
|
5
|
-
outExtension: string;
|
|
6
|
-
jsxFramework: string;
|
|
7
|
-
syntax: string;
|
|
8
|
-
gitignore: boolean;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { InitFlags, interactive };
|
package/dist/presets.d.cts
DELETED
package/dist/presets.d.mts
DELETED
package/dist/types.d.cts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Config } from "@bamboocss/types";
|
|
2
|
-
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
interface InitCommandFlags extends Pick<Config, 'jsxFramework' | 'syntax' | 'cwd' | 'poll' | 'watch' | 'gitignore' | 'outExtension' | 'outdir'> {
|
|
5
|
-
force?: boolean;
|
|
6
|
-
postcss?: boolean;
|
|
7
|
-
silent?: boolean;
|
|
8
|
-
interactive?: boolean;
|
|
9
|
-
config?: string;
|
|
10
|
-
logfile?: string;
|
|
11
|
-
codegen?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface CssGenCommandFlags {
|
|
14
|
-
silent?: boolean;
|
|
15
|
-
clean?: boolean;
|
|
16
|
-
outfile?: string;
|
|
17
|
-
minimal?: boolean;
|
|
18
|
-
watch?: boolean;
|
|
19
|
-
poll?: boolean;
|
|
20
|
-
cwd?: string;
|
|
21
|
-
config?: string;
|
|
22
|
-
minify?: boolean;
|
|
23
|
-
lightningcss?: boolean;
|
|
24
|
-
polyfill?: boolean;
|
|
25
|
-
cpuProf?: boolean;
|
|
26
|
-
logfile?: string;
|
|
27
|
-
splitting?: boolean;
|
|
28
|
-
}
|
|
29
|
-
interface StudioCommandFlags extends Pick<Config, 'cwd'> {
|
|
30
|
-
build?: boolean;
|
|
31
|
-
preview?: boolean;
|
|
32
|
-
config?: string;
|
|
33
|
-
outdir?: string;
|
|
34
|
-
port?: string;
|
|
35
|
-
host?: boolean;
|
|
36
|
-
base?: string;
|
|
37
|
-
}
|
|
38
|
-
interface AnalyzeCommandFlags {
|
|
39
|
-
silent?: boolean;
|
|
40
|
-
outfile?: string;
|
|
41
|
-
cwd?: string;
|
|
42
|
-
config?: string;
|
|
43
|
-
scope?: 'token' | 'recipe';
|
|
44
|
-
}
|
|
45
|
-
interface DebugCommandFlags {
|
|
46
|
-
silent?: boolean;
|
|
47
|
-
dry?: boolean;
|
|
48
|
-
outdir?: string;
|
|
49
|
-
cwd?: string;
|
|
50
|
-
config?: string;
|
|
51
|
-
onlyConfig?: boolean;
|
|
52
|
-
cpuProf?: boolean;
|
|
53
|
-
logfile?: string;
|
|
54
|
-
}
|
|
55
|
-
interface ShipCommandFlags {
|
|
56
|
-
silent?: boolean;
|
|
57
|
-
minify?: boolean;
|
|
58
|
-
outfile?: string;
|
|
59
|
-
cwd?: string;
|
|
60
|
-
config?: string;
|
|
61
|
-
watch?: boolean;
|
|
62
|
-
poll?: boolean;
|
|
63
|
-
}
|
|
64
|
-
interface CodegenCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch'> {
|
|
65
|
-
clean?: boolean;
|
|
66
|
-
silent?: boolean;
|
|
67
|
-
config?: string;
|
|
68
|
-
cpuProf?: boolean;
|
|
69
|
-
logfile?: string;
|
|
70
|
-
}
|
|
71
|
-
interface MainCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch'> {
|
|
72
|
-
outdir?: string;
|
|
73
|
-
minify?: boolean;
|
|
74
|
-
config?: string;
|
|
75
|
-
cwd: string;
|
|
76
|
-
preflight?: boolean;
|
|
77
|
-
silent?: boolean;
|
|
78
|
-
exclude?: string[];
|
|
79
|
-
hash?: boolean;
|
|
80
|
-
emitTokensOnly?: boolean;
|
|
81
|
-
lightningcss?: boolean;
|
|
82
|
-
polyfill?: boolean;
|
|
83
|
-
cpuProf?: boolean;
|
|
84
|
-
logfile?: string;
|
|
85
|
-
}
|
|
86
|
-
interface EmitPackageCommandFlags {
|
|
87
|
-
outdir: string;
|
|
88
|
-
silent?: boolean;
|
|
89
|
-
cwd: string;
|
|
90
|
-
base?: string;
|
|
91
|
-
}
|
|
92
|
-
interface McpCommandFlags {
|
|
93
|
-
cwd?: string;
|
|
94
|
-
config?: string;
|
|
95
|
-
}
|
|
96
|
-
interface McpInitCommandFlags {
|
|
97
|
-
cwd?: string;
|
|
98
|
-
client?: string[];
|
|
99
|
-
}
|
|
100
|
-
interface SpecCommandFlags {
|
|
101
|
-
silent?: boolean;
|
|
102
|
-
outdir?: string;
|
|
103
|
-
cwd?: string;
|
|
104
|
-
config?: string;
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
export { AnalyzeCommandFlags, CodegenCommandFlags, CssGenCommandFlags, DebugCommandFlags, EmitPackageCommandFlags, InitCommandFlags, MainCommandFlags, McpCommandFlags, McpInitCommandFlags, ShipCommandFlags, SpecCommandFlags, StudioCommandFlags };
|
package/dist/types.d.mts
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { Config } from "@bamboocss/types";
|
|
2
|
-
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
interface InitCommandFlags extends Pick<Config, 'jsxFramework' | 'syntax' | 'cwd' | 'poll' | 'watch' | 'gitignore' | 'outExtension' | 'outdir'> {
|
|
5
|
-
force?: boolean;
|
|
6
|
-
postcss?: boolean;
|
|
7
|
-
silent?: boolean;
|
|
8
|
-
interactive?: boolean;
|
|
9
|
-
config?: string;
|
|
10
|
-
logfile?: string;
|
|
11
|
-
codegen?: boolean;
|
|
12
|
-
}
|
|
13
|
-
interface CssGenCommandFlags {
|
|
14
|
-
silent?: boolean;
|
|
15
|
-
clean?: boolean;
|
|
16
|
-
outfile?: string;
|
|
17
|
-
minimal?: boolean;
|
|
18
|
-
watch?: boolean;
|
|
19
|
-
poll?: boolean;
|
|
20
|
-
cwd?: string;
|
|
21
|
-
config?: string;
|
|
22
|
-
minify?: boolean;
|
|
23
|
-
lightningcss?: boolean;
|
|
24
|
-
polyfill?: boolean;
|
|
25
|
-
cpuProf?: boolean;
|
|
26
|
-
logfile?: string;
|
|
27
|
-
splitting?: boolean;
|
|
28
|
-
}
|
|
29
|
-
interface StudioCommandFlags extends Pick<Config, 'cwd'> {
|
|
30
|
-
build?: boolean;
|
|
31
|
-
preview?: boolean;
|
|
32
|
-
config?: string;
|
|
33
|
-
outdir?: string;
|
|
34
|
-
port?: string;
|
|
35
|
-
host?: boolean;
|
|
36
|
-
base?: string;
|
|
37
|
-
}
|
|
38
|
-
interface AnalyzeCommandFlags {
|
|
39
|
-
silent?: boolean;
|
|
40
|
-
outfile?: string;
|
|
41
|
-
cwd?: string;
|
|
42
|
-
config?: string;
|
|
43
|
-
scope?: 'token' | 'recipe';
|
|
44
|
-
}
|
|
45
|
-
interface DebugCommandFlags {
|
|
46
|
-
silent?: boolean;
|
|
47
|
-
dry?: boolean;
|
|
48
|
-
outdir?: string;
|
|
49
|
-
cwd?: string;
|
|
50
|
-
config?: string;
|
|
51
|
-
onlyConfig?: boolean;
|
|
52
|
-
cpuProf?: boolean;
|
|
53
|
-
logfile?: string;
|
|
54
|
-
}
|
|
55
|
-
interface ShipCommandFlags {
|
|
56
|
-
silent?: boolean;
|
|
57
|
-
minify?: boolean;
|
|
58
|
-
outfile?: string;
|
|
59
|
-
cwd?: string;
|
|
60
|
-
config?: string;
|
|
61
|
-
watch?: boolean;
|
|
62
|
-
poll?: boolean;
|
|
63
|
-
}
|
|
64
|
-
interface CodegenCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch'> {
|
|
65
|
-
clean?: boolean;
|
|
66
|
-
silent?: boolean;
|
|
67
|
-
config?: string;
|
|
68
|
-
cpuProf?: boolean;
|
|
69
|
-
logfile?: string;
|
|
70
|
-
}
|
|
71
|
-
interface MainCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch'> {
|
|
72
|
-
outdir?: string;
|
|
73
|
-
minify?: boolean;
|
|
74
|
-
config?: string;
|
|
75
|
-
cwd: string;
|
|
76
|
-
preflight?: boolean;
|
|
77
|
-
silent?: boolean;
|
|
78
|
-
exclude?: string[];
|
|
79
|
-
hash?: boolean;
|
|
80
|
-
emitTokensOnly?: boolean;
|
|
81
|
-
lightningcss?: boolean;
|
|
82
|
-
polyfill?: boolean;
|
|
83
|
-
cpuProf?: boolean;
|
|
84
|
-
logfile?: string;
|
|
85
|
-
}
|
|
86
|
-
interface EmitPackageCommandFlags {
|
|
87
|
-
outdir: string;
|
|
88
|
-
silent?: boolean;
|
|
89
|
-
cwd: string;
|
|
90
|
-
base?: string;
|
|
91
|
-
}
|
|
92
|
-
interface McpCommandFlags {
|
|
93
|
-
cwd?: string;
|
|
94
|
-
config?: string;
|
|
95
|
-
}
|
|
96
|
-
interface McpInitCommandFlags {
|
|
97
|
-
cwd?: string;
|
|
98
|
-
client?: string[];
|
|
99
|
-
}
|
|
100
|
-
interface SpecCommandFlags {
|
|
101
|
-
silent?: boolean;
|
|
102
|
-
outdir?: string;
|
|
103
|
-
cwd?: string;
|
|
104
|
-
config?: string;
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
export { AnalyzeCommandFlags, CodegenCommandFlags, CssGenCommandFlags, DebugCommandFlags, EmitPackageCommandFlags, InitCommandFlags, MainCommandFlags, McpCommandFlags, McpInitCommandFlags, ShipCommandFlags, SpecCommandFlags, StudioCommandFlags };
|