@bamboocss/dev 1.48.4 → 1.49.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/chunk-C2EiDwsr.cjs +35 -0
- package/dist/{package-DdkwNIJH.cjs → chunk-CKQMccvm.cjs} +0 -9
- package/dist/cli-default.cjs +26 -7943
- package/dist/cli-default.mjs +20 -7941
- package/dist/cli-main.cjs +8 -57
- package/dist/cli-main.mjs +7 -56
- package/dist/interactive-3v_-qwRH.mjs +54 -0
- package/dist/interactive-BLNeM706.cjs +56 -0
- package/dist/interactive-CMiXGCCK.mjs +54 -0
- package/dist/interactive-CR8If8u4.cjs +56 -0
- package/dist/interactive.cjs +1 -1
- package/dist/interactive.mjs +1 -1
- package/dist/{mcp-init-DrqX-xeg.mjs → mcp-init-D11nkKqS.mjs} +1 -1
- package/dist/{mcp-init-CqMVs7Zx.cjs → mcp-init-DAn6FsEJ.cjs} +4 -3
- package/dist/{mcp-init-BBYwTrHb.cjs → mcp-init-S7LHvKlU.cjs} +3 -2
- package/dist/package-D8KU7BKg.cjs +9 -0
- package/dist/{package-CloAwnJk.mjs → package-XsjtCAIj.mjs} +1 -1
- package/dist/update-notifier-Bne2G0qU.cjs +7875 -0
- package/dist/update-notifier-SlOlBi-b.mjs +7884 -0
- package/package.json +8 -8
- package/dist/{mcp-init-8JZx1VWY.mjs → mcp-init-MPfnXfaE.mjs} +2 -2
package/dist/cli-main.cjs
CHANGED
|
@@ -1,63 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
require("./chunk-CKQMccvm.cjs");
|
|
3
|
+
const require_package = require("./package-D8KU7BKg.cjs");
|
|
3
4
|
let _bamboocss_logger = require("@bamboocss/logger");
|
|
4
5
|
let _bamboocss_node = require("@bamboocss/node");
|
|
5
6
|
let _bamboocss_shared = require("@bamboocss/shared");
|
|
6
7
|
let cac = require("cac");
|
|
7
8
|
let path = require("path");
|
|
8
|
-
let _clack_prompts = require("@clack/prompts");
|
|
9
|
-
_clack_prompts = require_package.__toESM(_clack_prompts);
|
|
10
|
-
//#region src/interactive.ts
|
|
11
|
-
const interactive = async (_options = {}) => {
|
|
12
|
-
_clack_prompts.intro(`bamboo v${require_package.version}`);
|
|
13
|
-
const initFlags = await _clack_prompts.group({
|
|
14
|
-
useMjsExtension: () => _clack_prompts.select({
|
|
15
|
-
message: "Use the mjs extension ?",
|
|
16
|
-
initialValue: "yes",
|
|
17
|
-
options: [{
|
|
18
|
-
value: "yes",
|
|
19
|
-
label: "Yes"
|
|
20
|
-
}, {
|
|
21
|
-
value: "no",
|
|
22
|
-
label: "No"
|
|
23
|
-
}]
|
|
24
|
-
}),
|
|
25
|
-
withStrictTokens: () => _clack_prompts.select({
|
|
26
|
-
message: "Must every style value be a token?",
|
|
27
|
-
initialValue: "no",
|
|
28
|
-
options: [{
|
|
29
|
-
value: "no",
|
|
30
|
-
label: "No — raw css values are fine"
|
|
31
|
-
}, {
|
|
32
|
-
value: "yes",
|
|
33
|
-
label: "Yes — every raw value is written `[14px]`"
|
|
34
|
-
}]
|
|
35
|
-
}),
|
|
36
|
-
shouldUpdateGitignore: () => _clack_prompts.select({
|
|
37
|
-
message: "Update gitignore?",
|
|
38
|
-
initialValue: "yes",
|
|
39
|
-
options: [{
|
|
40
|
-
value: "yes",
|
|
41
|
-
label: "Yes"
|
|
42
|
-
}, {
|
|
43
|
-
value: "no",
|
|
44
|
-
label: "No"
|
|
45
|
-
}]
|
|
46
|
-
})
|
|
47
|
-
}, { onCancel: () => {
|
|
48
|
-
_clack_prompts.cancel("Operation cancelled.");
|
|
49
|
-
process.exit(0);
|
|
50
|
-
} });
|
|
51
|
-
_clack_prompts.outro("Let's get started! 🎋");
|
|
52
|
-
return {
|
|
53
|
-
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
54
|
-
strictValues: strictValuesFrom(initFlags.withStrictTokens),
|
|
55
|
-
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
/** `'yes'` is the historical spelling of `true`. */
|
|
59
|
-
const strictValuesFrom = (answer) => answer === "yes" ? true : void 0;
|
|
60
|
-
//#endregion
|
|
61
9
|
//#region src/cli-main.ts
|
|
62
10
|
/**
|
|
63
11
|
* The negative spellings, answered here rather than left to cac, which only recognises
|
|
@@ -96,7 +44,10 @@ async function main() {
|
|
|
96
44
|
const cwd = process.cwd();
|
|
97
45
|
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("-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-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
98
46
|
let options = {};
|
|
99
|
-
if (initFlags.interactive)
|
|
47
|
+
if (initFlags.interactive) {
|
|
48
|
+
const { interactive } = await Promise.resolve().then(() => require("./interactive-BLNeM706.cjs"));
|
|
49
|
+
options = await interactive({ cwd: (0, path.resolve)(initFlags.cwd ?? "") });
|
|
50
|
+
}
|
|
100
51
|
const flags = {
|
|
101
52
|
...initFlags,
|
|
102
53
|
...options
|
|
@@ -270,7 +221,7 @@ async function main() {
|
|
|
270
221
|
config: maybeGlob ? { include: [maybeGlob] } : void 0,
|
|
271
222
|
configPath
|
|
272
223
|
});
|
|
273
|
-
const result = (0, _bamboocss_node.analyze)(ctx);
|
|
224
|
+
const result = await (0, _bamboocss_node.analyze)(ctx);
|
|
274
225
|
if (flags?.outfile && typeof flags.outfile === "string") {
|
|
275
226
|
await result.writeReport(flags.outfile);
|
|
276
227
|
_bamboocss_logger.logger.info("cli", `JSON report saved to ${(0, path.resolve)(flags.outfile)}`);
|
|
@@ -424,7 +375,7 @@ async function main() {
|
|
|
424
375
|
process.exitCode = 1;
|
|
425
376
|
});
|
|
426
377
|
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) => {
|
|
427
|
-
const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-
|
|
378
|
+
const { initMcpConfig } = await Promise.resolve().then(() => require("./mcp-init-S7LHvKlU.cjs"));
|
|
428
379
|
const resolvedCwd = (0, path.resolve)(mcpInitFlags.cwd ?? cwd);
|
|
429
380
|
let clients;
|
|
430
381
|
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,61 +1,9 @@
|
|
|
1
|
-
import { t as version } from "./package-
|
|
1
|
+
import { t as version } from "./package-XsjtCAIj.mjs";
|
|
2
2
|
import { logger } from "@bamboocss/logger";
|
|
3
3
|
import { BambooContext, analyze, buildInfo, codegen, cssgen, debug, generate, generatePackageExports, loadConfigAndCreateContext, setLogStream, setupConfig, setupGitIgnore, spec, startProfiling } from "@bamboocss/node";
|
|
4
4
|
import { BambooError, compact } from "@bamboocss/shared";
|
|
5
5
|
import { cac } from "cac";
|
|
6
6
|
import { join, resolve } from "path";
|
|
7
|
-
import * as p from "@clack/prompts";
|
|
8
|
-
//#region src/interactive.ts
|
|
9
|
-
const interactive = async (_options = {}) => {
|
|
10
|
-
p.intro(`bamboo v${version}`);
|
|
11
|
-
const initFlags = await p.group({
|
|
12
|
-
useMjsExtension: () => p.select({
|
|
13
|
-
message: "Use the mjs extension ?",
|
|
14
|
-
initialValue: "yes",
|
|
15
|
-
options: [{
|
|
16
|
-
value: "yes",
|
|
17
|
-
label: "Yes"
|
|
18
|
-
}, {
|
|
19
|
-
value: "no",
|
|
20
|
-
label: "No"
|
|
21
|
-
}]
|
|
22
|
-
}),
|
|
23
|
-
withStrictTokens: () => p.select({
|
|
24
|
-
message: "Must every style value be a token?",
|
|
25
|
-
initialValue: "no",
|
|
26
|
-
options: [{
|
|
27
|
-
value: "no",
|
|
28
|
-
label: "No — raw css values are fine"
|
|
29
|
-
}, {
|
|
30
|
-
value: "yes",
|
|
31
|
-
label: "Yes — every raw value is written `[14px]`"
|
|
32
|
-
}]
|
|
33
|
-
}),
|
|
34
|
-
shouldUpdateGitignore: () => p.select({
|
|
35
|
-
message: "Update gitignore?",
|
|
36
|
-
initialValue: "yes",
|
|
37
|
-
options: [{
|
|
38
|
-
value: "yes",
|
|
39
|
-
label: "Yes"
|
|
40
|
-
}, {
|
|
41
|
-
value: "no",
|
|
42
|
-
label: "No"
|
|
43
|
-
}]
|
|
44
|
-
})
|
|
45
|
-
}, { onCancel: () => {
|
|
46
|
-
p.cancel("Operation cancelled.");
|
|
47
|
-
process.exit(0);
|
|
48
|
-
} });
|
|
49
|
-
p.outro("Let's get started! 🎋");
|
|
50
|
-
return {
|
|
51
|
-
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
52
|
-
strictValues: strictValuesFrom(initFlags.withStrictTokens),
|
|
53
|
-
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
/** `'yes'` is the historical spelling of `true`. */
|
|
57
|
-
const strictValuesFrom = (answer) => answer === "yes" ? true : void 0;
|
|
58
|
-
//#endregion
|
|
59
7
|
//#region src/cli-main.ts
|
|
60
8
|
/**
|
|
61
9
|
* The negative spellings, answered here rather than left to cac, which only recognises
|
|
@@ -94,7 +42,10 @@ async function main() {
|
|
|
94
42
|
const cwd = process.cwd();
|
|
95
43
|
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("-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-values [mode]", "Require every style value to be a token, so a raw css value is written `[14px]`").option("--logfile <file>", "Outputs logs to a file").action(async (initFlags = {}) => {
|
|
96
44
|
let options = {};
|
|
97
|
-
if (initFlags.interactive)
|
|
45
|
+
if (initFlags.interactive) {
|
|
46
|
+
const { interactive } = await import("./interactive-3v_-qwRH.mjs");
|
|
47
|
+
options = await interactive({ cwd: resolve(initFlags.cwd ?? "") });
|
|
48
|
+
}
|
|
98
49
|
const flags = {
|
|
99
50
|
...initFlags,
|
|
100
51
|
...options
|
|
@@ -268,7 +219,7 @@ async function main() {
|
|
|
268
219
|
config: maybeGlob ? { include: [maybeGlob] } : void 0,
|
|
269
220
|
configPath
|
|
270
221
|
});
|
|
271
|
-
const result = analyze(ctx);
|
|
222
|
+
const result = await analyze(ctx);
|
|
272
223
|
if (flags?.outfile && typeof flags.outfile === "string") {
|
|
273
224
|
await result.writeReport(flags.outfile);
|
|
274
225
|
logger.info("cli", `JSON report saved to ${resolve(flags.outfile)}`);
|
|
@@ -422,7 +373,7 @@ async function main() {
|
|
|
422
373
|
process.exitCode = 1;
|
|
423
374
|
});
|
|
424
375
|
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) => {
|
|
425
|
-
const { initMcpConfig } = await import("./mcp-init-
|
|
376
|
+
const { initMcpConfig } = await import("./mcp-init-D11nkKqS.mjs");
|
|
426
377
|
const resolvedCwd = resolve(mcpInitFlags.cwd ?? cwd);
|
|
427
378
|
let clients;
|
|
428
379
|
if (mcpInitFlags.client) clients = (Array.isArray(mcpInitFlags.client) ? mcpInitFlags.client : [mcpInitFlags.client]).flatMap((c) => c.split(",")).map((c) => c.trim());
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as version } from "./package-XsjtCAIj.mjs";
|
|
2
|
+
import * as p from "@clack/prompts";
|
|
3
|
+
//#region src/interactive.ts
|
|
4
|
+
const interactive = async (_options = {}) => {
|
|
5
|
+
p.intro(`bamboo v${version}`);
|
|
6
|
+
const initFlags = await p.group({
|
|
7
|
+
useMjsExtension: () => p.select({
|
|
8
|
+
message: "Use the mjs extension ?",
|
|
9
|
+
initialValue: "yes",
|
|
10
|
+
options: [{
|
|
11
|
+
value: "yes",
|
|
12
|
+
label: "Yes"
|
|
13
|
+
}, {
|
|
14
|
+
value: "no",
|
|
15
|
+
label: "No"
|
|
16
|
+
}]
|
|
17
|
+
}),
|
|
18
|
+
withStrictTokens: () => p.select({
|
|
19
|
+
message: "Must every style value be a token?",
|
|
20
|
+
initialValue: "no",
|
|
21
|
+
options: [{
|
|
22
|
+
value: "no",
|
|
23
|
+
label: "No — raw css values are fine"
|
|
24
|
+
}, {
|
|
25
|
+
value: "yes",
|
|
26
|
+
label: "Yes — every raw value is written `[14px]`"
|
|
27
|
+
}]
|
|
28
|
+
}),
|
|
29
|
+
shouldUpdateGitignore: () => p.select({
|
|
30
|
+
message: "Update gitignore?",
|
|
31
|
+
initialValue: "yes",
|
|
32
|
+
options: [{
|
|
33
|
+
value: "yes",
|
|
34
|
+
label: "Yes"
|
|
35
|
+
}, {
|
|
36
|
+
value: "no",
|
|
37
|
+
label: "No"
|
|
38
|
+
}]
|
|
39
|
+
})
|
|
40
|
+
}, { onCancel: () => {
|
|
41
|
+
p.cancel("Operation cancelled.");
|
|
42
|
+
process.exit(0);
|
|
43
|
+
} });
|
|
44
|
+
p.outro("Let's get started! 🎋");
|
|
45
|
+
return {
|
|
46
|
+
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
47
|
+
strictValues: strictValuesFrom(initFlags.withStrictTokens),
|
|
48
|
+
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
/** `'yes'` is the historical spelling of `true`. */
|
|
52
|
+
const strictValuesFrom = (answer) => answer === "yes" ? true : void 0;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { interactive };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
const require_package = require("./package-D8KU7BKg.cjs");
|
|
3
|
+
let _clack_prompts = require("@clack/prompts");
|
|
4
|
+
_clack_prompts = require_chunk.__toESM(_clack_prompts);
|
|
5
|
+
//#region src/interactive.ts
|
|
6
|
+
const interactive = async (_options = {}) => {
|
|
7
|
+
_clack_prompts.intro(`bamboo v${require_package.version}`);
|
|
8
|
+
const initFlags = await _clack_prompts.group({
|
|
9
|
+
useMjsExtension: () => _clack_prompts.select({
|
|
10
|
+
message: "Use the mjs extension ?",
|
|
11
|
+
initialValue: "yes",
|
|
12
|
+
options: [{
|
|
13
|
+
value: "yes",
|
|
14
|
+
label: "Yes"
|
|
15
|
+
}, {
|
|
16
|
+
value: "no",
|
|
17
|
+
label: "No"
|
|
18
|
+
}]
|
|
19
|
+
}),
|
|
20
|
+
withStrictTokens: () => _clack_prompts.select({
|
|
21
|
+
message: "Must every style value be a token?",
|
|
22
|
+
initialValue: "no",
|
|
23
|
+
options: [{
|
|
24
|
+
value: "no",
|
|
25
|
+
label: "No — raw css values are fine"
|
|
26
|
+
}, {
|
|
27
|
+
value: "yes",
|
|
28
|
+
label: "Yes — every raw value is written `[14px]`"
|
|
29
|
+
}]
|
|
30
|
+
}),
|
|
31
|
+
shouldUpdateGitignore: () => _clack_prompts.select({
|
|
32
|
+
message: "Update gitignore?",
|
|
33
|
+
initialValue: "yes",
|
|
34
|
+
options: [{
|
|
35
|
+
value: "yes",
|
|
36
|
+
label: "Yes"
|
|
37
|
+
}, {
|
|
38
|
+
value: "no",
|
|
39
|
+
label: "No"
|
|
40
|
+
}]
|
|
41
|
+
})
|
|
42
|
+
}, { onCancel: () => {
|
|
43
|
+
_clack_prompts.cancel("Operation cancelled.");
|
|
44
|
+
process.exit(0);
|
|
45
|
+
} });
|
|
46
|
+
_clack_prompts.outro("Let's get started! 🎋");
|
|
47
|
+
return {
|
|
48
|
+
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
49
|
+
strictValues: strictValuesFrom(initFlags.withStrictTokens),
|
|
50
|
+
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/** `'yes'` is the historical spelling of `true`. */
|
|
54
|
+
const strictValuesFrom = (answer) => answer === "yes" ? true : void 0;
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.interactive = interactive;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as version } from "./cli-default.mjs";
|
|
2
|
+
import * as p from "@clack/prompts";
|
|
3
|
+
//#region src/interactive.ts
|
|
4
|
+
const interactive = async (_options = {}) => {
|
|
5
|
+
p.intro(`bamboo v${version}`);
|
|
6
|
+
const initFlags = await p.group({
|
|
7
|
+
useMjsExtension: () => p.select({
|
|
8
|
+
message: "Use the mjs extension ?",
|
|
9
|
+
initialValue: "yes",
|
|
10
|
+
options: [{
|
|
11
|
+
value: "yes",
|
|
12
|
+
label: "Yes"
|
|
13
|
+
}, {
|
|
14
|
+
value: "no",
|
|
15
|
+
label: "No"
|
|
16
|
+
}]
|
|
17
|
+
}),
|
|
18
|
+
withStrictTokens: () => p.select({
|
|
19
|
+
message: "Must every style value be a token?",
|
|
20
|
+
initialValue: "no",
|
|
21
|
+
options: [{
|
|
22
|
+
value: "no",
|
|
23
|
+
label: "No — raw css values are fine"
|
|
24
|
+
}, {
|
|
25
|
+
value: "yes",
|
|
26
|
+
label: "Yes — every raw value is written `[14px]`"
|
|
27
|
+
}]
|
|
28
|
+
}),
|
|
29
|
+
shouldUpdateGitignore: () => p.select({
|
|
30
|
+
message: "Update gitignore?",
|
|
31
|
+
initialValue: "yes",
|
|
32
|
+
options: [{
|
|
33
|
+
value: "yes",
|
|
34
|
+
label: "Yes"
|
|
35
|
+
}, {
|
|
36
|
+
value: "no",
|
|
37
|
+
label: "No"
|
|
38
|
+
}]
|
|
39
|
+
})
|
|
40
|
+
}, { onCancel: () => {
|
|
41
|
+
p.cancel("Operation cancelled.");
|
|
42
|
+
process.exit(0);
|
|
43
|
+
} });
|
|
44
|
+
p.outro("Let's get started! 🎋");
|
|
45
|
+
return {
|
|
46
|
+
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
47
|
+
strictValues: strictValuesFrom(initFlags.withStrictTokens),
|
|
48
|
+
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
/** `'yes'` is the historical spelling of `true`. */
|
|
52
|
+
const strictValuesFrom = (answer) => answer === "yes" ? true : void 0;
|
|
53
|
+
//#endregion
|
|
54
|
+
export { interactive };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-C2EiDwsr.cjs");
|
|
2
|
+
const require_cli_default = require("./cli-default.cjs");
|
|
3
|
+
let _clack_prompts = require("@clack/prompts");
|
|
4
|
+
_clack_prompts = require_chunk.__toESM(_clack_prompts);
|
|
5
|
+
//#region src/interactive.ts
|
|
6
|
+
const interactive = async (_options = {}) => {
|
|
7
|
+
_clack_prompts.intro(`bamboo v${require_cli_default.version}`);
|
|
8
|
+
const initFlags = await _clack_prompts.group({
|
|
9
|
+
useMjsExtension: () => _clack_prompts.select({
|
|
10
|
+
message: "Use the mjs extension ?",
|
|
11
|
+
initialValue: "yes",
|
|
12
|
+
options: [{
|
|
13
|
+
value: "yes",
|
|
14
|
+
label: "Yes"
|
|
15
|
+
}, {
|
|
16
|
+
value: "no",
|
|
17
|
+
label: "No"
|
|
18
|
+
}]
|
|
19
|
+
}),
|
|
20
|
+
withStrictTokens: () => _clack_prompts.select({
|
|
21
|
+
message: "Must every style value be a token?",
|
|
22
|
+
initialValue: "no",
|
|
23
|
+
options: [{
|
|
24
|
+
value: "no",
|
|
25
|
+
label: "No — raw css values are fine"
|
|
26
|
+
}, {
|
|
27
|
+
value: "yes",
|
|
28
|
+
label: "Yes — every raw value is written `[14px]`"
|
|
29
|
+
}]
|
|
30
|
+
}),
|
|
31
|
+
shouldUpdateGitignore: () => _clack_prompts.select({
|
|
32
|
+
message: "Update gitignore?",
|
|
33
|
+
initialValue: "yes",
|
|
34
|
+
options: [{
|
|
35
|
+
value: "yes",
|
|
36
|
+
label: "Yes"
|
|
37
|
+
}, {
|
|
38
|
+
value: "no",
|
|
39
|
+
label: "No"
|
|
40
|
+
}]
|
|
41
|
+
})
|
|
42
|
+
}, { onCancel: () => {
|
|
43
|
+
_clack_prompts.cancel("Operation cancelled.");
|
|
44
|
+
process.exit(0);
|
|
45
|
+
} });
|
|
46
|
+
_clack_prompts.outro("Let's get started! 🎋");
|
|
47
|
+
return {
|
|
48
|
+
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
49
|
+
strictValues: strictValuesFrom(initFlags.withStrictTokens),
|
|
50
|
+
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
/** `'yes'` is the historical spelling of `true`. */
|
|
54
|
+
const strictValuesFrom = (answer) => answer === "yes" ? true : void 0;
|
|
55
|
+
//#endregion
|
|
56
|
+
exports.interactive = interactive;
|
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.49.0";
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/interactive.ts
|
|
30
30
|
const interactive = async (_options = {}) => {
|
package/dist/interactive.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-C2EiDwsr.cjs");
|
|
1
2
|
const require_cli_default = require("./cli-default.cjs");
|
|
2
|
-
let fs = require("fs");
|
|
3
|
-
let path = require("path");
|
|
4
3
|
let _bamboocss_logger = require("@bamboocss/logger");
|
|
4
|
+
let path = require("path");
|
|
5
|
+
let fs = require("fs");
|
|
5
6
|
let _clack_prompts = require("@clack/prompts");
|
|
6
|
-
_clack_prompts =
|
|
7
|
+
_clack_prompts = require_chunk.__toESM(_clack_prompts);
|
|
7
8
|
//#region src/mcp-clients.ts
|
|
8
9
|
const MCP_CLIENTS = {
|
|
9
10
|
claude: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
const require_package = require("./package-D8KU7BKg.cjs");
|
|
2
3
|
let _bamboocss_logger = require("@bamboocss/logger");
|
|
3
4
|
let path = require("path");
|
|
4
5
|
let _clack_prompts = require("@clack/prompts");
|
|
5
|
-
_clack_prompts =
|
|
6
|
+
_clack_prompts = require_chunk.__toESM(_clack_prompts);
|
|
6
7
|
let fs = require("fs");
|
|
7
8
|
//#region src/mcp-clients.ts
|
|
8
9
|
const MCP_CLIENTS = {
|