@bamboocss/dev 1.11.3 → 1.12.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/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-main-DdGGICwA.mjs +0 -404
- package/dist/errors-BhazEH_W.cjs +0 -125
- package/dist/errors-DyRfueHt.mjs +0 -119
- package/dist/interactive-BD639MCr.cjs +0 -134
- package/dist/interactive-D22006je.mjs +0 -115
|
@@ -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.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
|
-
});
|
|
@@ -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.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 };
|