@bamboocss/dev 1.15.0 → 1.16.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 +3 -54
- package/dist/cli-default.mjs +3 -54
- package/dist/cli-main.cjs +4 -55
- package/dist/cli-main.mjs +4 -55
- package/dist/interactive.cjs +1 -49
- package/dist/interactive.d.cts +0 -2
- package/dist/interactive.d.mts +0 -2
- package/dist/interactive.mjs +1 -49
- package/dist/{mcp-init-rogDO3mj.cjs → mcp-init-DYkyNN9g.cjs} +1 -1
- package/dist/{mcp-init-CTzvbehL.mjs → mcp-init-DjhpDk7n.mjs} +1 -1
- package/dist/{package-CeKKtbeb.mjs → package-BnsdX-Rn.mjs} +1 -1
- package/dist/{package-SLEsqabY.cjs → package-DCcx3rAQ.cjs} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +9 -9
package/dist/cli-default.cjs
CHANGED
|
@@ -7627,7 +7627,7 @@ function isLocError(error) {
|
|
|
7627
7627
|
//#endregion
|
|
7628
7628
|
//#region package.json
|
|
7629
7629
|
var name = "@bamboocss/dev";
|
|
7630
|
-
var version = "1.
|
|
7630
|
+
var version = "1.16.0";
|
|
7631
7631
|
//#endregion
|
|
7632
7632
|
//#region src/interactive.ts
|
|
7633
7633
|
const interactive = async () => {
|
|
@@ -7655,52 +7655,6 @@ const interactive = async () => {
|
|
|
7655
7655
|
label: "No"
|
|
7656
7656
|
}]
|
|
7657
7657
|
}),
|
|
7658
|
-
jsxOptions: () => _clack_prompts.group({
|
|
7659
|
-
styleProps: () => _clack_prompts.select({
|
|
7660
|
-
message: "Would you like to use JSX Style Props ?",
|
|
7661
|
-
initialValue: "yes",
|
|
7662
|
-
options: [{
|
|
7663
|
-
value: "yes",
|
|
7664
|
-
label: "Yes"
|
|
7665
|
-
}, {
|
|
7666
|
-
value: "no",
|
|
7667
|
-
label: "No"
|
|
7668
|
-
}]
|
|
7669
|
-
}),
|
|
7670
|
-
jsxFramework: () => _clack_prompts.select({
|
|
7671
|
-
message: "What JSX framework?",
|
|
7672
|
-
initialValue: "react",
|
|
7673
|
-
options: [
|
|
7674
|
-
{
|
|
7675
|
-
value: "react",
|
|
7676
|
-
label: "React"
|
|
7677
|
-
},
|
|
7678
|
-
{
|
|
7679
|
-
value: "vue",
|
|
7680
|
-
label: "Vue"
|
|
7681
|
-
},
|
|
7682
|
-
{
|
|
7683
|
-
value: "solid",
|
|
7684
|
-
label: "Solid"
|
|
7685
|
-
},
|
|
7686
|
-
{
|
|
7687
|
-
value: "qwik",
|
|
7688
|
-
label: "Qwik"
|
|
7689
|
-
}
|
|
7690
|
-
]
|
|
7691
|
-
})
|
|
7692
|
-
}),
|
|
7693
|
-
whatSyntax: () => _clack_prompts.select({
|
|
7694
|
-
message: "What css syntax would you like to use?",
|
|
7695
|
-
initialValue: "object",
|
|
7696
|
-
options: [{
|
|
7697
|
-
value: "object-literal",
|
|
7698
|
-
label: "Object"
|
|
7699
|
-
}, {
|
|
7700
|
-
value: "template-literal",
|
|
7701
|
-
label: "Template literal"
|
|
7702
|
-
}]
|
|
7703
|
-
}),
|
|
7704
7658
|
withStrictTokens: () => _clack_prompts.select({
|
|
7705
7659
|
message: "Use strict tokens to enforce full type-safety?",
|
|
7706
7660
|
initialValue: "no",
|
|
@@ -7731,8 +7685,6 @@ const interactive = async () => {
|
|
|
7731
7685
|
return {
|
|
7732
7686
|
postcss: initFlags.usePostcss === "yes",
|
|
7733
7687
|
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
7734
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
7735
|
-
syntax: initFlags.whatSyntax,
|
|
7736
7688
|
strictTokens: initFlags.withStrictTokens === "yes",
|
|
7737
7689
|
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
7738
7690
|
};
|
|
@@ -7742,14 +7694,14 @@ const interactive = async () => {
|
|
|
7742
7694
|
async function main() {
|
|
7743
7695
|
const cli = (0, cac.cac)("bamboo");
|
|
7744
7696
|
const cwd = process.cwd();
|
|
7745
|
-
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--
|
|
7697
|
+
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-tokens", "Using strictTokens: true").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
7746
7698
|
let options = {};
|
|
7747
7699
|
if (initFlags.interactive) options = await interactive();
|
|
7748
7700
|
const flags = {
|
|
7749
7701
|
...initFlags,
|
|
7750
7702
|
...options
|
|
7751
7703
|
};
|
|
7752
|
-
const { force, postcss, silent, gitignore, outExtension,
|
|
7704
|
+
const { force, postcss, silent, gitignore, outExtension, config: configPath } = flags;
|
|
7753
7705
|
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
7754
7706
|
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
7755
7707
|
const stream = (0, _bamboocss_node.setLogStream)({
|
|
@@ -7762,8 +7714,6 @@ async function main() {
|
|
|
7762
7714
|
await (0, _bamboocss_node.setupConfig)(cwd, (0, _bamboocss_shared.compact)({
|
|
7763
7715
|
force,
|
|
7764
7716
|
outExtension,
|
|
7765
|
-
jsxFramework,
|
|
7766
|
-
syntax,
|
|
7767
7717
|
outdir: flags.outdir
|
|
7768
7718
|
}));
|
|
7769
7719
|
const ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
@@ -8022,7 +7972,6 @@ async function main() {
|
|
|
8022
7972
|
exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
|
|
8023
7973
|
if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
|
|
8024
7974
|
if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
|
|
8025
|
-
if (!ctx.patterns.isEmpty()) exports.push(["./jsx", createEntry("jsx")]);
|
|
8026
7975
|
if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
|
|
8027
7976
|
const stylesDir = createDir("styles.css");
|
|
8028
7977
|
const identity = {
|
package/dist/cli-default.mjs
CHANGED
|
@@ -7630,7 +7630,7 @@ function isLocError(error) {
|
|
|
7630
7630
|
//#endregion
|
|
7631
7631
|
//#region package.json
|
|
7632
7632
|
var name = "@bamboocss/dev";
|
|
7633
|
-
var version = "1.
|
|
7633
|
+
var version = "1.16.0";
|
|
7634
7634
|
//#endregion
|
|
7635
7635
|
//#region src/interactive.ts
|
|
7636
7636
|
const interactive = async () => {
|
|
@@ -7658,52 +7658,6 @@ const interactive = async () => {
|
|
|
7658
7658
|
label: "No"
|
|
7659
7659
|
}]
|
|
7660
7660
|
}),
|
|
7661
|
-
jsxOptions: () => p.group({
|
|
7662
|
-
styleProps: () => p.select({
|
|
7663
|
-
message: "Would you like to use JSX Style Props ?",
|
|
7664
|
-
initialValue: "yes",
|
|
7665
|
-
options: [{
|
|
7666
|
-
value: "yes",
|
|
7667
|
-
label: "Yes"
|
|
7668
|
-
}, {
|
|
7669
|
-
value: "no",
|
|
7670
|
-
label: "No"
|
|
7671
|
-
}]
|
|
7672
|
-
}),
|
|
7673
|
-
jsxFramework: () => p.select({
|
|
7674
|
-
message: "What JSX framework?",
|
|
7675
|
-
initialValue: "react",
|
|
7676
|
-
options: [
|
|
7677
|
-
{
|
|
7678
|
-
value: "react",
|
|
7679
|
-
label: "React"
|
|
7680
|
-
},
|
|
7681
|
-
{
|
|
7682
|
-
value: "vue",
|
|
7683
|
-
label: "Vue"
|
|
7684
|
-
},
|
|
7685
|
-
{
|
|
7686
|
-
value: "solid",
|
|
7687
|
-
label: "Solid"
|
|
7688
|
-
},
|
|
7689
|
-
{
|
|
7690
|
-
value: "qwik",
|
|
7691
|
-
label: "Qwik"
|
|
7692
|
-
}
|
|
7693
|
-
]
|
|
7694
|
-
})
|
|
7695
|
-
}),
|
|
7696
|
-
whatSyntax: () => p.select({
|
|
7697
|
-
message: "What css syntax would you like to use?",
|
|
7698
|
-
initialValue: "object",
|
|
7699
|
-
options: [{
|
|
7700
|
-
value: "object-literal",
|
|
7701
|
-
label: "Object"
|
|
7702
|
-
}, {
|
|
7703
|
-
value: "template-literal",
|
|
7704
|
-
label: "Template literal"
|
|
7705
|
-
}]
|
|
7706
|
-
}),
|
|
7707
7661
|
withStrictTokens: () => p.select({
|
|
7708
7662
|
message: "Use strict tokens to enforce full type-safety?",
|
|
7709
7663
|
initialValue: "no",
|
|
@@ -7734,8 +7688,6 @@ const interactive = async () => {
|
|
|
7734
7688
|
return {
|
|
7735
7689
|
postcss: initFlags.usePostcss === "yes",
|
|
7736
7690
|
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
7737
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
7738
|
-
syntax: initFlags.whatSyntax,
|
|
7739
7691
|
strictTokens: initFlags.withStrictTokens === "yes",
|
|
7740
7692
|
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
7741
7693
|
};
|
|
@@ -7745,14 +7697,14 @@ const interactive = async () => {
|
|
|
7745
7697
|
async function main() {
|
|
7746
7698
|
const cli = cac("bamboo");
|
|
7747
7699
|
const cwd = process.cwd();
|
|
7748
|
-
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--
|
|
7700
|
+
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-tokens", "Using strictTokens: true").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
7749
7701
|
let options = {};
|
|
7750
7702
|
if (initFlags.interactive) options = await interactive();
|
|
7751
7703
|
const flags = {
|
|
7752
7704
|
...initFlags,
|
|
7753
7705
|
...options
|
|
7754
7706
|
};
|
|
7755
|
-
const { force, postcss, silent, gitignore, outExtension,
|
|
7707
|
+
const { force, postcss, silent, gitignore, outExtension, config: configPath } = flags;
|
|
7756
7708
|
const cwd = resolve(flags.cwd ?? "");
|
|
7757
7709
|
if (silent) logger.level = "silent";
|
|
7758
7710
|
const stream = setLogStream({
|
|
@@ -7765,8 +7717,6 @@ async function main() {
|
|
|
7765
7717
|
await setupConfig(cwd, compact({
|
|
7766
7718
|
force,
|
|
7767
7719
|
outExtension,
|
|
7768
|
-
jsxFramework,
|
|
7769
|
-
syntax,
|
|
7770
7720
|
outdir: flags.outdir
|
|
7771
7721
|
}));
|
|
7772
7722
|
const ctx = await loadConfigAndCreateContext({
|
|
@@ -8025,7 +7975,6 @@ async function main() {
|
|
|
8025
7975
|
exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
|
|
8026
7976
|
if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
|
|
8027
7977
|
if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
|
|
8028
|
-
if (!ctx.patterns.isEmpty()) exports.push(["./jsx", createEntry("jsx")]);
|
|
8029
7978
|
if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
|
|
8030
7979
|
const stylesDir = createDir("styles.css");
|
|
8031
7980
|
const identity = {
|
package/dist/cli-main.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_package = require("./package-
|
|
2
|
+
const require_package = require("./package-DCcx3rAQ.cjs");
|
|
3
3
|
let _bamboocss_logger = require("@bamboocss/logger");
|
|
4
4
|
let _bamboocss_node = require("@bamboocss/node");
|
|
5
5
|
let _bamboocss_shared = require("@bamboocss/shared");
|
|
@@ -33,52 +33,6 @@ const interactive = async () => {
|
|
|
33
33
|
label: "No"
|
|
34
34
|
}]
|
|
35
35
|
}),
|
|
36
|
-
jsxOptions: () => _clack_prompts.group({
|
|
37
|
-
styleProps: () => _clack_prompts.select({
|
|
38
|
-
message: "Would you like to use JSX Style Props ?",
|
|
39
|
-
initialValue: "yes",
|
|
40
|
-
options: [{
|
|
41
|
-
value: "yes",
|
|
42
|
-
label: "Yes"
|
|
43
|
-
}, {
|
|
44
|
-
value: "no",
|
|
45
|
-
label: "No"
|
|
46
|
-
}]
|
|
47
|
-
}),
|
|
48
|
-
jsxFramework: () => _clack_prompts.select({
|
|
49
|
-
message: "What JSX framework?",
|
|
50
|
-
initialValue: "react",
|
|
51
|
-
options: [
|
|
52
|
-
{
|
|
53
|
-
value: "react",
|
|
54
|
-
label: "React"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
value: "vue",
|
|
58
|
-
label: "Vue"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
value: "solid",
|
|
62
|
-
label: "Solid"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
value: "qwik",
|
|
66
|
-
label: "Qwik"
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
})
|
|
70
|
-
}),
|
|
71
|
-
whatSyntax: () => _clack_prompts.select({
|
|
72
|
-
message: "What css syntax would you like to use?",
|
|
73
|
-
initialValue: "object",
|
|
74
|
-
options: [{
|
|
75
|
-
value: "object-literal",
|
|
76
|
-
label: "Object"
|
|
77
|
-
}, {
|
|
78
|
-
value: "template-literal",
|
|
79
|
-
label: "Template literal"
|
|
80
|
-
}]
|
|
81
|
-
}),
|
|
82
36
|
withStrictTokens: () => _clack_prompts.select({
|
|
83
37
|
message: "Use strict tokens to enforce full type-safety?",
|
|
84
38
|
initialValue: "no",
|
|
@@ -109,8 +63,6 @@ const interactive = async () => {
|
|
|
109
63
|
return {
|
|
110
64
|
postcss: initFlags.usePostcss === "yes",
|
|
111
65
|
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
112
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
113
|
-
syntax: initFlags.whatSyntax,
|
|
114
66
|
strictTokens: initFlags.withStrictTokens === "yes",
|
|
115
67
|
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
116
68
|
};
|
|
@@ -120,14 +72,14 @@ const interactive = async () => {
|
|
|
120
72
|
async function main() {
|
|
121
73
|
const cli = (0, cac.cac)("bamboo");
|
|
122
74
|
const cwd = process.cwd();
|
|
123
|
-
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--
|
|
75
|
+
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-tokens", "Using strictTokens: true").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
124
76
|
let options = {};
|
|
125
77
|
if (initFlags.interactive) options = await interactive();
|
|
126
78
|
const flags = {
|
|
127
79
|
...initFlags,
|
|
128
80
|
...options
|
|
129
81
|
};
|
|
130
|
-
const { force, postcss, silent, gitignore, outExtension,
|
|
82
|
+
const { force, postcss, silent, gitignore, outExtension, config: configPath } = flags;
|
|
131
83
|
const cwd = (0, path.resolve)(flags.cwd ?? "");
|
|
132
84
|
if (silent) _bamboocss_logger.logger.level = "silent";
|
|
133
85
|
const stream = (0, _bamboocss_node.setLogStream)({
|
|
@@ -140,8 +92,6 @@ async function main() {
|
|
|
140
92
|
await (0, _bamboocss_node.setupConfig)(cwd, (0, _bamboocss_shared.compact)({
|
|
141
93
|
force,
|
|
142
94
|
outExtension,
|
|
143
|
-
jsxFramework,
|
|
144
|
-
syntax,
|
|
145
95
|
outdir: flags.outdir
|
|
146
96
|
}));
|
|
147
97
|
const ctx = await (0, _bamboocss_node.loadConfigAndCreateContext)({
|
|
@@ -400,7 +350,6 @@ async function main() {
|
|
|
400
350
|
exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
|
|
401
351
|
if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
|
|
402
352
|
if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
|
|
403
|
-
if (!ctx.patterns.isEmpty()) exports.push(["./jsx", createEntry("jsx")]);
|
|
404
353
|
if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
|
|
405
354
|
const stylesDir = createDir("styles.css");
|
|
406
355
|
const identity = {
|
|
@@ -463,7 +412,7 @@ async function main() {
|
|
|
463
412
|
process.exitCode = 1;
|
|
464
413
|
});
|
|
465
414
|
cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
|
|
466
|
-
const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-
|
|
415
|
+
const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-DYkyNN9g.cjs"));
|
|
467
416
|
const resolvedCwd = (0, path.resolve)(mcpInitFlags.cwd ?? cwd);
|
|
468
417
|
let clients;
|
|
469
418
|
if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
|
package/dist/cli-main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as version } from "./package-
|
|
1
|
+
import { t as version } from "./package-BnsdX-Rn.mjs";
|
|
2
2
|
import { logger } from "@bamboocss/logger";
|
|
3
3
|
import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, setupPostcss, spec, startProfiling } from "@bamboocss/node";
|
|
4
4
|
import { compact } from "@bamboocss/shared";
|
|
@@ -31,52 +31,6 @@ const interactive = async () => {
|
|
|
31
31
|
label: "No"
|
|
32
32
|
}]
|
|
33
33
|
}),
|
|
34
|
-
jsxOptions: () => p.group({
|
|
35
|
-
styleProps: () => p.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: () => p.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: () => p.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
34
|
withStrictTokens: () => p.select({
|
|
81
35
|
message: "Use strict tokens to enforce full type-safety?",
|
|
82
36
|
initialValue: "no",
|
|
@@ -107,8 +61,6 @@ const interactive = async () => {
|
|
|
107
61
|
return {
|
|
108
62
|
postcss: initFlags.usePostcss === "yes",
|
|
109
63
|
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
110
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
111
|
-
syntax: initFlags.whatSyntax,
|
|
112
64
|
strictTokens: initFlags.withStrictTokens === "yes",
|
|
113
65
|
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
114
66
|
};
|
|
@@ -118,14 +70,14 @@ const interactive = async () => {
|
|
|
118
70
|
async function main() {
|
|
119
71
|
const cli = cac("bamboo");
|
|
120
72
|
const cwd = process.cwd();
|
|
121
|
-
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--
|
|
73
|
+
cli.command("init", "Initialize the bamboo config file").option("-i, --interactive", "Run in interactive mode", { default: false }).option("-f, --force", "Force overwrite existing config file").option("-p, --postcss", "Emit postcss config file").option("-c, --config <path>", "Path to bamboo config file").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--silent", "Suppress all messages except errors").option("--no-gitignore", "Don't update the .gitignore").option("--no-codegen", "Don't run the codegen logic").option("--out-extension <ext>", "The extension of the generated js files (default: 'mjs')").option("--outdir <dir>", "The output directory for the generated files").option("--strict-tokens", "Using strictTokens: true").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
122
74
|
let options = {};
|
|
123
75
|
if (initFlags.interactive) options = await interactive();
|
|
124
76
|
const flags = {
|
|
125
77
|
...initFlags,
|
|
126
78
|
...options
|
|
127
79
|
};
|
|
128
|
-
const { force, postcss, silent, gitignore, outExtension,
|
|
80
|
+
const { force, postcss, silent, gitignore, outExtension, config: configPath } = flags;
|
|
129
81
|
const cwd = resolve(flags.cwd ?? "");
|
|
130
82
|
if (silent) logger.level = "silent";
|
|
131
83
|
const stream = setLogStream({
|
|
@@ -138,8 +90,6 @@ async function main() {
|
|
|
138
90
|
await setupConfig(cwd, compact({
|
|
139
91
|
force,
|
|
140
92
|
outExtension,
|
|
141
|
-
jsxFramework,
|
|
142
|
-
syntax,
|
|
143
93
|
outdir: flags.outdir
|
|
144
94
|
}));
|
|
145
95
|
const ctx = await loadConfigAndCreateContext({
|
|
@@ -398,7 +348,6 @@ async function main() {
|
|
|
398
348
|
exports.push(["./css", createEntry("css")], ["./tokens", createEntry("tokens")], ["./types", createEntry("types")]);
|
|
399
349
|
if (!ctx.patterns.isEmpty()) exports.push(["./patterns", createEntry("patterns")]);
|
|
400
350
|
if (!ctx.recipes.isEmpty()) exports.push(["./recipes", createEntry("recipes")]);
|
|
401
|
-
if (!ctx.patterns.isEmpty()) exports.push(["./jsx", createEntry("jsx")]);
|
|
402
351
|
if (ctx.config.themes) exports.push(["./themes", createEntry("themes")]);
|
|
403
352
|
const stylesDir = createDir("styles.css");
|
|
404
353
|
const identity = {
|
|
@@ -461,7 +410,7 @@ async function main() {
|
|
|
461
410
|
process.exitCode = 1;
|
|
462
411
|
});
|
|
463
412
|
cli.command("init-mcp", "Initialize MCP configuration for AI clients").option("--cwd <cwd>", "Current working directory", { default: cwd }).option("--client <clients>", "AI clients to configure (claude, cursor, vscode, windsurf, codex)").action(async (mcpInitFlags) => {
|
|
464
|
-
const { initMcpConfig } = await import("./mcp-init-
|
|
413
|
+
const { initMcpConfig } = await import("./mcp-init-DjhpDk7n.mjs");
|
|
465
414
|
const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
|
|
466
415
|
let clients;
|
|
467
416
|
if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
|
package/dist/interactive.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
let _clack_prompts = require("@clack/prompts");
|
|
25
25
|
_clack_prompts = __toESM(_clack_prompts);
|
|
26
26
|
//#region package.json
|
|
27
|
-
var version = "1.
|
|
27
|
+
var version = "1.16.0";
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/interactive.ts
|
|
30
30
|
const interactive = async () => {
|
|
@@ -52,52 +52,6 @@ const interactive = async () => {
|
|
|
52
52
|
label: "No"
|
|
53
53
|
}]
|
|
54
54
|
}),
|
|
55
|
-
jsxOptions: () => _clack_prompts.group({
|
|
56
|
-
styleProps: () => _clack_prompts.select({
|
|
57
|
-
message: "Would you like to use JSX Style Props ?",
|
|
58
|
-
initialValue: "yes",
|
|
59
|
-
options: [{
|
|
60
|
-
value: "yes",
|
|
61
|
-
label: "Yes"
|
|
62
|
-
}, {
|
|
63
|
-
value: "no",
|
|
64
|
-
label: "No"
|
|
65
|
-
}]
|
|
66
|
-
}),
|
|
67
|
-
jsxFramework: () => _clack_prompts.select({
|
|
68
|
-
message: "What JSX framework?",
|
|
69
|
-
initialValue: "react",
|
|
70
|
-
options: [
|
|
71
|
-
{
|
|
72
|
-
value: "react",
|
|
73
|
-
label: "React"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
value: "vue",
|
|
77
|
-
label: "Vue"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
value: "solid",
|
|
81
|
-
label: "Solid"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
value: "qwik",
|
|
85
|
-
label: "Qwik"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
})
|
|
89
|
-
}),
|
|
90
|
-
whatSyntax: () => _clack_prompts.select({
|
|
91
|
-
message: "What css syntax would you like to use?",
|
|
92
|
-
initialValue: "object",
|
|
93
|
-
options: [{
|
|
94
|
-
value: "object-literal",
|
|
95
|
-
label: "Object"
|
|
96
|
-
}, {
|
|
97
|
-
value: "template-literal",
|
|
98
|
-
label: "Template literal"
|
|
99
|
-
}]
|
|
100
|
-
}),
|
|
101
55
|
withStrictTokens: () => _clack_prompts.select({
|
|
102
56
|
message: "Use strict tokens to enforce full type-safety?",
|
|
103
57
|
initialValue: "no",
|
|
@@ -128,8 +82,6 @@ const interactive = async () => {
|
|
|
128
82
|
return {
|
|
129
83
|
postcss: initFlags.usePostcss === "yes",
|
|
130
84
|
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
131
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
132
|
-
syntax: initFlags.whatSyntax,
|
|
133
85
|
strictTokens: initFlags.withStrictTokens === "yes",
|
|
134
86
|
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
135
87
|
};
|
package/dist/interactive.d.cts
CHANGED
package/dist/interactive.d.mts
CHANGED
package/dist/interactive.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as p from "@clack/prompts";
|
|
2
2
|
//#region package.json
|
|
3
|
-
var version = "1.
|
|
3
|
+
var version = "1.16.0";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/interactive.ts
|
|
6
6
|
const interactive = async () => {
|
|
@@ -28,52 +28,6 @@ const interactive = async () => {
|
|
|
28
28
|
label: "No"
|
|
29
29
|
}]
|
|
30
30
|
}),
|
|
31
|
-
jsxOptions: () => p.group({
|
|
32
|
-
styleProps: () => p.select({
|
|
33
|
-
message: "Would you like to use JSX Style Props ?",
|
|
34
|
-
initialValue: "yes",
|
|
35
|
-
options: [{
|
|
36
|
-
value: "yes",
|
|
37
|
-
label: "Yes"
|
|
38
|
-
}, {
|
|
39
|
-
value: "no",
|
|
40
|
-
label: "No"
|
|
41
|
-
}]
|
|
42
|
-
}),
|
|
43
|
-
jsxFramework: () => p.select({
|
|
44
|
-
message: "What JSX framework?",
|
|
45
|
-
initialValue: "react",
|
|
46
|
-
options: [
|
|
47
|
-
{
|
|
48
|
-
value: "react",
|
|
49
|
-
label: "React"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
value: "vue",
|
|
53
|
-
label: "Vue"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
value: "solid",
|
|
57
|
-
label: "Solid"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
value: "qwik",
|
|
61
|
-
label: "Qwik"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
})
|
|
65
|
-
}),
|
|
66
|
-
whatSyntax: () => p.select({
|
|
67
|
-
message: "What css syntax would you like to use?",
|
|
68
|
-
initialValue: "object",
|
|
69
|
-
options: [{
|
|
70
|
-
value: "object-literal",
|
|
71
|
-
label: "Object"
|
|
72
|
-
}, {
|
|
73
|
-
value: "template-literal",
|
|
74
|
-
label: "Template literal"
|
|
75
|
-
}]
|
|
76
|
-
}),
|
|
77
31
|
withStrictTokens: () => p.select({
|
|
78
32
|
message: "Use strict tokens to enforce full type-safety?",
|
|
79
33
|
initialValue: "no",
|
|
@@ -104,8 +58,6 @@ const interactive = async () => {
|
|
|
104
58
|
return {
|
|
105
59
|
postcss: initFlags.usePostcss === "yes",
|
|
106
60
|
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
107
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
108
|
-
syntax: initFlags.whatSyntax,
|
|
109
61
|
strictTokens: initFlags.withStrictTokens === "yes",
|
|
110
62
|
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
111
63
|
};
|
|
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
}) : target, mod));
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region package.json
|
|
24
|
-
var version = "1.
|
|
24
|
+
var version = "1.16.0";
|
|
25
25
|
//#endregion
|
|
26
26
|
Object.defineProperty(exports, "__toESM", {
|
|
27
27
|
enumerable: true,
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Config } from "@bamboocss/types";
|
|
2
2
|
|
|
3
3
|
//#region src/types.d.ts
|
|
4
|
-
interface InitCommandFlags extends Pick<Config, '
|
|
4
|
+
interface InitCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch' | 'gitignore' | 'outExtension' | 'outdir'> {
|
|
5
5
|
force?: boolean;
|
|
6
6
|
postcss?: boolean;
|
|
7
7
|
silent?: boolean;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Config } from "@bamboocss/types";
|
|
2
2
|
|
|
3
3
|
//#region src/types.d.ts
|
|
4
|
-
interface InitCommandFlags extends Pick<Config, '
|
|
4
|
+
interface InitCommandFlags extends Pick<Config, 'cwd' | 'poll' | 'watch' | 'gitignore' | 'outExtension' | 'outdir'> {
|
|
5
5
|
force?: boolean;
|
|
6
6
|
postcss?: boolean;
|
|
7
7
|
silent?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/dev",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Build-time, type-safe, zero-runtime CSS-in-JS",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@clack/prompts": "0.11.0",
|
|
56
56
|
"cac": "6.7.14",
|
|
57
|
-
"@bamboocss/logger": "1.
|
|
58
|
-
"@bamboocss/node": "1.
|
|
59
|
-
"@bamboocss/postcss": "1.
|
|
60
|
-
"@bamboocss/preset-bamboo": "1.
|
|
61
|
-
"@bamboocss/preset-base": "1.
|
|
62
|
-
"@bamboocss/shared": "1.
|
|
63
|
-
"@bamboocss/token-dictionary": "1.
|
|
64
|
-
"@bamboocss/types": "1.
|
|
57
|
+
"@bamboocss/logger": "1.16.0",
|
|
58
|
+
"@bamboocss/node": "1.16.0",
|
|
59
|
+
"@bamboocss/postcss": "1.16.0",
|
|
60
|
+
"@bamboocss/preset-bamboo": "1.16.0",
|
|
61
|
+
"@bamboocss/preset-base": "1.16.0",
|
|
62
|
+
"@bamboocss/shared": "1.16.0",
|
|
63
|
+
"@bamboocss/token-dictionary": "1.16.0",
|
|
64
|
+
"@bamboocss/types": "1.16.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/update-notifier": "6.0.8",
|