@bamboocss/dev 1.11.1 → 1.11.3
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/bin.js +1 -1
- package/dist/chunk-C2EiDwsr.cjs +35 -0
- package/dist/cli-default.cjs +7512 -0
- package/dist/cli-default.d.cts +1 -0
- package/dist/cli-default.d.mts +1 -0
- package/dist/cli-default.mjs +7322 -9871
- package/dist/cli-main-DdGGICwA.mjs +404 -0
- package/dist/cli-main.cjs +381 -0
- package/dist/cli-main.d.cts +4 -0
- package/dist/cli-main.d.mts +4 -0
- package/dist/cli-main.mjs +2 -524
- package/dist/errors-BhazEH_W.cjs +125 -0
- package/dist/errors-DyRfueHt.mjs +119 -0
- package/dist/errors.cjs +3 -0
- package/dist/errors.d.cts +4 -0
- package/dist/errors.d.mts +4 -0
- package/dist/errors.mjs +2 -137
- package/dist/index.cjs +89 -0
- package/dist/index.d.cts +29 -0
- package/dist/index.d.mts +29 -0
- package/dist/index.mjs +34 -62
- package/dist/interactive-BD639MCr.cjs +134 -0
- package/dist/interactive-D22006je.mjs +115 -0
- package/dist/interactive.cjs +3 -0
- package/dist/interactive.d.cts +11 -0
- package/dist/interactive.d.mts +11 -0
- package/dist/interactive.mjs +2 -94
- package/dist/presets.cjs +7 -0
- package/dist/presets.d.cts +2 -0
- package/dist/presets.d.mts +2 -0
- package/dist/presets.mjs +3 -4
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +107 -0
- package/dist/types.d.mts +107 -0
- package/dist/types.mjs +1 -0
- package/package.json +20 -20
- package/dist/cli-default.js +0 -10022
- package/dist/cli-main.js +0 -537
- package/dist/errors.js +0 -162
- package/dist/index.js +0 -140
- package/dist/interactive.js +0 -129
- package/dist/presets.js +0 -37
- package/dist/types.js +0 -18
|
@@ -0,0 +1,134 @@
|
|
|
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.3";
|
|
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
|
+
});
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as p from "@clack/prompts";
|
|
2
|
+
//#region package.json
|
|
3
|
+
var name = "@bamboocss/dev";
|
|
4
|
+
var version = "1.11.3";
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,11 @@
|
|
|
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.mjs
CHANGED
|
@@ -1,94 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// package.json
|
|
5
|
-
var version = "1.11.1";
|
|
6
|
-
|
|
7
|
-
// src/interactive.ts
|
|
8
|
-
var interactive = async () => {
|
|
9
|
-
p.intro(`bamboo v${version}`);
|
|
10
|
-
const initFlags = await p.group(
|
|
11
|
-
{
|
|
12
|
-
usePostcss: () => p.select({
|
|
13
|
-
message: "Would you like to use PostCSS ?",
|
|
14
|
-
initialValue: "yes",
|
|
15
|
-
options: [
|
|
16
|
-
{ value: "yes", label: "Yes" },
|
|
17
|
-
{ value: "no", label: "No" }
|
|
18
|
-
]
|
|
19
|
-
}),
|
|
20
|
-
useMjsExtension: () => p.select({
|
|
21
|
-
message: "Use the mjs extension ?",
|
|
22
|
-
initialValue: "yes",
|
|
23
|
-
options: [
|
|
24
|
-
{ value: "yes", label: "Yes" },
|
|
25
|
-
{ value: "no", label: "No" }
|
|
26
|
-
]
|
|
27
|
-
}),
|
|
28
|
-
jsxOptions: () => p.group({
|
|
29
|
-
styleProps: () => p.select({
|
|
30
|
-
message: "Would you like to use JSX Style Props ?",
|
|
31
|
-
initialValue: "yes",
|
|
32
|
-
options: [
|
|
33
|
-
{ value: "yes", label: "Yes" },
|
|
34
|
-
{ value: "no", label: "No" }
|
|
35
|
-
]
|
|
36
|
-
}),
|
|
37
|
-
jsxFramework: () => p.select({
|
|
38
|
-
message: "What JSX framework?",
|
|
39
|
-
initialValue: "react",
|
|
40
|
-
options: [
|
|
41
|
-
{ value: "react", label: "React" },
|
|
42
|
-
{ value: "vue", label: "Vue" },
|
|
43
|
-
{ value: "solid", label: "Solid" },
|
|
44
|
-
{ value: "qwik", label: "Qwik" }
|
|
45
|
-
]
|
|
46
|
-
})
|
|
47
|
-
}),
|
|
48
|
-
whatSyntax: () => p.select({
|
|
49
|
-
message: "What css syntax would you like to use?",
|
|
50
|
-
initialValue: "object",
|
|
51
|
-
options: [
|
|
52
|
-
{ value: "object-literal", label: "Object" },
|
|
53
|
-
{ value: "template-literal", label: "Template literal" }
|
|
54
|
-
]
|
|
55
|
-
}),
|
|
56
|
-
withStrictTokens: () => p.select({
|
|
57
|
-
message: "Use strict tokens to enforce full type-safety?",
|
|
58
|
-
initialValue: "no",
|
|
59
|
-
options: [
|
|
60
|
-
{ value: "yes", label: "Yes" },
|
|
61
|
-
{ value: "no", label: "No" }
|
|
62
|
-
]
|
|
63
|
-
}),
|
|
64
|
-
shouldUpdateGitignore: () => p.select({
|
|
65
|
-
message: "Update gitignore?",
|
|
66
|
-
initialValue: "yes",
|
|
67
|
-
options: [
|
|
68
|
-
{ value: "yes", label: "Yes" },
|
|
69
|
-
{ value: "no", label: "No" }
|
|
70
|
-
]
|
|
71
|
-
})
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
// On Cancel callback that wraps the group
|
|
75
|
-
// So if the user cancels one of the prompts in the group this function will be called
|
|
76
|
-
onCancel: () => {
|
|
77
|
-
p.cancel("Operation cancelled.");
|
|
78
|
-
process.exit(0);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
p.outro("Let's get started! \u{1F43C}");
|
|
83
|
-
return {
|
|
84
|
-
postcss: initFlags.usePostcss === "yes",
|
|
85
|
-
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
86
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
87
|
-
syntax: initFlags.whatSyntax,
|
|
88
|
-
strictTokens: initFlags.withStrictTokens === "yes",
|
|
89
|
-
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
export {
|
|
93
|
-
interactive
|
|
94
|
-
};
|
|
1
|
+
import { t as interactive } from "./interactive-D22006je.mjs";
|
|
2
|
+
export { interactive };
|
package/dist/presets.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-C2EiDwsr.cjs");
|
|
2
|
+
let _bamboocss_preset_bamboo = require("@bamboocss/preset-bamboo");
|
|
3
|
+
_bamboocss_preset_bamboo = require_chunk.__toESM(_bamboocss_preset_bamboo);
|
|
4
|
+
//#region src/presets.ts
|
|
5
|
+
var presets_default = _bamboocss_preset_bamboo.default;
|
|
6
|
+
//#endregion
|
|
7
|
+
module.exports = presets_default;
|
package/dist/presets.mjs
CHANGED
package/dist/types.cjs
ADDED
|
File without changes
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|