@aerogel/cli 0.0.0-next.6c02970f90d4e979a72530f1fa0c650785d6538f → 0.0.0-next.7b6199e0666e235c949739bdbc7cca2d54c8636e
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/gel +1 -1
- package/dist/aerogel-cli.d.ts +1 -1
- package/dist/aerogel-cli.js +798 -0
- package/dist/aerogel-cli.js.map +1 -0
- package/package.json +20 -33
- package/src/cli.ts +9 -11
- package/src/commands/Command.ts +3 -3
- package/src/commands/create.test.ts +2 -2
- package/src/commands/create.ts +11 -11
- package/src/commands/generate-component.test.ts +3 -3
- package/src/commands/generate-component.ts +14 -14
- package/src/commands/generate-model.test.ts +1 -1
- package/src/commands/generate-model.ts +11 -11
- package/src/commands/generate-service.test.ts +1 -1
- package/src/commands/generate-service.ts +14 -14
- package/src/commands/info.ts +7 -6
- package/src/commands/install.test.ts +4 -10
- package/src/commands/install.ts +12 -12
- package/src/lib/App.ts +9 -6
- package/src/lib/Editor.ts +3 -4
- package/src/lib/File.mock.ts +6 -6
- package/src/lib/File.ts +2 -2
- package/src/lib/Log.mock.ts +3 -3
- package/src/lib/Log.test.ts +4 -4
- package/src/lib/Log.ts +6 -6
- package/src/lib/Shell.mock.ts +1 -1
- package/src/lib/Shell.ts +1 -1
- package/src/lib/Template.ts +19 -16
- package/src/lib/utils/app.ts +2 -2
- package/src/lib/utils/edit.ts +2 -2
- package/src/lib/utils/paths.ts +15 -7
- package/src/plugins/LocalFirst.ts +9 -0
- package/src/plugins/Plugin.ts +10 -28
- package/src/plugins/Solid.ts +11 -19
- package/src/plugins/Soukai.ts +5 -5
- package/src/testing/setup.ts +28 -26
- package/templates/app/.nvmrc +1 -1
- package/templates/app/.vscode/launch.json +1 -0
- package/templates/app/cypress/tsconfig.json +7 -10
- package/templates/app/index.html +2 -2
- package/templates/app/package.json +17 -17
- package/templates/app/src/App.vue +3 -3
- package/templates/app/src/assets/css/main.css +4 -0
- package/templates/app/src/main.ts +1 -1
- package/templates/app/tsconfig.json +3 -10
- package/templates/app/vite.config.ts +6 -4
- package/templates/component-button/[component.name].vue +2 -2
- package/templates/component-checkbox/[component.name].vue +9 -9
- package/templates/component-checkbox-story/[component.name].story.vue +4 -4
- package/templates/component-input/[component.name].vue +6 -6
- package/templates/component-input-story/[component.name].story.vue +4 -4
- package/.prettierignore +0 -1
- package/dist/aerogel-cli.cjs.js +0 -2
- package/dist/aerogel-cli.cjs.js.map +0 -1
- package/dist/aerogel-cli.esm.js +0 -2
- package/dist/aerogel-cli.esm.js.map +0 -1
- package/src/commands/generate-overrides.ts +0 -85
- package/src/plugins/Histoire.ts +0 -113
- package/templates/app/postcss.config.js +0 -6
- package/templates/app/src/assets/css/styles.css +0 -3
- package/templates/app/tailwind.config.js +0 -5
- package/templates/histoire/histoire.config.ts +0 -7
- package/templates/histoire/patches/histoire+0.17.6.patch +0 -13
- package/templates/histoire/src/main.histoire.ts +0 -8
- package/templates/overrides/components/index.ts +0 -15
- package/templates/overrides/components/overrides/AlertModal.vue +0 -11
- package/templates/overrides/components/overrides/ConfirmModal.vue +0 -20
- package/templates/overrides/components/overrides/ErrorReportModal.vue +0 -35
- package/templates/overrides/components/overrides/LoadingModal.vue +0 -12
- package/templates/overrides/components/overrides/ModalWrapper.vue +0 -22
- package/templates/overrides/components/overrides/SnackbarNotification.vue +0 -34
- package/templates/overrides-story/Overrides.story.vue +0 -86
- package/templates/postcss-pseudo-classes/postcss.config.js +0 -15
- package/tsconfig.json +0 -11
- package/vite.config.ts +0 -14
- /package/src/{main.ts → index.ts} +0 -0
|
@@ -0,0 +1,798 @@
|
|
|
1
|
+
var Q = Object.defineProperty;
|
|
2
|
+
var X = (a, e, t) => e in a ? Q(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
|
+
var r = (a, e, t) => X(a, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { Command as Z } from "commander";
|
|
5
|
+
import { existsSync as O, lstatSync as E, readFileSync as z, readdirSync as G, mkdirSync as V, writeFileSync as ee } from "node:fs";
|
|
6
|
+
import { facade as C, stringMatchAll as te, toString as ie, stringMatch as se, arrayFrom as A, stringToSlug as N, stringToTitleCase as ne, arrayFilter as ae, stringToStudlyCase as re, formatCodeBlock as T, stringToCamelCase as M, fail as oe } from "@noeldemartin/utils";
|
|
7
|
+
import { fileURLToPath as k, URL as x } from "node:url";
|
|
8
|
+
import { resolve as B, dirname as H, basename as ce } from "node:path";
|
|
9
|
+
import P from "chalk";
|
|
10
|
+
import { cursorTo as le, clearLine as pe } from "node:readline";
|
|
11
|
+
import ue from "mustache";
|
|
12
|
+
import { Project as de, SyntaxKind as F, Node as u } from "ts-morph";
|
|
13
|
+
import { exec as ge } from "node:child_process";
|
|
14
|
+
class me {
|
|
15
|
+
contains(e, t) {
|
|
16
|
+
var i;
|
|
17
|
+
return !!((i = this.read(e)) != null && i.includes(t));
|
|
18
|
+
}
|
|
19
|
+
exists(e) {
|
|
20
|
+
return O(e);
|
|
21
|
+
}
|
|
22
|
+
isSymlink(e) {
|
|
23
|
+
return E(e).isSymbolicLink();
|
|
24
|
+
}
|
|
25
|
+
read(e) {
|
|
26
|
+
return this.isFile(e) ? z(e).toString() : null;
|
|
27
|
+
}
|
|
28
|
+
getFiles(e) {
|
|
29
|
+
const t = G(e, { withFileTypes: !0 }), i = [];
|
|
30
|
+
for (const s of t) {
|
|
31
|
+
const n = B(e, s.name);
|
|
32
|
+
s.isDirectory() ? i.push(...this.getFiles(n)) : i.push(n);
|
|
33
|
+
}
|
|
34
|
+
return i;
|
|
35
|
+
}
|
|
36
|
+
isDirectory(e) {
|
|
37
|
+
return this.exists(e) && E(e).isDirectory();
|
|
38
|
+
}
|
|
39
|
+
isFile(e) {
|
|
40
|
+
return this.exists(e) && E(e).isFile();
|
|
41
|
+
}
|
|
42
|
+
isEmptyDirectory(e) {
|
|
43
|
+
return this.isDirectory(e) ? this.getFiles(e).length === 0 : !1;
|
|
44
|
+
}
|
|
45
|
+
makeDirectory(e) {
|
|
46
|
+
V(e, { recursive: !0 });
|
|
47
|
+
}
|
|
48
|
+
write(e, t) {
|
|
49
|
+
O(H(e)) || V(H(e), { recursive: !0 }), ee(e, t);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const c = C(me);
|
|
53
|
+
class fe {
|
|
54
|
+
constructor() {
|
|
55
|
+
r(this, "renderInfo", P.hex("#00ffff"));
|
|
56
|
+
r(this, "renderSuccess", P.hex("#00ff00"));
|
|
57
|
+
r(this, "renderError", P.hex("#ff0000"));
|
|
58
|
+
}
|
|
59
|
+
async animate(e, t) {
|
|
60
|
+
const i = (d = "", w = !1) => {
|
|
61
|
+
const L = this.renderInfo(this.renderMarkdown(e) + (w ? "..." : ".".repeat(s % 4))) + d;
|
|
62
|
+
this.stdout(L);
|
|
63
|
+
};
|
|
64
|
+
let s = 0;
|
|
65
|
+
i();
|
|
66
|
+
const n = setInterval(() => (s++, i()), 1e3), l = await t();
|
|
67
|
+
return clearInterval(n), i(`
|
|
68
|
+
`, !0), l;
|
|
69
|
+
}
|
|
70
|
+
info(e) {
|
|
71
|
+
this.log(this.renderMarkdown(e), this.renderInfo);
|
|
72
|
+
}
|
|
73
|
+
error(e) {
|
|
74
|
+
this.log(this.renderMarkdown(e), this.renderError);
|
|
75
|
+
}
|
|
76
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
77
|
+
fail(e) {
|
|
78
|
+
this.error(e), process.exit(1);
|
|
79
|
+
}
|
|
80
|
+
success(e) {
|
|
81
|
+
this.log(this.renderMarkdown(e), this.renderSuccess);
|
|
82
|
+
}
|
|
83
|
+
renderMarkdown(e) {
|
|
84
|
+
const t = te(e, /\*\*(.*)\*\*/g);
|
|
85
|
+
for (const i of t)
|
|
86
|
+
e = e.replace(i[0], P.bold(i[1]));
|
|
87
|
+
return e;
|
|
88
|
+
}
|
|
89
|
+
log(e, t) {
|
|
90
|
+
this.formatMessage(e).forEach((i) => {
|
|
91
|
+
this.logLine(t ? t(i) : i);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
formatMessage(e) {
|
|
95
|
+
var t;
|
|
96
|
+
if (e[0] === `
|
|
97
|
+
`) {
|
|
98
|
+
e = e.slice(1).trimEnd();
|
|
99
|
+
const i = e.split(`
|
|
100
|
+
`), s = e.trim()[0] ?? "", n = ((t = i.find((l) => l.trim().length > 0)) == null ? void 0 : t.indexOf(s)) ?? 0;
|
|
101
|
+
return i.map((l) => l.slice(n));
|
|
102
|
+
}
|
|
103
|
+
return [e];
|
|
104
|
+
}
|
|
105
|
+
logLine(e) {
|
|
106
|
+
console.log(e);
|
|
107
|
+
}
|
|
108
|
+
stdout(e) {
|
|
109
|
+
le(process.stdout, 0), pe(process.stdout, 0), process.stdout.write(e);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
const o = C(fe);
|
|
113
|
+
class v {
|
|
114
|
+
constructor(e) {
|
|
115
|
+
this.path = e;
|
|
116
|
+
}
|
|
117
|
+
static instantiate(e, t = "./", i = {}) {
|
|
118
|
+
return new v(e).instantiate(t, i);
|
|
119
|
+
}
|
|
120
|
+
instantiate(e, t = {}) {
|
|
121
|
+
const i = this.getFilenameReplacements(t), s = [];
|
|
122
|
+
e = `${e}/`.replace(/\/\//, "/");
|
|
123
|
+
for (const n of c.getFiles(this.path)) {
|
|
124
|
+
const l = Object.entries(i).reduce(
|
|
125
|
+
(L, [Y, _]) => L.replaceAll(Y, _),
|
|
126
|
+
n.substring(this.path.length + 1)
|
|
127
|
+
), d = z(n).toString(), w = e + (l.endsWith(".template") ? l.slice(0, -9) : l);
|
|
128
|
+
c.write(w, ue.render(d, t, void 0, ["<%", "%>"])), s.push(w);
|
|
129
|
+
}
|
|
130
|
+
return s;
|
|
131
|
+
}
|
|
132
|
+
getFilenameReplacements(e, t = "") {
|
|
133
|
+
return Object.entries(e).reduce(
|
|
134
|
+
(i, [s, n]) => (typeof n == "object" ? Object.assign(
|
|
135
|
+
i,
|
|
136
|
+
this.getFilenameReplacements(n, `${s}.`)
|
|
137
|
+
) : i[`[${t}${s}]`] = ie(n), i),
|
|
138
|
+
{}
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function he(a = "") {
|
|
143
|
+
if (c.contains(
|
|
144
|
+
k(new x(
|
|
145
|
+
/* @vite-ignore */
|
|
146
|
+
"../../../package.json",
|
|
147
|
+
import.meta.url
|
|
148
|
+
)),
|
|
149
|
+
'"packages/create-aerogel"'
|
|
150
|
+
))
|
|
151
|
+
return B(k(new x(
|
|
152
|
+
/* @vite-ignore */
|
|
153
|
+
"../",
|
|
154
|
+
import.meta.url
|
|
155
|
+
)), a);
|
|
156
|
+
const e = c.read(
|
|
157
|
+
k(new x(
|
|
158
|
+
/* @vite-ignore */
|
|
159
|
+
"../../../../package.json",
|
|
160
|
+
import.meta.url
|
|
161
|
+
))
|
|
162
|
+
), t = se(e ?? "", /"@aerogel\/core": "file:(.*)\/aerogel-core-[\d.]*\.tgz"/), i = (t == null ? void 0 : t[1]) ?? o.fail("Could not determine base path");
|
|
163
|
+
return B(i, a);
|
|
164
|
+
}
|
|
165
|
+
function f(a) {
|
|
166
|
+
return o.fail(`Could not find ${a} pack file, did you run 'npm pack'?`);
|
|
167
|
+
}
|
|
168
|
+
function h(a) {
|
|
169
|
+
return c.getFiles(m(a)).find((e) => e.endsWith(".tgz")) ?? null;
|
|
170
|
+
}
|
|
171
|
+
function m(a) {
|
|
172
|
+
return he(`../${a}`);
|
|
173
|
+
}
|
|
174
|
+
function j(a) {
|
|
175
|
+
return k(new x(
|
|
176
|
+
/* @vite-ignore */
|
|
177
|
+
`../templates/${a}`,
|
|
178
|
+
import.meta.url
|
|
179
|
+
));
|
|
180
|
+
}
|
|
181
|
+
class ye {
|
|
182
|
+
constructor() {
|
|
183
|
+
r(this, "cwd", null);
|
|
184
|
+
}
|
|
185
|
+
setWorkingDirectory(e) {
|
|
186
|
+
this.cwd = e;
|
|
187
|
+
}
|
|
188
|
+
async run(e) {
|
|
189
|
+
await new Promise((t, i) => {
|
|
190
|
+
ge(e, { cwd: this.cwd ?? void 0 }, (s) => {
|
|
191
|
+
if (s) {
|
|
192
|
+
i(s);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
t();
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
const p = C(ye);
|
|
201
|
+
class ve {
|
|
202
|
+
constructor() {
|
|
203
|
+
r(this, "project");
|
|
204
|
+
r(this, "modifiedFiles");
|
|
205
|
+
this.project = new de({ tsConfigFilePath: "tsconfig.json" }), this.modifiedFiles = /* @__PURE__ */ new Set(), this.project.addSourceFilesAtPaths("src/**/*.ts"), this.project.addSourceFilesAtPaths("vite.config.ts"), this.project.addSourceFilesAtPaths("package.json");
|
|
206
|
+
}
|
|
207
|
+
addSourceFile(e) {
|
|
208
|
+
this.project.addSourceFilesAtPaths(e);
|
|
209
|
+
}
|
|
210
|
+
requireSourceFile(e) {
|
|
211
|
+
return this.project.getSourceFileOrThrow(e);
|
|
212
|
+
}
|
|
213
|
+
async format() {
|
|
214
|
+
await o.animate("Formatting modified files", async () => {
|
|
215
|
+
const e = c.exists("prettier.config.js") || c.contains("package.json", '"prettier": {'), t = c.exists(".eslintrc.js") || c.contains("package.json", '"eslintConfig"'), s = c.contains("package.json", '"prettier-eslint-cli"') ? (n) => p.run(`npx prettier-eslint ${n} --write`) : async (n) => {
|
|
216
|
+
e && await p.run(`npx prettier ${n} --write`), n.match(/\.(ts|js|vue)$/) && t && await p.run(`npx eslint ${n} --fix`);
|
|
217
|
+
};
|
|
218
|
+
await Promise.all(A(this.modifiedFiles).map(async (n) => s(n)));
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
async save(e) {
|
|
222
|
+
await e.save(), this.addModifiedFile(e.getFilePath());
|
|
223
|
+
}
|
|
224
|
+
addModifiedFile(e) {
|
|
225
|
+
this.modifiedFiles.add(e);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
class U {
|
|
229
|
+
constructor(e, t = {}) {
|
|
230
|
+
this.name = e, this.options = t;
|
|
231
|
+
}
|
|
232
|
+
create(e) {
|
|
233
|
+
c.exists(e) && (!c.isDirectory(e) || !c.isEmptyDirectory(e)) && o.fail(`Folder at '${e}' already exists!`), v.instantiate(j("app"), e, {
|
|
234
|
+
app: {
|
|
235
|
+
name: this.name,
|
|
236
|
+
slug: N(this.name)
|
|
237
|
+
},
|
|
238
|
+
dependencies: this.getDependencies(),
|
|
239
|
+
contentPath: this.options.linkedLocal ? `${m("core")}/dist/**/*.js` : "./node_modules/@aerogel/core/dist/**/*.js"
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
edit() {
|
|
243
|
+
return new ve();
|
|
244
|
+
}
|
|
245
|
+
getDependencies() {
|
|
246
|
+
const e = (t) => Object.entries(t).reduce(
|
|
247
|
+
(i, [s, n]) => Object.assign(i, { [s]: `file:${n}` }),
|
|
248
|
+
{}
|
|
249
|
+
);
|
|
250
|
+
return this.options.linkedLocal ? e({
|
|
251
|
+
aerogelCli: m("cli"),
|
|
252
|
+
aerogelCore: m("core"),
|
|
253
|
+
aerogelCypress: m("cypress"),
|
|
254
|
+
aerogelPluginI18n: m("plugin-i18n"),
|
|
255
|
+
aerogelPluginSoukai: m("plugin-soukai"),
|
|
256
|
+
aerogelVite: m("vite")
|
|
257
|
+
}) : this.options.local ? e({
|
|
258
|
+
aerogelCli: h("cli") ?? f("cli"),
|
|
259
|
+
aerogelCore: h("core") ?? f("core"),
|
|
260
|
+
aerogelCypress: h("cypress") ?? f("cypress"),
|
|
261
|
+
aerogelPluginI18n: h("plugin-i18n") ?? f("plugin-i18n"),
|
|
262
|
+
aerogelPluginSoukai: h("plugin-soukai") ?? f("plugin-soukai"),
|
|
263
|
+
aerogelVite: h("vite") ?? f("vite")
|
|
264
|
+
}) : {
|
|
265
|
+
aerogelCli: "next",
|
|
266
|
+
aerogelCore: "next",
|
|
267
|
+
aerogelCypress: "next",
|
|
268
|
+
aerogelPluginI18n: "next",
|
|
269
|
+
aerogelPluginSoukai: "next",
|
|
270
|
+
aerogelVite: "next"
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
class g {
|
|
275
|
+
static define(e) {
|
|
276
|
+
e = e.command(this.command).description(this.description);
|
|
277
|
+
for (const [t, i] of this.parameters)
|
|
278
|
+
e = e.argument(`<${t}>`, i);
|
|
279
|
+
for (const [t, i] of Object.entries(this.options)) {
|
|
280
|
+
const s = typeof i == "string" ? i : i.description, n = typeof i == "string" ? "string" : i.type ?? "string";
|
|
281
|
+
e = e.option(n === "boolean" ? `--${t}` : `--${t} <${n}>`, s);
|
|
282
|
+
}
|
|
283
|
+
e = e.action((...t) => this.run.call(this, ...t));
|
|
284
|
+
}
|
|
285
|
+
static async run(...e) {
|
|
286
|
+
const t = new this(...e);
|
|
287
|
+
await t.validate(), await t.run();
|
|
288
|
+
}
|
|
289
|
+
async validate() {
|
|
290
|
+
}
|
|
291
|
+
async run() {
|
|
292
|
+
}
|
|
293
|
+
assertAerogelOrDirectory(e) {
|
|
294
|
+
const t = c.read("package.json");
|
|
295
|
+
if (t != null && t.includes("@aerogel/core") || e && c.isDirectory(e))
|
|
296
|
+
return;
|
|
297
|
+
const i = e ? `${e} folder does not exist.` : "package.json does not contain @aerogel/core.";
|
|
298
|
+
o.fail(`${i} Are you sure this is an Aerogel app?`);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
r(g, "command", ""), r(g, "description", ""), r(g, "parameters", []), r(g, "options", {});
|
|
302
|
+
class S extends g {
|
|
303
|
+
constructor(t, i = {}) {
|
|
304
|
+
super();
|
|
305
|
+
r(this, "path");
|
|
306
|
+
r(this, "options");
|
|
307
|
+
this.path = t, this.options = i;
|
|
308
|
+
}
|
|
309
|
+
async run() {
|
|
310
|
+
const t = this.path, i = this.options.name ?? ne(ce(t));
|
|
311
|
+
p.setWorkingDirectory(t), await this.createApp(i, t), await this.installDependencies(), await this.initializeGit(), o.success(`
|
|
312
|
+
|
|
313
|
+
That's it! You can start working on **${i}** doing the following:
|
|
314
|
+
|
|
315
|
+
cd ${t}
|
|
316
|
+
npm run dev
|
|
317
|
+
|
|
318
|
+
Have fun!
|
|
319
|
+
`);
|
|
320
|
+
}
|
|
321
|
+
async createApp(t, i) {
|
|
322
|
+
o.info(`Creating **${t}**...`), new U(t, {
|
|
323
|
+
local: this.options.local,
|
|
324
|
+
linkedLocal: this.options.local && !this.options.copy
|
|
325
|
+
}).create(i);
|
|
326
|
+
}
|
|
327
|
+
async installDependencies() {
|
|
328
|
+
await o.animate("Installing dependencies", async () => {
|
|
329
|
+
await p.run("npm install");
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
async initializeGit() {
|
|
333
|
+
await o.animate("Initializing git", async () => {
|
|
334
|
+
await p.run("git init"), await p.run("git add ."), await p.run('git commit -m "Start"');
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
r(S, "command", "create"), r(S, "description", "Create AerogelJS app"), r(S, "parameters", [["path", "Application path"]]), r(S, "options", {
|
|
339
|
+
name: "Application name",
|
|
340
|
+
local: {
|
|
341
|
+
type: "boolean",
|
|
342
|
+
description: "Whether to create an app using local Aerogel packages (used for core development)"
|
|
343
|
+
},
|
|
344
|
+
copy: {
|
|
345
|
+
type: "boolean",
|
|
346
|
+
description: "Whether to create an app linked to local Aerogel packages (used in CI)"
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
function q() {
|
|
350
|
+
return new U("");
|
|
351
|
+
}
|
|
352
|
+
function we() {
|
|
353
|
+
return c.contains("package.json", '"@aerogel/core": "file:');
|
|
354
|
+
}
|
|
355
|
+
function ke() {
|
|
356
|
+
return c.isSymlink("node_modules/@aerogel/core");
|
|
357
|
+
}
|
|
358
|
+
function y(a, e = {}) {
|
|
359
|
+
if (!a)
|
|
360
|
+
return;
|
|
361
|
+
const t = e.guard ?? (() => !0), i = e.validate ?? (() => !0), s = A(e.skip ?? []);
|
|
362
|
+
return a.forEachDescendant((n, l) => {
|
|
363
|
+
if (t(n) && i(n))
|
|
364
|
+
return n;
|
|
365
|
+
const d = n.getKind();
|
|
366
|
+
s.includes(d) && l.skip();
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
function K(a, e) {
|
|
370
|
+
if (!(!a || !e(a)))
|
|
371
|
+
return a;
|
|
372
|
+
}
|
|
373
|
+
class $ extends g {
|
|
374
|
+
constructor(t, i = {}) {
|
|
375
|
+
super();
|
|
376
|
+
r(this, "path");
|
|
377
|
+
r(this, "options");
|
|
378
|
+
this.path = t, this.options = i;
|
|
379
|
+
}
|
|
380
|
+
async validate() {
|
|
381
|
+
ae([this.options.button, this.options.input, this.options.checkbox]).length > 1 && o.fail("Can only use one of 'button', 'input', or 'checkbox' flags!");
|
|
382
|
+
}
|
|
383
|
+
async run() {
|
|
384
|
+
this.assertAerogelOrDirectory("src/components"), this.assertHistoireInstalled();
|
|
385
|
+
const t = /* @__PURE__ */ new Set(), [i, s] = this.parsePathComponents();
|
|
386
|
+
await this.createComponent(i, s, t), await this.createStory(i, s, t), await this.declareComponents();
|
|
387
|
+
const n = A(t).map((l) => `- ${l}`).join(`
|
|
388
|
+
`);
|
|
389
|
+
o.info(`${s} component created successfully! The following files were created:
|
|
390
|
+
|
|
391
|
+
${n}`);
|
|
392
|
+
}
|
|
393
|
+
assertHistoireInstalled() {
|
|
394
|
+
this.options.story && !c.contains("package.json", '"histoire"') && !c.contains("package.json", '"@aerogel/histoire"') && o.fail(`
|
|
395
|
+
Histoire is not installed yet! You can install it running:
|
|
396
|
+
npx gel install histoire
|
|
397
|
+
`);
|
|
398
|
+
}
|
|
399
|
+
async createComponent(t, i, s) {
|
|
400
|
+
await o.animate("Creating component", async () => {
|
|
401
|
+
c.exists(`src/components/${this.path}.vue`) && o.fail(`${this.path} component already exists!`);
|
|
402
|
+
const n = this.options.input ? "component-input" : this.options.button ? "component-button" : this.options.checkbox ? "component-checkbox" : "component";
|
|
403
|
+
v.instantiate(j(n), `src/components/${t}`, {
|
|
404
|
+
component: {
|
|
405
|
+
name: i,
|
|
406
|
+
slug: N(i)
|
|
407
|
+
}
|
|
408
|
+
}).forEach((d) => s.add(d));
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
async createStory(t, i, s) {
|
|
412
|
+
this.options.story && await o.animate("Creating story", async () => {
|
|
413
|
+
const n = this.options.input ? "component-input-story" : this.options.button ? "component-button-story" : this.options.checkbox ? "component-checkbox-story" : "component-story";
|
|
414
|
+
v.instantiate(j(n), `src/components/${t}`, {
|
|
415
|
+
component: {
|
|
416
|
+
name: i,
|
|
417
|
+
slug: N(i)
|
|
418
|
+
}
|
|
419
|
+
}).forEach((d) => s.add(d));
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
async declareComponents() {
|
|
423
|
+
const t = q().edit(), i = t.requireSourceFile("vite.config.ts"), s = this.getComponentDirsArray(i);
|
|
424
|
+
if (!s)
|
|
425
|
+
return o.fail("Could not find component dirs declaration in vite config!");
|
|
426
|
+
s.getDescendantsOfKind(F.StringLiteral).some((n) => n.getText() === "'src/components'") || (await o.animate("Updating vite config", async () => {
|
|
427
|
+
s.addElement("'src/components'"), await t.save(i);
|
|
428
|
+
}), await t.format());
|
|
429
|
+
}
|
|
430
|
+
getComponentDirsArray(t) {
|
|
431
|
+
const i = y(t, {
|
|
432
|
+
guard: u.isCallExpression,
|
|
433
|
+
validate: (l) => l.getText().startsWith("Components("),
|
|
434
|
+
skip: F.ImportDeclaration
|
|
435
|
+
});
|
|
436
|
+
if (!i)
|
|
437
|
+
return null;
|
|
438
|
+
const s = y(i, {
|
|
439
|
+
guard: u.isPropertyAssignment,
|
|
440
|
+
validate: (l) => l.getName() === "dirs"
|
|
441
|
+
}), n = s == null ? void 0 : s.getInitializer();
|
|
442
|
+
return u.isArrayLiteralExpression(n) ? n : this.declareComponentDirsArray(i);
|
|
443
|
+
}
|
|
444
|
+
declareComponentDirsArray(t) {
|
|
445
|
+
const i = y(t, { guard: u.isObjectLiteralExpression }), s = i == null ? void 0 : i.addPropertyAssignment({
|
|
446
|
+
name: "dirs",
|
|
447
|
+
initializer: "[]"
|
|
448
|
+
});
|
|
449
|
+
return (s == null ? void 0 : s.getInitializer()) ?? null;
|
|
450
|
+
}
|
|
451
|
+
parsePathComponents() {
|
|
452
|
+
const t = this.path.lastIndexOf("/");
|
|
453
|
+
return t === -1 ? ["", this.path] : [this.path.substring(0, t), this.path.substring(t + 1)];
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
r($, "command", "generate:component"), r($, "description", "Generate an AerogelJS Component"), r($, "parameters", [
|
|
457
|
+
["path", "Component path (relative to components folder; extension not necessary)"]
|
|
458
|
+
]), r($, "options", {
|
|
459
|
+
button: {
|
|
460
|
+
description: "Create a custom button",
|
|
461
|
+
type: "boolean"
|
|
462
|
+
},
|
|
463
|
+
checkbox: {
|
|
464
|
+
description: "Create a custom checkbox",
|
|
465
|
+
type: "boolean"
|
|
466
|
+
},
|
|
467
|
+
input: {
|
|
468
|
+
description: "Create a custom input",
|
|
469
|
+
type: "boolean"
|
|
470
|
+
},
|
|
471
|
+
story: {
|
|
472
|
+
description: "Create component story using Histoire",
|
|
473
|
+
type: "boolean"
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
class b extends g {
|
|
477
|
+
constructor(t, i = {}) {
|
|
478
|
+
super();
|
|
479
|
+
r(this, "name");
|
|
480
|
+
r(this, "options");
|
|
481
|
+
this.name = t, this.options = i;
|
|
482
|
+
}
|
|
483
|
+
async run() {
|
|
484
|
+
this.assertAerogelOrDirectory("src/models"), c.exists(`src/models/${this.name}.ts`) && o.fail(`${this.name} model already exists!`), this.assertSoukaiInstalled();
|
|
485
|
+
const t = await o.animate("Creating model", async () => v.instantiate(j("model"), "src/models", {
|
|
486
|
+
model: {
|
|
487
|
+
name: this.name,
|
|
488
|
+
fieldsDefinition: this.getFieldsDefinition()
|
|
489
|
+
},
|
|
490
|
+
soukaiImports: this.options.fields ? "FieldType, defineModelSchema" : "defineModelSchema"
|
|
491
|
+
}).map((s) => `- ${s}`).join(`
|
|
492
|
+
`));
|
|
493
|
+
o.info(`${this.name} model created successfully! The following files were created:
|
|
494
|
+
|
|
495
|
+
${t}`);
|
|
496
|
+
}
|
|
497
|
+
getFieldsDefinition() {
|
|
498
|
+
if (!this.options.fields)
|
|
499
|
+
return " //";
|
|
500
|
+
const t = this.options.fields.split(",").map((i) => {
|
|
501
|
+
const [s, n, l] = i.split(":");
|
|
502
|
+
return {
|
|
503
|
+
name: s,
|
|
504
|
+
type: re(n ?? "string"),
|
|
505
|
+
required: l === "required"
|
|
506
|
+
};
|
|
507
|
+
}).reduce((i, s) => {
|
|
508
|
+
const n = s.required ? T(`
|
|
509
|
+
${s.name}: {
|
|
510
|
+
type: FieldType.${s.type},
|
|
511
|
+
required: true,
|
|
512
|
+
}
|
|
513
|
+
`) : `${s.name}: FieldType.${s.type}`;
|
|
514
|
+
return i + `
|
|
515
|
+
${n},`;
|
|
516
|
+
}, "");
|
|
517
|
+
return T(t, { indent: 8 });
|
|
518
|
+
}
|
|
519
|
+
assertSoukaiInstalled() {
|
|
520
|
+
!c.contains("package.json", '"soukai"') && !c.contains("package.json", '"@aerogel/plugin-soukai"') && o.fail(`
|
|
521
|
+
Soukai is not installed yet! You can install it running:
|
|
522
|
+
npx gel install soukai
|
|
523
|
+
`);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
r(b, "command", "generate:model"), r(b, "description", "Generate an AerogelJS Model"), r(b, "parameters", [["name", "Model name"]]), r(b, "options", {
|
|
527
|
+
fields: "Create model with the given fields"
|
|
528
|
+
});
|
|
529
|
+
class I extends g {
|
|
530
|
+
constructor(t) {
|
|
531
|
+
super();
|
|
532
|
+
r(this, "name");
|
|
533
|
+
this.name = t;
|
|
534
|
+
}
|
|
535
|
+
async run() {
|
|
536
|
+
this.assertAerogelOrDirectory("src/services");
|
|
537
|
+
const t = /* @__PURE__ */ new Set(), i = q().edit();
|
|
538
|
+
await this.createService(t), await this.registerService(i), await i.format();
|
|
539
|
+
const s = A(t).map((n) => `- ${n}`).join(`
|
|
540
|
+
`);
|
|
541
|
+
o.info(`${this.name} service created successfully! The following files were created:
|
|
542
|
+
|
|
543
|
+
${s}`);
|
|
544
|
+
}
|
|
545
|
+
async createService(t) {
|
|
546
|
+
await o.animate("Creating service", async () => {
|
|
547
|
+
c.exists(`src/services/${this.name}.ts`) && o.fail(`${this.name} service already exists!`), v.instantiate(j("service"), "src/services", {
|
|
548
|
+
service: {
|
|
549
|
+
name: this.name
|
|
550
|
+
}
|
|
551
|
+
}).forEach((s) => t.add(s));
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
async registerService(t) {
|
|
555
|
+
await o.animate("Registering service", async () => {
|
|
556
|
+
c.exists("src/services/index.ts") || await this.createServicesIndex(t);
|
|
557
|
+
const i = t.requireSourceFile("src/services/index.ts"), s = this.getServicesObject(i);
|
|
558
|
+
if (!s)
|
|
559
|
+
return o.fail("Could not find services object in services config, please add it manually.");
|
|
560
|
+
i.addImportDeclaration({
|
|
561
|
+
defaultImport: this.name,
|
|
562
|
+
moduleSpecifier: `./${this.name}`
|
|
563
|
+
}), s.addPropertyAssignment({
|
|
564
|
+
name: `$${M(this.name)}`,
|
|
565
|
+
initializer: this.name
|
|
566
|
+
}), await t.save(i);
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
async createServicesIndex(t) {
|
|
570
|
+
c.write(
|
|
571
|
+
"src/services/index.ts",
|
|
572
|
+
T(`
|
|
573
|
+
export const services = {};
|
|
574
|
+
|
|
575
|
+
export type AppServices = typeof services;
|
|
576
|
+
|
|
577
|
+
declare module '@aerogel/core' {
|
|
578
|
+
interface Services extends AppServices {}
|
|
579
|
+
}
|
|
580
|
+
`)
|
|
581
|
+
), t.addSourceFile("src/services/index.ts");
|
|
582
|
+
const i = t.requireSourceFile("src/main.ts"), s = this.getBootstrapOptions(i);
|
|
583
|
+
if (!s)
|
|
584
|
+
return o.fail("Could not find options object in bootstrap config, please add the services manually.");
|
|
585
|
+
s.insertShorthandPropertyAssignment(0, { name: "services" }), i.addImportDeclaration({
|
|
586
|
+
namedImports: ["services"],
|
|
587
|
+
moduleSpecifier: "./services"
|
|
588
|
+
}), await t.save(i);
|
|
589
|
+
}
|
|
590
|
+
getBootstrapOptions(t) {
|
|
591
|
+
const i = y(t, {
|
|
592
|
+
guard: u.isCallExpression,
|
|
593
|
+
validate: (n) => n.getExpression().getText() === "bootstrap",
|
|
594
|
+
skip: F.ImportDeclaration
|
|
595
|
+
}), s = i == null ? void 0 : i.getArguments()[1];
|
|
596
|
+
return u.isObjectLiteralExpression(s) ? s : null;
|
|
597
|
+
}
|
|
598
|
+
getServicesObject(t) {
|
|
599
|
+
const i = y(t, {
|
|
600
|
+
guard: u.isVariableDeclaration,
|
|
601
|
+
validate: (n) => n.getName() === "services"
|
|
602
|
+
}), s = i == null ? void 0 : i.getInitializer();
|
|
603
|
+
return u.isObjectLiteralExpression(s) ? s : null;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
r(I, "command", "generate:service"), r(I, "description", "Generate an AerogelJS Service"), r(I, "parameters", [["name", "Service name"]]);
|
|
607
|
+
class J extends g {
|
|
608
|
+
async run() {
|
|
609
|
+
o.info("[AerogelJS CLI info]"), o.info("Installation directory: " + k(new x(
|
|
610
|
+
/* @vite-ignore */
|
|
611
|
+
"./",
|
|
612
|
+
import.meta.url
|
|
613
|
+
)));
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
r(J, "command", "info"), r(J, "description", "Show debugging information about the CLI");
|
|
617
|
+
class W {
|
|
618
|
+
constructor(e) {
|
|
619
|
+
r(this, "name");
|
|
620
|
+
this.name = e;
|
|
621
|
+
}
|
|
622
|
+
async install() {
|
|
623
|
+
this.assertNotInstalled(), await this.beforeInstall(), await this.installDependencies();
|
|
624
|
+
{
|
|
625
|
+
const e = q().edit();
|
|
626
|
+
await this.updateFiles(e), await e.format();
|
|
627
|
+
}
|
|
628
|
+
await this.afterInstall(), o.info(`Plugin ${this.name} installed!`);
|
|
629
|
+
}
|
|
630
|
+
assertNotInstalled() {
|
|
631
|
+
c.contains("package.json", `"${this.getNpmPackageName()}"`) && o.fail(`${this.name} is already installed!`);
|
|
632
|
+
}
|
|
633
|
+
async beforeInstall() {
|
|
634
|
+
}
|
|
635
|
+
async afterInstall() {
|
|
636
|
+
}
|
|
637
|
+
async installDependencies() {
|
|
638
|
+
await o.animate("Installing plugin dependencies", async () => {
|
|
639
|
+
await this.installNpmDependencies();
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
async updateFiles(e) {
|
|
643
|
+
this.isForDevelopment() || await this.updateBootstrapConfig(e);
|
|
644
|
+
}
|
|
645
|
+
async installNpmDependencies() {
|
|
646
|
+
const e = this.isForDevelopment() ? "--save-dev" : "";
|
|
647
|
+
if (ke()) {
|
|
648
|
+
await p.run(`npm install file:${m(this.getLocalPackageName())} ${e}`);
|
|
649
|
+
return;
|
|
650
|
+
}
|
|
651
|
+
if (we()) {
|
|
652
|
+
const t = h(this.getLocalPackageName()) ?? f(this.getLocalPackageName());
|
|
653
|
+
await p.run(`npm install file:${t} ${e}`);
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
await p.run(`npm install ${this.getNpmPackageName()}@next --save-exact ${e}`);
|
|
657
|
+
}
|
|
658
|
+
async updateBootstrapConfig(e) {
|
|
659
|
+
await o.animate("Injecting plugin in bootstrap configuration", async () => {
|
|
660
|
+
const t = e.requireSourceFile("src/main.ts"), i = this.getBootstrapPluginsDeclaration(t);
|
|
661
|
+
if (!i)
|
|
662
|
+
return o.fail(`
|
|
663
|
+
Could not find plugins array in bootstrap config, please add the following manually:
|
|
664
|
+
|
|
665
|
+
${this.getBootstrapConfig()}
|
|
666
|
+
`);
|
|
667
|
+
t.addImportDeclaration(this.getBootstrapImport()), i.addElement(this.getBootstrapConfig()), await e.save(t);
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
getBootstrapPluginsDeclaration(e) {
|
|
671
|
+
var l, d;
|
|
672
|
+
const t = y(e, {
|
|
673
|
+
guard: u.isCallExpression,
|
|
674
|
+
validate: (w) => w.getExpression().getText() === "bootstrap",
|
|
675
|
+
skip: F.ImportDeclaration
|
|
676
|
+
}), i = t == null ? void 0 : t.getArguments()[1], s = (l = K(i, u.isObjectLiteralExpression)) == null ? void 0 : l.getProperty("plugins"), n = (d = K(s, u.isPropertyAssignment)) == null ? void 0 : d.getInitializer();
|
|
677
|
+
return u.isArrayLiteralExpression(n) ? n : null;
|
|
678
|
+
}
|
|
679
|
+
getTailwindContentArray(e) {
|
|
680
|
+
const t = y(e, {
|
|
681
|
+
guard: u.isPropertyAssignment,
|
|
682
|
+
validate: (s) => s.getName() === "content",
|
|
683
|
+
skip: F.JSDoc
|
|
684
|
+
}), i = t == null ? void 0 : t.getInitializer();
|
|
685
|
+
return u.isArrayLiteralExpression(i) ? i : null;
|
|
686
|
+
}
|
|
687
|
+
getBootstrapImport() {
|
|
688
|
+
return {
|
|
689
|
+
defaultImport: M(this.name),
|
|
690
|
+
moduleSpecifier: `@aerogel/plugin-${this.name}`
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
getNpmPackageName() {
|
|
694
|
+
return `@aerogel/${this.getLocalPackageName()}`;
|
|
695
|
+
}
|
|
696
|
+
getLocalPackageName() {
|
|
697
|
+
return `plugin-${this.name}`;
|
|
698
|
+
}
|
|
699
|
+
isForDevelopment() {
|
|
700
|
+
return !1;
|
|
701
|
+
}
|
|
702
|
+
getBootstrapConfig() {
|
|
703
|
+
return `${M(this.name)}()`;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
class xe extends W {
|
|
707
|
+
constructor() {
|
|
708
|
+
super("local-first");
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
class Se extends W {
|
|
712
|
+
constructor() {
|
|
713
|
+
super("solid");
|
|
714
|
+
}
|
|
715
|
+
async updateFiles(e) {
|
|
716
|
+
await this.updateNpmScripts(e), await this.updateGitIgnore(), await super.updateFiles(e);
|
|
717
|
+
}
|
|
718
|
+
async installNpmDependencies() {
|
|
719
|
+
await p.run("npm install soukai-solid@next --save-exact"), await p.run("npm install @noeldemartin/solid-utils@next --save-exact"), await p.run("npm install @solid/community-server@7.1.6 --save-dev -E"), await super.installNpmDependencies();
|
|
720
|
+
}
|
|
721
|
+
async updateNpmScripts(e) {
|
|
722
|
+
o.info("Updating npm scripts...");
|
|
723
|
+
const t = c.read("package.json");
|
|
724
|
+
if (!t)
|
|
725
|
+
return o.fail("Could not find package.json file");
|
|
726
|
+
c.write(
|
|
727
|
+
"package.json",
|
|
728
|
+
t.replace(
|
|
729
|
+
'"cy:dev": "concurrently --kill-others \\"npm run test:serve-app\\" \\"npm run cy:open\\"",',
|
|
730
|
+
'"cy:dev": "concurrently --kill-others \\"npm run test:serve-app\\" \\"npm run test:serve-pod\\" \\"npm run cy:open\\"",'
|
|
731
|
+
).replace(
|
|
732
|
+
'"cy:test": "start-server-and-test test:serve-app http-get://localhost:5001 cy:run",',
|
|
733
|
+
'"cy:test": "start-server-and-test test:serve-app http-get://localhost:5001 test:serve-pod http-get://localhost:3000 cy:run",'
|
|
734
|
+
).replace(
|
|
735
|
+
'"dev": "vite",',
|
|
736
|
+
`"dev": "vite",
|
|
737
|
+
"dev:serve-pod": "community-solid-server -c @css:config/file.json -f ./solid",`
|
|
738
|
+
).replace(
|
|
739
|
+
'"test:serve-app": "vite --port 5001 --mode testing"',
|
|
740
|
+
`"test:serve-app": "vite --port 5001 --mode testing",
|
|
741
|
+
"test:serve-pod": "community-solid-server -l warn"`
|
|
742
|
+
)
|
|
743
|
+
), e.addModifiedFile("package.json");
|
|
744
|
+
}
|
|
745
|
+
async updateGitIgnore() {
|
|
746
|
+
o.info("Updating .gitignore");
|
|
747
|
+
const e = c.read(".gitignore") ?? "";
|
|
748
|
+
c.write(".gitignore", `${e}/solid
|
|
749
|
+
`);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
class $e extends W {
|
|
753
|
+
constructor() {
|
|
754
|
+
super("soukai");
|
|
755
|
+
}
|
|
756
|
+
async installNpmDependencies() {
|
|
757
|
+
await p.run("npm install soukai@next --save-exact"), await super.installNpmDependencies();
|
|
758
|
+
}
|
|
759
|
+
getBootstrapConfig() {
|
|
760
|
+
return "soukai({ models: import.meta.glob('@/models/*', { eager: true }) })";
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
const R = [new $e(), new Se(), new xe()].reduce(
|
|
764
|
+
(a, e) => Object.assign(a, { [e.name]: e }),
|
|
765
|
+
{}
|
|
766
|
+
);
|
|
767
|
+
class D extends g {
|
|
768
|
+
constructor(t) {
|
|
769
|
+
super();
|
|
770
|
+
r(this, "plugin");
|
|
771
|
+
this.plugin = R[t] ?? o.fail(`Plugin '${t}' doesn't exist. Available plugins: ${Object.keys(R).join(", ")}`);
|
|
772
|
+
}
|
|
773
|
+
async run() {
|
|
774
|
+
await this.plugin.install();
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
r(D, "command", "install"), r(D, "description", "Install an AerogelJS plugin"), r(D, "parameters", [["plugin", "Plugin to install"]]);
|
|
778
|
+
class be {
|
|
779
|
+
run(e) {
|
|
780
|
+
const t = new Z();
|
|
781
|
+
t.name("gel").description("AerogelJS CLI").version(this.getVersion()), S.define(t), $.define(t), b.define(t), I.define(t), J.define(t), D.define(t), t.parse(e);
|
|
782
|
+
}
|
|
783
|
+
getVersion() {
|
|
784
|
+
const e = "Could not find CLI's version, please report this bug.", t = k(new x(
|
|
785
|
+
/* @vite-ignore */
|
|
786
|
+
"../package.json",
|
|
787
|
+
import.meta.url
|
|
788
|
+
));
|
|
789
|
+
if (!O(t))
|
|
790
|
+
throw new Error(e);
|
|
791
|
+
return JSON.parse(z(t).toString()).version ?? oe(e);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
const Te = C(be);
|
|
795
|
+
export {
|
|
796
|
+
Te as CLI
|
|
797
|
+
};
|
|
798
|
+
//# sourceMappingURL=aerogel-cli.js.map
|