@stacksjs/buddy 0.63.0 → 0.64.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/README.md +1 -1
- package/dist/chunk-12tkdbmy.js +7 -0
- package/dist/{chunk-8420n19j.js.map → chunk-12tkdbmy.js.map} +6 -5
- package/dist/chunk-1f6t66bt.js +5 -0
- package/dist/{chunk-1f1xhs02.js.map → chunk-1f6t66bt.js.map} +2 -2
- package/dist/chunk-463qxvjp.js +5 -0
- package/dist/{chunk-7jmyxm7k.js.map → chunk-463qxvjp.js.map} +2 -2
- package/dist/chunk-47n7wt6x.js +12 -0
- package/dist/{chunk-qx96ff3m.js.map → chunk-47n7wt6x.js.map} +2 -2
- package/dist/chunk-97kwnfsa.js +5 -0
- package/dist/{chunk-as72s87r.js.map → chunk-97kwnfsa.js.map} +2 -2
- package/dist/chunk-a8vj9csq.js +6 -0
- package/dist/{chunk-q2vnqdcs.js.map → chunk-a8vj9csq.js.map} +6 -6
- package/dist/chunk-b8124fjs.js +9 -0
- package/dist/{chunk-afhgv4v9.js.map → chunk-b8124fjs.js.map} +2 -2
- package/dist/chunk-cnvpbb2z.js +5 -0
- package/dist/{chunk-xhsvfzz8.js.map → chunk-cnvpbb2z.js.map} +4 -4
- package/dist/chunk-ehm10xxj.js +21 -0
- package/dist/{chunk-tegm7yex.js.map → chunk-ehm10xxj.js.map} +11 -15
- package/dist/chunk-f9qdyafb.js +5 -0
- package/dist/{chunk-582dnm6a.js.map → chunk-f9qdyafb.js.map} +5 -5
- package/dist/chunk-fcgh2sfr.js +5 -0
- package/dist/{chunk-mmbfc5ft.js.map → chunk-fcgh2sfr.js.map} +2 -2
- package/dist/chunk-fft99hka.js +4 -0
- package/dist/chunk-fft99hka.js.map +16 -0
- package/dist/chunk-g5tqs4wa.js +5 -0
- package/dist/{chunk-03ckp0m6.js.map → chunk-g5tqs4wa.js.map} +4 -4
- package/dist/chunk-gvpcxxae.js +5 -0
- package/dist/{chunk-6pac0yn5.js.map → chunk-gvpcxxae.js.map} +2 -2
- package/dist/chunk-hd0zdkj9.js +4 -0
- package/dist/{chunk-zzerxbrm.js.map → chunk-hd0zdkj9.js.map} +2 -2
- package/dist/chunk-hj9p7vjp.js +5 -0
- package/dist/{chunk-yrsms9d2.js.map → chunk-hj9p7vjp.js.map} +4 -4
- package/dist/chunk-hxzqmyb0.js +5 -0
- package/dist/{chunk-rt463pw6.js.map → chunk-hxzqmyb0.js.map} +2 -2
- package/dist/chunk-pabnt45p.js +5 -0
- package/dist/{chunk-nr24kzd1.js.map → chunk-pabnt45p.js.map} +2 -2
- package/dist/chunk-svr5ddhq.js +4 -0
- package/dist/{chunk-sc3etgb7.js.map → chunk-svr5ddhq.js.map} +2 -2
- package/dist/chunk-wmfxrbxe.js +5 -0
- package/dist/{chunk-cnvp47g4.js.map → chunk-wmfxrbxe.js.map} +1 -1
- package/dist/cli.js +2 -126
- package/dist/cli.js.map +3 -3
- package/dist/index.js +2 -84
- package/dist/index.js.map +1 -1
- package/dist/stacks +0 -0
- package/package.json +1 -46
- package/src/cli.ts +1 -0
- package/src/commands/build.ts +5 -4
- package/src/commands/index.ts +1 -0
- package/src/commands/make.ts +2 -2
- package/src/commands/outdated.ts +31 -0
- package/dist/chunk-03ckp0m6.js +0 -1222
- package/dist/chunk-1f1xhs02.js +0 -2223
- package/dist/chunk-582dnm6a.js +0 -664
- package/dist/chunk-6pac0yn5.js +0 -126
- package/dist/chunk-7jmyxm7k.js +0 -85
- package/dist/chunk-8217wvpy.js +0 -108
- package/dist/chunk-8217wvpy.js.map +0 -16
- package/dist/chunk-8420n19j.js +0 -7417
- package/dist/chunk-afhgv4v9.js +0 -164
- package/dist/chunk-as72s87r.js +0 -61
- package/dist/chunk-cnvp47g4.js +0 -22
- package/dist/chunk-mmbfc5ft.js +0 -287
- package/dist/chunk-nr24kzd1.js +0 -178
- package/dist/chunk-q2vnqdcs.js +0 -1696
- package/dist/chunk-qx96ff3m.js +0 -95
- package/dist/chunk-rt463pw6.js +0 -46
- package/dist/chunk-sc3etgb7.js +0 -208
- package/dist/chunk-tegm7yex.js +0 -10767
- package/dist/chunk-xhsvfzz8.js +0 -381
- package/dist/chunk-yrsms9d2.js +0 -1746
- package/dist/chunk-zzerxbrm.js +0 -110
package/dist/cli.js
CHANGED
|
@@ -1,129 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
3
|
-
import {
|
|
4
|
-
build,
|
|
5
|
-
changelog,
|
|
6
|
-
clean,
|
|
7
|
-
cloud,
|
|
8
|
-
commit,
|
|
9
|
-
configure,
|
|
10
|
-
deploy,
|
|
11
|
-
dev,
|
|
12
|
-
dns,
|
|
13
|
-
domains,
|
|
14
|
-
fresh,
|
|
15
|
-
generate,
|
|
16
|
-
http,
|
|
17
|
-
install,
|
|
18
|
-
key,
|
|
19
|
-
lint,
|
|
20
|
-
list,
|
|
21
|
-
make,
|
|
22
|
-
migrate,
|
|
23
|
-
ports,
|
|
24
|
-
prepublish,
|
|
25
|
-
projects,
|
|
26
|
-
release,
|
|
27
|
-
route,
|
|
28
|
-
seed,
|
|
29
|
-
setup,
|
|
30
|
-
test,
|
|
31
|
-
tinker,
|
|
32
|
-
upgrade,
|
|
33
|
-
version
|
|
34
|
-
} from "./chunk-8420n19j.js";
|
|
35
|
-
import"./chunk-cnvp47g4.js";
|
|
36
|
-
import"./chunk-q2vnqdcs.js";
|
|
37
|
-
import"./chunk-tegm7yex.js";
|
|
38
|
-
import"./chunk-6pac0yn5.js";
|
|
39
|
-
import"./chunk-8217wvpy.js";
|
|
40
|
-
import"./chunk-zzerxbrm.js";
|
|
41
|
-
import"./chunk-qx96ff3m.js";
|
|
42
|
-
import"./chunk-sc3etgb7.js";
|
|
2
|
+
import"./chunk-hxzqmyb0.js";import{A,B as D,C as k,D as f,E as j,F as J,I,J as g,L as p,M as a,d as M,e as N,f as O,g as Q,h as R,i as S,k as T,l as U,n as V,o as W,p as X,q as Y,r as Z,s as _,t as $,u as x,v as z,w as C,x as F,y as P,z as h}from"./chunk-12tkdbmy.js";import"./chunk-wmfxrbxe.js";import"./chunk-a8vj9csq.js";import"./chunk-ehm10xxj.js";import"./chunk-gvpcxxae.js";import"./chunk-fft99hka.js";import"./chunk-47n7wt6x.js";import"./chunk-svr5ddhq.js";import"./chunk-hd0zdkj9.js";import w from"process";import{runAction as m}from"@stacksjs/actions";import{cli as n,log as v}from"@stacksjs/cli";import{Action as l}from"@stacksjs/enums";import{path as L}from"@stacksjs/path";import{fs as i}from"@stacksjs/storage";import{ensureProjectIsInitialized as c}from"@stacksjs/utils";async function t(){const q=n("buddy");if(J(q),z(q),await c())v.debug("Project is initialized");else{v.info("Your `APP_KEY` is not yet set"),v.info("Generating application key...");const B=await m(l.KeyGenerate);if(B.isErr())v.error("Failed to set random application key.",B.error),w.exit()}M(q),N(q),O(q),Q(q),R(q),S(q),U(q),V(q),T(q),W(q),h(q),D(q),X(q),Y(q),Z(q),x(q),_(q),$(q),C(q),F(q),P(q),k(q),f(q),j(q),J(q),I(q),g(q),a(q),A(q),p(q),await e(q),q.help(),q.parse()}async function e(q){const G=L.appPath("Commands"),B=i.readdirSync(G).filter((E)=>E.endsWith(".ts"));for(let E of B){const H=await import(`${G}/${E}`);if(typeof H.default==="function")H.default(q);else console.error(`Expected a default export function in ${E}, but got:`,H.default)}const K=await import(L.listenersPath("Console.ts"));if(typeof K.default==="function")K.default(q)}w.on("uncaughtException",(q)=>{v.debug("uncaughtException"),v.error(q),w.exit(1)});w.on("unhandledRejection",(q)=>{v.debug("unhandledRejection",q),v.error(q),w.exit(1)});await t();
|
|
43
3
|
|
|
44
|
-
|
|
45
|
-
import process from "process";
|
|
46
|
-
import {runAction} from "@stacksjs/actions";
|
|
47
|
-
import {cli as cli2, log} from "@stacksjs/cli";
|
|
48
|
-
import {Action} from "@stacksjs/enums";
|
|
49
|
-
import {path as p} from "@stacksjs/path";
|
|
50
|
-
import {fs} from "@stacksjs/storage";
|
|
51
|
-
import {ensureProjectIsInitialized} from "@stacksjs/utils";
|
|
52
|
-
async function main() {
|
|
53
|
-
const buddy = cli2("buddy");
|
|
54
|
-
setup(buddy);
|
|
55
|
-
key(buddy);
|
|
56
|
-
const isAppKeySet = await ensureProjectIsInitialized();
|
|
57
|
-
if (isAppKeySet) {
|
|
58
|
-
log.debug("Project is initialized");
|
|
59
|
-
} else {
|
|
60
|
-
log.info("Your `APP_KEY` is not yet set");
|
|
61
|
-
log.info("Generating application key...");
|
|
62
|
-
const result = await runAction(Action.KeyGenerate);
|
|
63
|
-
if (result.isErr()) {
|
|
64
|
-
log.error("Failed to set random application key.", result.error);
|
|
65
|
-
process.exit();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
build(buddy);
|
|
69
|
-
changelog(buddy);
|
|
70
|
-
clean(buddy);
|
|
71
|
-
cloud(buddy);
|
|
72
|
-
commit(buddy);
|
|
73
|
-
configure(buddy);
|
|
74
|
-
dev(buddy);
|
|
75
|
-
domains(buddy);
|
|
76
|
-
deploy(buddy);
|
|
77
|
-
dns(buddy);
|
|
78
|
-
ports(buddy);
|
|
79
|
-
projects(buddy);
|
|
80
|
-
fresh(buddy);
|
|
81
|
-
generate(buddy);
|
|
82
|
-
http(buddy);
|
|
83
|
-
install(buddy);
|
|
84
|
-
lint(buddy);
|
|
85
|
-
list(buddy);
|
|
86
|
-
make(buddy);
|
|
87
|
-
migrate(buddy);
|
|
88
|
-
release(buddy);
|
|
89
|
-
route(buddy);
|
|
90
|
-
seed(buddy);
|
|
91
|
-
setup(buddy);
|
|
92
|
-
test(buddy);
|
|
93
|
-
tinker(buddy);
|
|
94
|
-
version(buddy);
|
|
95
|
-
prepublish(buddy);
|
|
96
|
-
upgrade(buddy);
|
|
97
|
-
await dynamicImports(buddy);
|
|
98
|
-
buddy.help();
|
|
99
|
-
buddy.parse();
|
|
100
|
-
}
|
|
101
|
-
async function dynamicImports(buddy) {
|
|
102
|
-
const commandsDir = p.appPath("Commands");
|
|
103
|
-
const commandFiles = fs.readdirSync(commandsDir).filter((file) => file.endsWith(".ts"));
|
|
104
|
-
for (const file of commandFiles) {
|
|
105
|
-
const commandPath = `${commandsDir}/${file}`;
|
|
106
|
-
const dynamicImport = await import(commandPath);
|
|
107
|
-
if (typeof dynamicImport.default === "function")
|
|
108
|
-
dynamicImport.default(buddy);
|
|
109
|
-
else
|
|
110
|
-
console.error(`Expected a default export function in ${file}, but got:`, dynamicImport.default);
|
|
111
|
-
}
|
|
112
|
-
const listenerImport = await import(p.listenersPath("Console.ts"));
|
|
113
|
-
if (typeof listenerImport.default === "function")
|
|
114
|
-
listenerImport.default(buddy);
|
|
115
|
-
}
|
|
116
|
-
process.on("uncaughtException", (error) => {
|
|
117
|
-
log.debug("uncaughtException");
|
|
118
|
-
log.error(error);
|
|
119
|
-
process.exit(1);
|
|
120
|
-
});
|
|
121
|
-
process.on("unhandledRejection", (error) => {
|
|
122
|
-
log.debug("unhandledRejection", error);
|
|
123
|
-
log.error(error);
|
|
124
|
-
process.exit(1);
|
|
125
|
-
});
|
|
126
|
-
await main();
|
|
127
|
-
|
|
128
|
-
//# debugId=41A6207A4142D37764756E2164756E21
|
|
4
|
+
//# debugId=98CD31F4F04EAB8C64756E2164756E21
|
|
129
5
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/cli.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import process from 'node:process'\nimport { runAction } from '@stacksjs/actions'\nimport type { CAC } from '@stacksjs/cli'\nimport { cli, log } from '@stacksjs/cli'\nimport { Action } from '@stacksjs/enums'\nimport { path as p } from '@stacksjs/path'\nimport { fs } from '@stacksjs/storage'\nimport { ensureProjectIsInitialized } from '@stacksjs/utils'\nimport * as cmd from './commands'\n\n// setup global error handlers\nprocess.on('uncaughtException', (error: Error) => {\n log.debug('uncaughtException')\n log.error(error)\n process.exit(1)\n})\n\nprocess.on('unhandledRejection', (error: Error) => {\n log.debug('unhandledRejection', error)\n log.error(error)\n process.exit(1)\n})\n\nasync function main() {\n const buddy = cli('buddy')\n\n // the following commands are not dependent on the project being initialized\n cmd.setup(buddy)\n cmd.key(buddy)\n\n // before running any commands, ensure the project is already initialized\n const isAppKeySet = await ensureProjectIsInitialized()\n if (isAppKeySet) {\n log.debug('Project is initialized')\n } else {\n log.info('Your `APP_KEY` is not yet set')\n log.info('Generating application key...')\n const result = await runAction(Action.KeyGenerate)\n\n if (result.isErr()) {\n log.error('Failed to set random application key.', result.error)\n process.exit()\n }\n }\n\n cmd.build(buddy)\n cmd.changelog(buddy)\n cmd.clean(buddy)\n cmd.cloud(buddy)\n cmd.commit(buddy)\n cmd.configure(buddy)\n cmd.dev(buddy)\n cmd.domains(buddy)\n cmd.deploy(buddy)\n cmd.dns(buddy)\n cmd.ports(buddy)\n cmd.projects(buddy)\n cmd.fresh(buddy)\n cmd.generate(buddy)\n cmd.http(buddy)\n cmd.install(buddy)\n cmd.lint(buddy)\n cmd.list(buddy)\n cmd.make(buddy)\n cmd.migrate(buddy)\n cmd.release(buddy)\n cmd.route(buddy)\n cmd.seed(buddy)\n cmd.setup(buddy)\n cmd.test(buddy)\n cmd.tinker(buddy)\n cmd.version(buddy)\n cmd.prepublish(buddy)\n cmd.upgrade(buddy)\n\n // dynamic imports\n await dynamicImports(buddy)\n\n buddy.help()\n buddy.parse()\n}\n\nawait main()\n\nasync function dynamicImports(buddy: CAC) {\n // dynamically import and register commands from ./app/Commands/*\n const commandsDir = p.appPath('Commands')\n const commandFiles = fs.readdirSync(commandsDir).filter((file) => file.endsWith('.ts'))\n\n for (const file of commandFiles) {\n const commandPath = `${commandsDir}/${file}`\n const dynamicImport = await import(commandPath)\n\n // Correctly use the default export function\n if (typeof dynamicImport.default === 'function') dynamicImport.default(buddy)\n else console.error(`Expected a default export function in ${file}, but got:`, dynamicImport.default)\n }\n\n const listenerImport = await import(p.listenersPath('Console.ts'))\n if (typeof listenerImport.default === 'function') listenerImport.default(buddy)\n}\n"
|
|
5
|
+
"import process from 'node:process'\nimport { runAction } from '@stacksjs/actions'\nimport type { CAC } from '@stacksjs/cli'\nimport { cli, log } from '@stacksjs/cli'\nimport { Action } from '@stacksjs/enums'\nimport { path as p } from '@stacksjs/path'\nimport { fs } from '@stacksjs/storage'\nimport { ensureProjectIsInitialized } from '@stacksjs/utils'\nimport * as cmd from './commands'\n\n// setup global error handlers\nprocess.on('uncaughtException', (error: Error) => {\n log.debug('uncaughtException')\n log.error(error)\n process.exit(1)\n})\n\nprocess.on('unhandledRejection', (error: Error) => {\n log.debug('unhandledRejection', error)\n log.error(error)\n process.exit(1)\n})\n\nasync function main() {\n const buddy = cli('buddy')\n\n // the following commands are not dependent on the project being initialized\n cmd.setup(buddy)\n cmd.key(buddy)\n\n // before running any commands, ensure the project is already initialized\n const isAppKeySet = await ensureProjectIsInitialized()\n if (isAppKeySet) {\n log.debug('Project is initialized')\n } else {\n log.info('Your `APP_KEY` is not yet set')\n log.info('Generating application key...')\n const result = await runAction(Action.KeyGenerate)\n\n if (result.isErr()) {\n log.error('Failed to set random application key.', result.error)\n process.exit()\n }\n }\n\n cmd.build(buddy)\n cmd.changelog(buddy)\n cmd.clean(buddy)\n cmd.cloud(buddy)\n cmd.commit(buddy)\n cmd.configure(buddy)\n cmd.dev(buddy)\n cmd.domains(buddy)\n cmd.deploy(buddy)\n cmd.dns(buddy)\n cmd.ports(buddy)\n cmd.projects(buddy)\n cmd.fresh(buddy)\n cmd.generate(buddy)\n cmd.http(buddy)\n cmd.install(buddy)\n cmd.lint(buddy)\n cmd.list(buddy)\n cmd.make(buddy)\n cmd.migrate(buddy)\n cmd.outdated(buddy)\n cmd.release(buddy)\n cmd.route(buddy)\n cmd.seed(buddy)\n cmd.setup(buddy)\n cmd.test(buddy)\n cmd.tinker(buddy)\n cmd.version(buddy)\n cmd.prepublish(buddy)\n cmd.upgrade(buddy)\n\n // dynamic imports\n await dynamicImports(buddy)\n\n buddy.help()\n buddy.parse()\n}\n\nawait main()\n\nasync function dynamicImports(buddy: CAC) {\n // dynamically import and register commands from ./app/Commands/*\n const commandsDir = p.appPath('Commands')\n const commandFiles = fs.readdirSync(commandsDir).filter((file) => file.endsWith('.ts'))\n\n for (const file of commandFiles) {\n const commandPath = `${commandsDir}/${file}`\n const dynamicImport = await import(commandPath)\n\n // Correctly use the default export function\n if (typeof dynamicImport.default === 'function') dynamicImport.default(buddy)\n else console.error(`Expected a default export function in ${file}, but got:`, dynamicImport.default)\n }\n\n const listenerImport = await import(p.listenersPath('Console.ts'))\n if (typeof listenerImport.default === 'function') listenerImport.default(buddy)\n}\n"
|
|
6
6
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
7
|
+
"mappings": ";kiBAAA,iBACA,cAAS,oBAET,QAAS,GAAK,gBACd,WAAS,kBACT,SAAS,uBACT,aAAS,0BACT,qCAAS,wBAgBT,eAAe,CAAI,EAAG,CACpB,MAAM,EAAQ,EAAI,OAAO,EAQzB,GALI,EAAM,CAAK,EACX,EAAI,CAAK,EAGO,MAAM,EAA2B,EAEnD,EAAI,MAAM,wBAAwB,MAC7B,CACL,EAAI,KAAK,+BAA+B,EACxC,EAAI,KAAK,+BAA+B,EACxC,MAAM,EAAS,MAAM,EAAU,EAAO,WAAW,EAEjD,GAAI,EAAO,MAAM,EACf,EAAI,MAAM,wCAAyC,EAAO,KAAK,EAC/D,EAAQ,KAAK,EAIjB,AAAI,EAAM,CAAK,EACX,EAAU,CAAK,EACf,EAAM,CAAK,EACX,EAAM,CAAK,EACX,EAAO,CAAK,EACZ,EAAU,CAAK,EACf,EAAI,CAAK,EACT,EAAQ,CAAK,EACb,EAAO,CAAK,EACZ,EAAI,CAAK,EACT,EAAM,CAAK,EACX,EAAS,CAAK,EACd,EAAM,CAAK,EACX,EAAS,CAAK,EACd,EAAK,CAAK,EACV,EAAQ,CAAK,EACb,EAAK,CAAK,EACV,EAAK,CAAK,EACV,EAAK,CAAK,EACV,EAAQ,CAAK,EACb,EAAS,CAAK,EACd,EAAQ,CAAK,EACb,EAAM,CAAK,EACX,EAAK,CAAK,EACV,EAAM,CAAK,EACX,EAAK,CAAK,EACV,EAAO,CAAK,EACZ,EAAQ,CAAK,EACb,EAAW,CAAK,EAChB,EAAQ,CAAK,EAGjB,MAAM,EAAe,CAAK,EAE1B,EAAM,KAAK,EACX,EAAM,MAAM,EAKd,eAAe,CAAc,CAAC,EAAY,CAExC,MAAM,EAAc,EAAE,QAAQ,UAAU,EAClC,EAAe,EAAG,YAAY,CAAW,EAAE,OAAO,CAAC,IAAS,EAAK,SAAS,KAAK,CAAC,EAEtF,QAAW,KAAQ,EAAc,CAE/B,MAAM,EAAgB,MAAa,OADf,GAAG,KAAe,KAItC,UAAW,EAAc,UAAY,WAAY,EAAc,QAAQ,CAAK,MACvE,SAAQ,MAAM,yCAAyC,cAAkB,EAAc,OAAO,EAGrG,MAAM,EAAiB,MAAa,SAAE,cAAc,YAAY,GAChE,UAAW,EAAe,UAAY,WAAY,EAAe,QAAQ,CAAK,EAzFhF,EAAQ,GAAG,oBAAqB,CAAC,IAAiB,CAChD,EAAI,MAAM,mBAAmB,EAC7B,EAAI,MAAM,CAAK,EACf,EAAQ,KAAK,CAAC,EACf,EAED,EAAQ,GAAG,qBAAsB,CAAC,IAAiB,CACjD,EAAI,MAAM,qBAAsB,CAAK,EACrC,EAAI,MAAM,CAAK,EACf,EAAQ,KAAK,CAAC,EACf,EA8DD,MAAM,EAAK",
|
|
8
|
+
"debugId": "98CD31F4F04EAB8C64756E2164756E21",
|
|
9
9
|
"names": []
|
|
10
10
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,87 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
3
|
-
import {
|
|
4
|
-
build,
|
|
5
|
-
changelog,
|
|
6
|
-
clean,
|
|
7
|
-
cloud,
|
|
8
|
-
commit,
|
|
9
|
-
configure,
|
|
10
|
-
create,
|
|
11
|
-
deploy,
|
|
12
|
-
dev,
|
|
13
|
-
dns,
|
|
14
|
-
domains,
|
|
15
|
-
ensureEnvIsSet,
|
|
16
|
-
fresh,
|
|
17
|
-
generate,
|
|
18
|
-
http,
|
|
19
|
-
install,
|
|
20
|
-
key,
|
|
21
|
-
lint,
|
|
22
|
-
list,
|
|
23
|
-
make,
|
|
24
|
-
migrate,
|
|
25
|
-
optimizePkgxDeps,
|
|
26
|
-
ports,
|
|
27
|
-
prepublish,
|
|
28
|
-
projects,
|
|
29
|
-
release,
|
|
30
|
-
route,
|
|
31
|
-
seed,
|
|
32
|
-
setup,
|
|
33
|
-
startDevelopmentServer,
|
|
34
|
-
test,
|
|
35
|
-
tinker,
|
|
36
|
-
types,
|
|
37
|
-
upgrade,
|
|
38
|
-
version
|
|
39
|
-
} from "./chunk-8420n19j.js";
|
|
40
|
-
import"./chunk-cnvp47g4.js";
|
|
41
|
-
import"./chunk-q2vnqdcs.js";
|
|
42
|
-
import"./chunk-tegm7yex.js";
|
|
43
|
-
import"./chunk-6pac0yn5.js";
|
|
44
|
-
import"./chunk-8217wvpy.js";
|
|
45
|
-
import"./chunk-zzerxbrm.js";
|
|
46
|
-
import"./chunk-qx96ff3m.js";
|
|
47
|
-
import"./chunk-sc3etgb7.js";
|
|
48
|
-
export {
|
|
49
|
-
version,
|
|
50
|
-
upgrade,
|
|
51
|
-
types,
|
|
52
|
-
tinker,
|
|
53
|
-
test,
|
|
54
|
-
startDevelopmentServer,
|
|
55
|
-
setup,
|
|
56
|
-
seed,
|
|
57
|
-
route,
|
|
58
|
-
release,
|
|
59
|
-
projects,
|
|
60
|
-
prepublish,
|
|
61
|
-
ports,
|
|
62
|
-
optimizePkgxDeps,
|
|
63
|
-
migrate,
|
|
64
|
-
make,
|
|
65
|
-
list,
|
|
66
|
-
lint,
|
|
67
|
-
key,
|
|
68
|
-
install,
|
|
69
|
-
http,
|
|
70
|
-
generate,
|
|
71
|
-
fresh,
|
|
72
|
-
ensureEnvIsSet,
|
|
73
|
-
domains,
|
|
74
|
-
dns,
|
|
75
|
-
dev,
|
|
76
|
-
deploy,
|
|
77
|
-
create,
|
|
78
|
-
configure,
|
|
79
|
-
commit,
|
|
80
|
-
cloud,
|
|
81
|
-
clean,
|
|
82
|
-
changelog,
|
|
83
|
-
build
|
|
84
|
-
};
|
|
2
|
+
import"./chunk-hxzqmyb0.js";import{A as z,B as A,C as B,D as C,E as D,F as E,G as F,H as G,I as H,J as I,K as J,L as K,M as L,d as e,e as f,f as m,g as p,h as t,i as x,j as a,k as b,l as c,m as d,n as g,o as h,p as i,q as j,r as k,s as l,t as n,u as q,v as s,w as u,x as v,y as w,z as y}from"./chunk-12tkdbmy.js";import"./chunk-wmfxrbxe.js";import"./chunk-a8vj9csq.js";import"./chunk-ehm10xxj.js";import"./chunk-gvpcxxae.js";import"./chunk-fft99hka.js";import"./chunk-47n7wt6x.js";import"./chunk-svr5ddhq.js";import"./chunk-hd0zdkj9.js";export{L as version,K as upgrade,J as types,I as tinker,H as test,d as startDevelopmentServer,E as setup,D as seed,C as route,B as release,A as projects,z as prepublish,y as ports,w as outdated,F as optimizePkgxDeps,v as migrate,u as make,n as list,l as lint,s as key,q as install,k as http,j as generate,i as fresh,G as ensureEnvIsSet,g as domains,h as dns,c as dev,b as deploy,a as create,x as configure,t as commit,p as cloud,m as clean,f as changelog,e as build};
|
|
85
3
|
|
|
86
|
-
//# debugId=
|
|
4
|
+
//# debugId=5D1A1157F85CB69864756E2164756E21
|
|
87
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
package/dist/stacks
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.64.0",
|
|
5
5
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -78,51 +78,6 @@
|
|
|
78
78
|
"typecheck": "bun --bun tsc --noEmit",
|
|
79
79
|
"prepublishOnly": "bun run build"
|
|
80
80
|
},
|
|
81
|
-
"peerDependencies": {
|
|
82
|
-
"@stacksjs/actions": "latest",
|
|
83
|
-
"@stacksjs/ai": "latest",
|
|
84
|
-
"@stacksjs/alias": "latest",
|
|
85
|
-
"@stacksjs/arrays": "latest",
|
|
86
|
-
"@stacksjs/auth": "latest",
|
|
87
|
-
"@stacksjs/build": "latest",
|
|
88
|
-
"@stacksjs/cache": "latest",
|
|
89
|
-
"@stacksjs/cli": "latest",
|
|
90
|
-
"@stacksjs/cloud": "latest",
|
|
91
|
-
"@stacksjs/collections": "latest",
|
|
92
|
-
"@stacksjs/config": "latest",
|
|
93
|
-
"@stacksjs/database": "latest",
|
|
94
|
-
"@stacksjs/desktop": "latest",
|
|
95
|
-
"@stacksjs/development": "latest",
|
|
96
|
-
"@stacksjs/dns": "latest",
|
|
97
|
-
"@stacksjs/docs": "latest",
|
|
98
|
-
"@stacksjs/email": "latest",
|
|
99
|
-
"@stacksjs/enums": "latest",
|
|
100
|
-
"@stacksjs/error-handling": "latest",
|
|
101
|
-
"@stacksjs/events": "latest",
|
|
102
|
-
"@stacksjs/faker": "latest",
|
|
103
|
-
"@stacksjs/git": "latest",
|
|
104
|
-
"@stacksjs/health": "latest",
|
|
105
|
-
"@stacksjs/lint": "latest",
|
|
106
|
-
"@stacksjs/logging": "latest",
|
|
107
|
-
"@stacksjs/notifications": "latest",
|
|
108
|
-
"@stacksjs/objects": "latest",
|
|
109
|
-
"@stacksjs/orm": "latest",
|
|
110
|
-
"@stacksjs/path": "latest",
|
|
111
|
-
"@stacksjs/payments": "latest",
|
|
112
|
-
"@stacksjs/realtime": "latest",
|
|
113
|
-
"@stacksjs/router": "latest",
|
|
114
|
-
"@stacksjs/search-engine": "latest",
|
|
115
|
-
"@stacksjs/security": "latest",
|
|
116
|
-
"@stacksjs/server": "latest",
|
|
117
|
-
"@stacksjs/storage": "latest",
|
|
118
|
-
"@stacksjs/strings": "latest",
|
|
119
|
-
"@stacksjs/testing": "latest",
|
|
120
|
-
"@stacksjs/tunnel": "latest",
|
|
121
|
-
"@stacksjs/types": "latest",
|
|
122
|
-
"@stacksjs/ui": "latest",
|
|
123
|
-
"@stacksjs/utils": "latest",
|
|
124
|
-
"@stacksjs/validation": "latest"
|
|
125
|
-
},
|
|
126
81
|
"dependencies": {
|
|
127
82
|
"@stacksjs/actions": "latest",
|
|
128
83
|
"@stacksjs/ai": "latest",
|
package/src/cli.ts
CHANGED
package/src/commands/build.ts
CHANGED
|
@@ -29,15 +29,16 @@ export function build(buddy: CLI) {
|
|
|
29
29
|
buddy
|
|
30
30
|
.command('build [type]', descriptions.build)
|
|
31
31
|
.option('-c, --components', descriptions.components)
|
|
32
|
-
.option('-v, --vue-components', descriptions.vueComponents) //
|
|
33
|
-
.option('-w, --web-components', descriptions.webComponents) //
|
|
34
|
-
.option('-e, --elements', descriptions.elements)
|
|
32
|
+
.option('-v, --vue-components', descriptions.vueComponents) // also automatically built via the -c flag
|
|
33
|
+
.option('-w, --web-components', descriptions.webComponents) // also automatically built via the -c flag
|
|
34
|
+
.option('-e, --elements', descriptions.elements) // alias for --web-components
|
|
35
35
|
.option('-f, --functions', descriptions.functions)
|
|
36
36
|
.option('-p, --views', descriptions.pages)
|
|
37
|
+
.option('--pages', descriptions.pages) // alias for --views
|
|
37
38
|
.option('-d, --docs', descriptions.docs)
|
|
38
39
|
.option('-b, --buddy', descriptions.buddy, { default: false })
|
|
39
40
|
.option('-s, --stacks', descriptions.framework, { default: false })
|
|
40
|
-
.option('
|
|
41
|
+
.option('--project [project]', descriptions.project, { default: false })
|
|
41
42
|
.option('--server', descriptions.server, { default: false })
|
|
42
43
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
43
44
|
.action(async (server: string | undefined, options: BuildOptions) => {
|
package/src/commands/index.ts
CHANGED
package/src/commands/make.ts
CHANGED
|
@@ -330,13 +330,13 @@ export function make(buddy: CLI) {
|
|
|
330
330
|
|
|
331
331
|
log.info(`Creating SSL certificate...`)
|
|
332
332
|
await runCommand(`tlsx ${domain}`, {
|
|
333
|
-
cwd: p.
|
|
333
|
+
cwd: p.storagePath('keys'),
|
|
334
334
|
})
|
|
335
335
|
log.success('Certificate created')
|
|
336
336
|
|
|
337
337
|
log.info(`Installing SSL certificate...`)
|
|
338
338
|
await runCommand(`tlsx -install`, {
|
|
339
|
-
cwd: p.
|
|
339
|
+
cwd: p.storagePath('keys'),
|
|
340
340
|
})
|
|
341
341
|
log.success('Certificate installed')
|
|
342
342
|
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
2
|
+
import { log } from '@stacksjs/logging'
|
|
3
|
+
import { projectPath } from '@stacksjs/path'
|
|
4
|
+
import type { CLI, CliOptions } from '@stacksjs/types'
|
|
5
|
+
import { $ } from 'bun'
|
|
6
|
+
|
|
7
|
+
export function outdated(buddy: CLI) {
|
|
8
|
+
const descriptions = {
|
|
9
|
+
outdated: 'List all the outdated project dependencies',
|
|
10
|
+
project: 'Target a specific project',
|
|
11
|
+
verbose: 'Enable verbose output',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
buddy
|
|
15
|
+
.command('outdated', descriptions.outdated)
|
|
16
|
+
.option('-p, --project [project]', descriptions.project, { default: false })
|
|
17
|
+
.option('--verbose', descriptions.verbose, { default: false })
|
|
18
|
+
.action(async (options: CliOptions) => {
|
|
19
|
+
log.debug('Running `buddy outdated` ...')
|
|
20
|
+
|
|
21
|
+
$.cwd(projectPath())
|
|
22
|
+
|
|
23
|
+
const response = await $`bun outdated`.text()
|
|
24
|
+
console.log(response)
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
buddy.on('outdated:*', () => {
|
|
28
|
+
console.error('Invalid command: %s\nSee --help for a list of available commands.', buddy.args.join(' '))
|
|
29
|
+
process.exit(1)
|
|
30
|
+
})
|
|
31
|
+
}
|