@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
package/dist/errors.js
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/errors.ts
|
|
21
|
-
var errors_exports = {};
|
|
22
|
-
__export(errors_exports, {
|
|
23
|
-
handleError: () => handleError
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(errors_exports);
|
|
26
|
-
var import_worker_threads = require("worker_threads");
|
|
27
|
-
|
|
28
|
-
// ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/index.mjs
|
|
29
|
-
var FORCE_COLOR;
|
|
30
|
-
var NODE_DISABLE_COLORS;
|
|
31
|
-
var NO_COLOR;
|
|
32
|
-
var TERM;
|
|
33
|
-
var isTTY = true;
|
|
34
|
-
if (typeof process !== "undefined") {
|
|
35
|
-
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
|
|
36
|
-
isTTY = process.stdout && process.stdout.isTTY;
|
|
37
|
-
}
|
|
38
|
-
var $ = {
|
|
39
|
-
enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY),
|
|
40
|
-
// modifiers
|
|
41
|
-
reset: init(0, 0),
|
|
42
|
-
bold: init(1, 22),
|
|
43
|
-
dim: init(2, 22),
|
|
44
|
-
italic: init(3, 23),
|
|
45
|
-
underline: init(4, 24),
|
|
46
|
-
inverse: init(7, 27),
|
|
47
|
-
hidden: init(8, 28),
|
|
48
|
-
strikethrough: init(9, 29),
|
|
49
|
-
// colors
|
|
50
|
-
black: init(30, 39),
|
|
51
|
-
red: init(31, 39),
|
|
52
|
-
green: init(32, 39),
|
|
53
|
-
yellow: init(33, 39),
|
|
54
|
-
blue: init(34, 39),
|
|
55
|
-
magenta: init(35, 39),
|
|
56
|
-
cyan: init(36, 39),
|
|
57
|
-
white: init(37, 39),
|
|
58
|
-
gray: init(90, 39),
|
|
59
|
-
grey: init(90, 39),
|
|
60
|
-
// background colors
|
|
61
|
-
bgBlack: init(40, 49),
|
|
62
|
-
bgRed: init(41, 49),
|
|
63
|
-
bgGreen: init(42, 49),
|
|
64
|
-
bgYellow: init(43, 49),
|
|
65
|
-
bgBlue: init(44, 49),
|
|
66
|
-
bgMagenta: init(45, 49),
|
|
67
|
-
bgCyan: init(46, 49),
|
|
68
|
-
bgWhite: init(47, 49)
|
|
69
|
-
};
|
|
70
|
-
function run(arr, str) {
|
|
71
|
-
let i = 0, tmp, beg = "", end = "";
|
|
72
|
-
for (; i < arr.length; i++) {
|
|
73
|
-
tmp = arr[i];
|
|
74
|
-
beg += tmp.open;
|
|
75
|
-
end += tmp.close;
|
|
76
|
-
if (!!~str.indexOf(tmp.close)) {
|
|
77
|
-
str = str.replace(tmp.rgx, tmp.close + tmp.open);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return beg + str + end;
|
|
81
|
-
}
|
|
82
|
-
function chain(has, keys) {
|
|
83
|
-
let ctx = { has, keys };
|
|
84
|
-
ctx.reset = $.reset.bind(ctx);
|
|
85
|
-
ctx.bold = $.bold.bind(ctx);
|
|
86
|
-
ctx.dim = $.dim.bind(ctx);
|
|
87
|
-
ctx.italic = $.italic.bind(ctx);
|
|
88
|
-
ctx.underline = $.underline.bind(ctx);
|
|
89
|
-
ctx.inverse = $.inverse.bind(ctx);
|
|
90
|
-
ctx.hidden = $.hidden.bind(ctx);
|
|
91
|
-
ctx.strikethrough = $.strikethrough.bind(ctx);
|
|
92
|
-
ctx.black = $.black.bind(ctx);
|
|
93
|
-
ctx.red = $.red.bind(ctx);
|
|
94
|
-
ctx.green = $.green.bind(ctx);
|
|
95
|
-
ctx.yellow = $.yellow.bind(ctx);
|
|
96
|
-
ctx.blue = $.blue.bind(ctx);
|
|
97
|
-
ctx.magenta = $.magenta.bind(ctx);
|
|
98
|
-
ctx.cyan = $.cyan.bind(ctx);
|
|
99
|
-
ctx.white = $.white.bind(ctx);
|
|
100
|
-
ctx.gray = $.gray.bind(ctx);
|
|
101
|
-
ctx.grey = $.grey.bind(ctx);
|
|
102
|
-
ctx.bgBlack = $.bgBlack.bind(ctx);
|
|
103
|
-
ctx.bgRed = $.bgRed.bind(ctx);
|
|
104
|
-
ctx.bgGreen = $.bgGreen.bind(ctx);
|
|
105
|
-
ctx.bgYellow = $.bgYellow.bind(ctx);
|
|
106
|
-
ctx.bgBlue = $.bgBlue.bind(ctx);
|
|
107
|
-
ctx.bgMagenta = $.bgMagenta.bind(ctx);
|
|
108
|
-
ctx.bgCyan = $.bgCyan.bind(ctx);
|
|
109
|
-
ctx.bgWhite = $.bgWhite.bind(ctx);
|
|
110
|
-
return ctx;
|
|
111
|
-
}
|
|
112
|
-
function init(open, close) {
|
|
113
|
-
let blk = {
|
|
114
|
-
open: `\x1B[${open}m`,
|
|
115
|
-
close: `\x1B[${close}m`,
|
|
116
|
-
rgx: new RegExp(`\\x1b\\[${close}m`, "g")
|
|
117
|
-
};
|
|
118
|
-
return function(txt) {
|
|
119
|
-
if (this !== void 0 && this.has !== void 0) {
|
|
120
|
-
!!~this.has.indexOf(open) || (this.has.push(open), this.keys.push(blk));
|
|
121
|
-
return txt === void 0 ? this : $.enabled ? run(this.keys, txt + "") : txt + "";
|
|
122
|
-
}
|
|
123
|
-
return txt === void 0 ? chain([open], [blk]) : $.enabled ? run([blk], txt + "") : txt + "";
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
var kleur_default = $;
|
|
127
|
-
|
|
128
|
-
// src/errors.ts
|
|
129
|
-
var import_shared = require("@bamboocss/shared");
|
|
130
|
-
function handleError(error) {
|
|
131
|
-
if (error instanceof import_shared.BambooError) {
|
|
132
|
-
console.error(kleur_default.red(`${error.code}: ${error.message}`));
|
|
133
|
-
if (error.hint) {
|
|
134
|
-
console.error(kleur_default.dim(error.hint));
|
|
135
|
-
}
|
|
136
|
-
if (error.cause instanceof Error) {
|
|
137
|
-
console.error(kleur_default.dim(`Caused by: ${error.cause.message}`));
|
|
138
|
-
}
|
|
139
|
-
} else if (isLocError(error)) {
|
|
140
|
-
console.error(kleur_default.bold(kleur_default.red(`Error parsing: ${error.loc.file}:${error.loc.line}:${error.loc.column}`)));
|
|
141
|
-
if (error.frame) {
|
|
142
|
-
console.error(kleur_default.red(error.message));
|
|
143
|
-
console.error(kleur_default.dim(error.frame));
|
|
144
|
-
} else {
|
|
145
|
-
console.error(kleur_default.red(error.message));
|
|
146
|
-
}
|
|
147
|
-
} else {
|
|
148
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
149
|
-
console.error(kleur_default.red(message));
|
|
150
|
-
}
|
|
151
|
-
process.exitCode = 1;
|
|
152
|
-
if (!import_worker_threads.isMainThread && import_worker_threads.parentPort) {
|
|
153
|
-
import_worker_threads.parentPort.postMessage("error");
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function isLocError(error) {
|
|
157
|
-
return typeof error === "object" && error !== null && "loc" in error && typeof error.loc === "object" && "message" in error;
|
|
158
|
-
}
|
|
159
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
160
|
-
0 && (module.exports = {
|
|
161
|
-
handleError
|
|
162
|
-
});
|
package/dist/index.js
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
defineAnimationStyles: () => defineAnimationStyles,
|
|
24
|
-
defineConfig: () => defineConfig,
|
|
25
|
-
defineGlobalFontface: () => defineGlobalFontface,
|
|
26
|
-
defineGlobalStyles: () => defineGlobalStyles,
|
|
27
|
-
defineKeyframes: () => defineKeyframes,
|
|
28
|
-
defineLayerStyles: () => defineLayerStyles,
|
|
29
|
-
defineParts: () => defineParts,
|
|
30
|
-
definePattern: () => definePattern,
|
|
31
|
-
definePlugin: () => definePlugin,
|
|
32
|
-
definePreset: () => definePreset,
|
|
33
|
-
defineRecipe: () => defineRecipe,
|
|
34
|
-
defineSemanticTokens: () => defineSemanticTokens,
|
|
35
|
-
defineSlotRecipe: () => defineSlotRecipe,
|
|
36
|
-
defineStyles: () => defineStyles,
|
|
37
|
-
defineTextStyles: () => defineTextStyles,
|
|
38
|
-
defineThemeContract: () => defineThemeContract,
|
|
39
|
-
defineThemeVariant: () => defineThemeVariant,
|
|
40
|
-
defineTokens: () => defineTokens,
|
|
41
|
-
defineUtility: () => defineUtility
|
|
42
|
-
});
|
|
43
|
-
module.exports = __toCommonJS(index_exports);
|
|
44
|
-
var import_shared = require("@bamboocss/shared");
|
|
45
|
-
function defineConfig(config) {
|
|
46
|
-
return Object.assign(config, { name: "__bamboo.config__" });
|
|
47
|
-
}
|
|
48
|
-
function defineRecipe(config) {
|
|
49
|
-
return config;
|
|
50
|
-
}
|
|
51
|
-
function defineSlotRecipe(config) {
|
|
52
|
-
return config;
|
|
53
|
-
}
|
|
54
|
-
function defineParts(parts) {
|
|
55
|
-
return function(config) {
|
|
56
|
-
return Object.fromEntries(
|
|
57
|
-
Object.entries(config).map(([key, value]) => {
|
|
58
|
-
const part = parts[key];
|
|
59
|
-
if (part == null) {
|
|
60
|
-
throw new import_shared.BambooError(
|
|
61
|
-
"NOT_FOUND",
|
|
62
|
-
`Part "${key}" does not exist in the anatomy. Available parts: ${Object.keys(parts).join(", ")}`
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
return [part.selector, value];
|
|
66
|
-
})
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function definePattern(config) {
|
|
71
|
-
return config;
|
|
72
|
-
}
|
|
73
|
-
function definePreset(preset) {
|
|
74
|
-
return preset;
|
|
75
|
-
}
|
|
76
|
-
function defineKeyframes(keyframes) {
|
|
77
|
-
return keyframes;
|
|
78
|
-
}
|
|
79
|
-
function defineGlobalStyles(definition) {
|
|
80
|
-
return definition;
|
|
81
|
-
}
|
|
82
|
-
function defineGlobalFontface(definition) {
|
|
83
|
-
return definition;
|
|
84
|
-
}
|
|
85
|
-
function defineUtility(utility) {
|
|
86
|
-
return utility;
|
|
87
|
-
}
|
|
88
|
-
function definePlugin(plugin) {
|
|
89
|
-
return plugin;
|
|
90
|
-
}
|
|
91
|
-
function defineThemeVariant(theme) {
|
|
92
|
-
return theme;
|
|
93
|
-
}
|
|
94
|
-
function defineThemeContract(_contract) {
|
|
95
|
-
return (theme) => defineThemeVariant(theme);
|
|
96
|
-
}
|
|
97
|
-
function createProxy() {
|
|
98
|
-
const identity = (v) => v;
|
|
99
|
-
return new Proxy(identity, {
|
|
100
|
-
get() {
|
|
101
|
-
return identity;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
var defineTokens = /* @__PURE__ */ createProxy();
|
|
106
|
-
var defineSemanticTokens = /* @__PURE__ */ createProxy();
|
|
107
|
-
function defineTextStyles(definition) {
|
|
108
|
-
return definition;
|
|
109
|
-
}
|
|
110
|
-
function defineLayerStyles(definition) {
|
|
111
|
-
return definition;
|
|
112
|
-
}
|
|
113
|
-
function defineStyles(definition) {
|
|
114
|
-
return definition;
|
|
115
|
-
}
|
|
116
|
-
function defineAnimationStyles(definition) {
|
|
117
|
-
return definition;
|
|
118
|
-
}
|
|
119
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
120
|
-
0 && (module.exports = {
|
|
121
|
-
defineAnimationStyles,
|
|
122
|
-
defineConfig,
|
|
123
|
-
defineGlobalFontface,
|
|
124
|
-
defineGlobalStyles,
|
|
125
|
-
defineKeyframes,
|
|
126
|
-
defineLayerStyles,
|
|
127
|
-
defineParts,
|
|
128
|
-
definePattern,
|
|
129
|
-
definePlugin,
|
|
130
|
-
definePreset,
|
|
131
|
-
defineRecipe,
|
|
132
|
-
defineSemanticTokens,
|
|
133
|
-
defineSlotRecipe,
|
|
134
|
-
defineStyles,
|
|
135
|
-
defineTextStyles,
|
|
136
|
-
defineThemeContract,
|
|
137
|
-
defineThemeVariant,
|
|
138
|
-
defineTokens,
|
|
139
|
-
defineUtility
|
|
140
|
-
});
|
package/dist/interactive.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/interactive.ts
|
|
31
|
-
var interactive_exports = {};
|
|
32
|
-
__export(interactive_exports, {
|
|
33
|
-
interactive: () => interactive
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(interactive_exports);
|
|
36
|
-
var p = __toESM(require("@clack/prompts"));
|
|
37
|
-
|
|
38
|
-
// package.json
|
|
39
|
-
var version = "1.11.1";
|
|
40
|
-
|
|
41
|
-
// src/interactive.ts
|
|
42
|
-
var interactive = async () => {
|
|
43
|
-
p.intro(`bamboo v${version}`);
|
|
44
|
-
const initFlags = await p.group(
|
|
45
|
-
{
|
|
46
|
-
usePostcss: () => p.select({
|
|
47
|
-
message: "Would you like to use PostCSS ?",
|
|
48
|
-
initialValue: "yes",
|
|
49
|
-
options: [
|
|
50
|
-
{ value: "yes", label: "Yes" },
|
|
51
|
-
{ value: "no", label: "No" }
|
|
52
|
-
]
|
|
53
|
-
}),
|
|
54
|
-
useMjsExtension: () => p.select({
|
|
55
|
-
message: "Use the mjs extension ?",
|
|
56
|
-
initialValue: "yes",
|
|
57
|
-
options: [
|
|
58
|
-
{ value: "yes", label: "Yes" },
|
|
59
|
-
{ value: "no", label: "No" }
|
|
60
|
-
]
|
|
61
|
-
}),
|
|
62
|
-
jsxOptions: () => p.group({
|
|
63
|
-
styleProps: () => p.select({
|
|
64
|
-
message: "Would you like to use JSX Style Props ?",
|
|
65
|
-
initialValue: "yes",
|
|
66
|
-
options: [
|
|
67
|
-
{ value: "yes", label: "Yes" },
|
|
68
|
-
{ value: "no", label: "No" }
|
|
69
|
-
]
|
|
70
|
-
}),
|
|
71
|
-
jsxFramework: () => p.select({
|
|
72
|
-
message: "What JSX framework?",
|
|
73
|
-
initialValue: "react",
|
|
74
|
-
options: [
|
|
75
|
-
{ value: "react", label: "React" },
|
|
76
|
-
{ value: "vue", label: "Vue" },
|
|
77
|
-
{ value: "solid", label: "Solid" },
|
|
78
|
-
{ value: "qwik", label: "Qwik" }
|
|
79
|
-
]
|
|
80
|
-
})
|
|
81
|
-
}),
|
|
82
|
-
whatSyntax: () => p.select({
|
|
83
|
-
message: "What css syntax would you like to use?",
|
|
84
|
-
initialValue: "object",
|
|
85
|
-
options: [
|
|
86
|
-
{ value: "object-literal", label: "Object" },
|
|
87
|
-
{ value: "template-literal", label: "Template literal" }
|
|
88
|
-
]
|
|
89
|
-
}),
|
|
90
|
-
withStrictTokens: () => p.select({
|
|
91
|
-
message: "Use strict tokens to enforce full type-safety?",
|
|
92
|
-
initialValue: "no",
|
|
93
|
-
options: [
|
|
94
|
-
{ value: "yes", label: "Yes" },
|
|
95
|
-
{ value: "no", label: "No" }
|
|
96
|
-
]
|
|
97
|
-
}),
|
|
98
|
-
shouldUpdateGitignore: () => p.select({
|
|
99
|
-
message: "Update gitignore?",
|
|
100
|
-
initialValue: "yes",
|
|
101
|
-
options: [
|
|
102
|
-
{ value: "yes", label: "Yes" },
|
|
103
|
-
{ value: "no", label: "No" }
|
|
104
|
-
]
|
|
105
|
-
})
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
// On Cancel callback that wraps the group
|
|
109
|
-
// So if the user cancels one of the prompts in the group this function will be called
|
|
110
|
-
onCancel: () => {
|
|
111
|
-
p.cancel("Operation cancelled.");
|
|
112
|
-
process.exit(0);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
p.outro("Let's get started! \u{1F43C}");
|
|
117
|
-
return {
|
|
118
|
-
postcss: initFlags.usePostcss === "yes",
|
|
119
|
-
outExtension: initFlags.useMjsExtension === "yes" ? "mjs" : "js",
|
|
120
|
-
jsxFramework: initFlags.jsxOptions.jsxFramework,
|
|
121
|
-
syntax: initFlags.whatSyntax,
|
|
122
|
-
strictTokens: initFlags.withStrictTokens === "yes",
|
|
123
|
-
gitignore: initFlags.shouldUpdateGitignore === "yes"
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
127
|
-
0 && (module.exports = {
|
|
128
|
-
interactive
|
|
129
|
-
});
|
package/dist/presets.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// src/presets.ts
|
|
31
|
-
var presets_exports = {};
|
|
32
|
-
__export(presets_exports, {
|
|
33
|
-
default: () => presets_default
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(presets_exports);
|
|
36
|
-
var import_preset_bamboo = __toESM(require("@bamboocss/preset-bamboo"));
|
|
37
|
-
var presets_default = import_preset_bamboo.default;
|
package/dist/types.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types.ts
|
|
17
|
-
var types_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(types_exports);
|