stacks 0.58.41 → 0.58.44
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/core/actions/dist/src/build/core.js +10 -14
- package/core/actions/dist/src/lint/index.js +11 -15
- package/core/actions/dist/src/upgrade/index.js +62 -0
- package/core/actions/dist/src/upgrade.js +10 -5
- package/core/actions/package.json +1 -1
- package/core/actions/src/build/cli.ts +7 -0
- package/core/actions/src/build/core.ts +16 -48
- package/core/actions/src/dev/api.ts +1 -1
- package/core/actions/src/lint/index.ts +20 -12
- package/core/actions/src/upgrade/index.ts +16 -20
- package/core/actions/src/upgrade.ts +5 -5
- package/core/ai/dist/index.js +10372 -0
- package/core/ai/package.json +3 -3
- package/core/alias/package.json +1 -1
- package/core/analytics/package.json +1 -1
- package/core/api/dist/index.js +636 -0
- package/core/api/package.json +1 -1
- package/core/arrays/package.json +1 -1
- package/core/auth/package.json +1 -1
- package/core/buddy/{src/compile.ts → compile.ts} +1 -2
- package/core/buddy/dist/{chunk-c58676a39cd23812.js → chunk-b32089b9556f373c.js} +48 -14
- package/core/buddy/dist/cli.js +6 -2
- package/core/buddy/dist/index.js +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/cli.ts +2 -3
- package/core/buddy/src/commands/build.ts +55 -10
- package/core/buddy/src/commands/lint.ts +2 -1
- package/core/buddy/src/commands/upgrade.ts +2 -2
- package/core/build/package.json +1 -1
- package/core/bun-create/bud/package.json +1 -1
- package/core/bun-create/buddy/package.json +1 -1
- package/core/bun-create/stack/package.json +1 -1
- package/core/bun-create/stacks/package.json +1 -1
- package/core/bun-create/stx/package.json +1 -1
- package/core/bun-plugin-yaml/package.json +1 -1
- package/core/cache/package.json +2 -2
- package/core/chat/package.json +1 -1
- package/core/cli/dist/index.js +1 -1
- package/core/cli/package.json +1 -1
- package/core/cloud/build.ts +4 -0
- package/core/cloud/dist/index.js +2718 -0
- package/core/cloud/package.json +29 -29
- package/core/cloud/src/cloud/ai.ts +4 -34
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package-lock.json +6 -6
- package/core/cloud/src/cloud/aws-sdk-layer/nodejs/package.json +2 -2
- package/core/cloud/src/cloud/cdn.ts +23 -23
- package/core/cloud/src/cloud/compute.ts +1 -0
- package/core/cloud/src/cloud/index.ts +1 -0
- package/core/collections/package.json +1 -1
- package/core/config/dist/index.js +2 -13
- package/core/config/package.json +1 -1
- package/core/database/package.json +2 -2
- package/core/datetime/package.json +1 -1
- package/core/desktop/package.json +3 -5
- package/core/development/package.json +1 -1
- package/core/dns/package.json +4 -4
- package/core/docs/package.json +1 -1
- package/core/email/package.json +1 -1
- package/core/enums/dist/index.js +3 -3
- package/core/enums/package.json +1 -1
- package/core/enums/src/index.ts +3 -3
- package/core/env/package.json +1 -1
- package/core/error-handling/package.json +1 -1
- package/core/eslint-config/package.json +4 -4
- package/core/events/package.json +1 -1
- package/core/faker/package.json +1 -1
- package/core/git/package.json +1 -1
- package/core/health/package.json +1 -1
- package/core/http/package.json +1 -1
- package/core/lint/package.json +1 -1
- package/core/logging/package.json +1 -1
- package/core/notifications/package.json +1 -1
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/path/dist/index.js +14 -2
- package/core/path/package.json +1 -1
- package/core/path/src/index.ts +18 -2
- package/core/payments/package.json +1 -1
- package/core/push/dist/index.js +35 -0
- package/core/push/package.json +1 -1
- package/core/query-builder/package.json +1 -1
- package/core/queue/package.json +1 -1
- package/core/raycast/package.json +6 -2
- package/core/realtime/package.json +1 -1
- package/core/repl/package.json +1 -1
- package/core/router/dist/index.js +1 -2
- package/core/router/package.json +1 -1
- package/core/router/src/middleware.ts +1 -3
- package/core/scheduler/package.json +1 -1
- package/core/search-engine/package.json +1 -1
- package/core/security/package.json +1 -1
- package/core/server/package.json +1 -1
- package/core/signals/package.json +1 -1
- package/core/slug/package.json +1 -1
- package/core/sms/dist/index.js +240 -0
- package/core/sms/package.json +1 -1
- package/core/storage/dist/index.js +3 -1
- package/core/storage/package.json +1 -1
- package/core/storage/src/zip.ts +3 -6
- package/core/strings/package.json +1 -1
- package/core/tables/package.json +2 -2
- package/core/testing/package.json +1 -1
- package/core/tinker/package.json +1 -1
- package/core/tunnel/package.json +1 -1
- package/core/types/package.json +2 -2
- package/core/types/src/cli.ts +2 -2
- package/core/ui/dist/index.js +4 -2
- package/core/ui/package.json +2 -2
- package/core/ui/src/uno.config.ts +2 -1
- package/core/utils/dist/index.js +1 -1
- package/core/utils/package.json +1 -1
- package/core/validation/package.json +3 -3
- package/core/vite/dist/index.js +2 -10
- package/core/vite/package.json +3 -3
- package/core/vite/src/api.ts +9 -11
- package/core/vite/src/example-vue.ts +1 -8
- package/core/whois/package.json +1 -1
- package/core/x-ray/package.json +2 -3
- package/core/x-ray/src/desktop/main.ts +0 -6
- package/core/zsh-buddy/package.json +8 -2
- package/ide/dictionary.txt +6 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +2 -2
- package/core/music/package.json +0 -46
- package/core/music/src/components/SampleComponent.stx +0 -5
- package/core/music/src/layouts/default.stx +0 -3
- package/core/music/src/pages/index.stx +0 -10
- package/core/music/src/pages/music.stx +0 -10
- package/core/music/src/styles/main.css +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { log, runCommand } from '@stacksjs/cli'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
const result = await runCommand('bun build ./src/cli.ts --compile --outfile budd', {
|
|
3
|
+
const result = await runCommand('bun build ./src/cli.ts --compile --outfile buddy', {
|
|
5
4
|
cwd: import.meta.dir,
|
|
6
5
|
})
|
|
7
6
|
|
|
@@ -7,10 +7,12 @@ import {Action} from "@stacksjs/enums";
|
|
|
7
7
|
import {isString} from "@stacksjs/validation";
|
|
8
8
|
function build(buddy) {
|
|
9
9
|
const descriptions = {
|
|
10
|
+
build: "Build any of your libraries (packages) for production use",
|
|
10
11
|
components: "Build your component library",
|
|
11
12
|
vueComponents: "Build your Vue component library",
|
|
12
13
|
webComponents: "Build your framework agnostic web component library",
|
|
13
14
|
elements: "An alias to the -w flag",
|
|
15
|
+
buddy: "Build the Buddy binary",
|
|
14
16
|
functions: "Build your function library",
|
|
15
17
|
desktop: "Build the Desktop Application",
|
|
16
18
|
pages: "Build your frontend",
|
|
@@ -20,13 +22,45 @@ function build(buddy) {
|
|
|
20
22
|
project: "Target a specific project",
|
|
21
23
|
verbose: "Enable verbose output"
|
|
22
24
|
};
|
|
23
|
-
buddy.command("build",
|
|
25
|
+
buddy.command("build [type]", descriptions.build).option("-c, --components", descriptions.components).option("-v, --vue-components", descriptions.vueComponents).option("-w, --web-components", descriptions.webComponents).option("-e, --elements", descriptions.elements).option("-f, --functions", descriptions.functions).option("-p, --views", descriptions.pages).option("-d, --docs", descriptions.docs).option("-b, --buddy", descriptions.buddy, { default: false }).option("-s, --stacks", descriptions.framework, { default: false }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (server, options) => {
|
|
26
|
+
switch (server) {
|
|
27
|
+
case "components":
|
|
28
|
+
options.components = true;
|
|
29
|
+
break;
|
|
30
|
+
case "vue":
|
|
31
|
+
options.vueComponents = true;
|
|
32
|
+
break;
|
|
33
|
+
case "web-components":
|
|
34
|
+
options.webComponents = true;
|
|
35
|
+
break;
|
|
36
|
+
case "functions":
|
|
37
|
+
options.functions = true;
|
|
38
|
+
break;
|
|
39
|
+
case "views":
|
|
40
|
+
options.views = true;
|
|
41
|
+
break;
|
|
42
|
+
case "docs":
|
|
43
|
+
options.docs = true;
|
|
44
|
+
break;
|
|
45
|
+
case "buddy":
|
|
46
|
+
options.buddy = true;
|
|
47
|
+
break;
|
|
48
|
+
case "cli":
|
|
49
|
+
options.buddy = true;
|
|
50
|
+
break;
|
|
51
|
+
case "stacks":
|
|
52
|
+
options.stacks = true;
|
|
53
|
+
break;
|
|
54
|
+
default:
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
24
57
|
if (hasNoOptions(options)) {
|
|
25
58
|
let answers = await prompt.require().multiselect(descriptions.select, {
|
|
26
59
|
options: [
|
|
27
60
|
{ label: "Components", value: "components" },
|
|
61
|
+
{ label: "Web Components", value: "web-components" },
|
|
28
62
|
{ label: "Functions", value: "functions" },
|
|
29
|
-
{ label: "
|
|
63
|
+
{ label: "Views", value: "views" },
|
|
30
64
|
{ label: "Documentation", value: "docs" }
|
|
31
65
|
]
|
|
32
66
|
});
|
|
@@ -39,34 +73,34 @@ function build(buddy) {
|
|
|
39
73
|
await runAction(Action.BuildStacks, options);
|
|
40
74
|
process.exit(ExitCode.Success);
|
|
41
75
|
});
|
|
42
|
-
buddy.command("build:components", "Automagically build component libraries for production use & npm/CDN distribution").option("-c, --components", descriptions.components, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
76
|
+
buddy.command("build:components", "Automagically build component libraries for production use & npm/CDN distribution").alias("prod:components").option("-c, --components", descriptions.components, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
43
77
|
await runAction(Action.BuildComponentLibs, options);
|
|
44
78
|
});
|
|
45
|
-
buddy.command("build:cli", "Automagically build the CLI").option("-
|
|
79
|
+
buddy.command("build:cli", "Automagically build the CLI").alias("prod:cli").option("-b, --buddy", descriptions.buddy, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
46
80
|
await runAction(Action.BuildCli, options);
|
|
47
81
|
});
|
|
48
82
|
buddy.command("build:functions", "Automagically build function library for npm/CDN distribution").option("-f, --functions", descriptions.functions, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
49
83
|
await runAction(Action.BuildFunctionLib, options);
|
|
50
84
|
});
|
|
51
|
-
buddy.command("build:vue-components", "Automagically build Vue component library for npm/CDN distribution").option("-v, --vue-components", descriptions.vueComponents, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).alias("build:vue").action(async (options) => {
|
|
85
|
+
buddy.command("build:vue-components", "Automagically build Vue component library for npm/CDN distribution").alias("build:vue").alias("prod:vue-components").alias("prod:vue").option("-v, --vue-components", descriptions.vueComponents, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).alias("build:vue").action(async (options) => {
|
|
52
86
|
await runAction(Action.BuildVueComponentLib, options);
|
|
53
87
|
});
|
|
54
|
-
buddy.command("build:web-components", "Automagically build Web Component library for npm/CDN distribution").option("-w, --web-components", descriptions.webComponents, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).
|
|
88
|
+
buddy.command("build:web-components", "Automagically build Web Component library for npm/CDN distribution").alias("build:wc").alias("prod:web-components").alias("prod:wc").option("-w, --web-components", descriptions.webComponents, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
55
89
|
await runAction(Action.BuildWebComponentLib, options);
|
|
56
90
|
});
|
|
57
|
-
buddy.command("build:docs", "Automagically build your documentation site.").option("-d, --docs", descriptions.docs, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
91
|
+
buddy.command("build:docs", "Automagically build your documentation site.").alias("prod:docs").alias("build:documentation").alias("prod:documentation").option("-d, --docs", descriptions.docs, { default: true }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
58
92
|
await runAction(Action.BuildDocs, options);
|
|
59
93
|
});
|
|
60
|
-
buddy.command("build:core", "Automagically build the Stacks core.").option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default:
|
|
94
|
+
buddy.command("build:core", "Automagically build the Stacks core.").option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
61
95
|
const startTime = await intro("buddy build:core");
|
|
62
96
|
const result = await runAction(Action.BuildCore, options);
|
|
63
97
|
if (result.isErr()) {
|
|
64
98
|
log2.error("Failed to build the Stacks core.", result.error);
|
|
65
99
|
process.exit();
|
|
66
100
|
}
|
|
67
|
-
await outro("
|
|
101
|
+
await outro("Core packages built successfully", { startTime, useSeconds: true });
|
|
68
102
|
});
|
|
69
|
-
buddy.command("build:desktop", descriptions.desktop).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
103
|
+
buddy.command("build:desktop", descriptions.desktop).alias("prod:desktop").option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
70
104
|
const perf = await intro("buddy build:desktop");
|
|
71
105
|
const result = await runAction(Action.BuildDesktop, options);
|
|
72
106
|
if (result.isErr()) {
|
|
@@ -92,7 +126,7 @@ function build(buddy) {
|
|
|
92
126
|
});
|
|
93
127
|
}
|
|
94
128
|
var hasNoOptions = function(options) {
|
|
95
|
-
return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.
|
|
129
|
+
return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.views && !options.docs && !options.stacks && !options.buddy;
|
|
96
130
|
};
|
|
97
131
|
|
|
98
132
|
// src/commands/changelog.ts
|
|
@@ -1047,7 +1081,7 @@ function lint(buddy) {
|
|
|
1047
1081
|
};
|
|
1048
1082
|
buddy.command("lint", descriptions.lint).option("-f, --fix", descriptions.lintFix, { default: false }).option("-p, --project", descriptions.project, { default: false }).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
1049
1083
|
const startTime = await intro10("buddy lint");
|
|
1050
|
-
const result = await runAction9(Action9.Lint,
|
|
1084
|
+
const result = await runAction9(Action9.Lint, options);
|
|
1051
1085
|
if (result.isErr()) {
|
|
1052
1086
|
await outro10("While running `buddy lint`, there was an issue", { startTime, useSeconds: true }, result.error);
|
|
1053
1087
|
process16.exit();
|
|
@@ -1632,7 +1666,7 @@ function upgrade(buddy) {
|
|
|
1632
1666
|
const descriptions2 = {
|
|
1633
1667
|
command: "Upgrade dependencies, framework, package manager, JS/TS runtime",
|
|
1634
1668
|
framework: "Upgrade the Stacks framework",
|
|
1635
|
-
dependencies: "Upgrade your dependencies",
|
|
1669
|
+
dependencies: "Upgrade your dependencies (pkgx.yaml & package.json)",
|
|
1636
1670
|
bun: "Upgrade Bun to the latest version",
|
|
1637
1671
|
all: "Upgrade Node, package manager, project dependencies, and framework",
|
|
1638
1672
|
force: "Overwrite possible local updates with remote framework updates",
|
|
@@ -1657,7 +1691,7 @@ function upgrade(buddy) {
|
|
|
1657
1691
|
answers = [answers];
|
|
1658
1692
|
options = answers.reduce((a, v) => ({ ...a, [v]: true }), {});
|
|
1659
1693
|
}
|
|
1660
|
-
const result = await runAction18(Action18.Upgrade,
|
|
1694
|
+
const result = await runAction18(Action18.Upgrade, options);
|
|
1661
1695
|
if (result.isErr()) {
|
|
1662
1696
|
await outro19("While running the buddy:upgrade command, there was an issue", { startTime: perf, useSeconds: true }, result.error);
|
|
1663
1697
|
process29.exit();
|
package/core/buddy/dist/cli.js
CHANGED
|
@@ -14,9 +14,11 @@ generate,
|
|
|
14
14
|
http,
|
|
15
15
|
install,
|
|
16
16
|
key,
|
|
17
|
+
lint,
|
|
17
18
|
release,
|
|
18
|
-
setup
|
|
19
|
-
|
|
19
|
+
setup,
|
|
20
|
+
upgrade
|
|
21
|
+
} from "./chunk-b32089b9556f373c.js";
|
|
20
22
|
import"./chunk-0455e53fab4244b1.js";
|
|
21
23
|
|
|
22
24
|
// src/cli.ts
|
|
@@ -42,8 +44,10 @@ async function main() {
|
|
|
42
44
|
generate(buddy);
|
|
43
45
|
http(buddy);
|
|
44
46
|
install(buddy);
|
|
47
|
+
lint(buddy);
|
|
45
48
|
release(buddy);
|
|
46
49
|
setup(buddy);
|
|
50
|
+
upgrade(buddy);
|
|
47
51
|
buddy.parse();
|
|
48
52
|
}
|
|
49
53
|
process.on("uncaughtException", handleError);
|
package/core/buddy/dist/index.js
CHANGED
package/core/buddy/package.json
CHANGED
package/core/buddy/src/cli.ts
CHANGED
|
@@ -12,7 +12,6 @@ async function main() {
|
|
|
12
12
|
const buddy = cli('buddy')
|
|
13
13
|
|
|
14
14
|
// the following commands are not dependent on the project being initialized
|
|
15
|
-
// await installIfVersionMismatch()
|
|
16
15
|
cmd.setup(buddy)
|
|
17
16
|
cmd.key(buddy)
|
|
18
17
|
|
|
@@ -33,7 +32,7 @@ async function main() {
|
|
|
33
32
|
cmd.generate(buddy)
|
|
34
33
|
cmd.http(buddy)
|
|
35
34
|
cmd.install(buddy)
|
|
36
|
-
|
|
35
|
+
cmd.lint(buddy)
|
|
37
36
|
// cmd.make(buddy)
|
|
38
37
|
// cmd.migrate(buddy)
|
|
39
38
|
cmd.release(buddy)
|
|
@@ -43,7 +42,7 @@ async function main() {
|
|
|
43
42
|
// cmd.test(buddy)
|
|
44
43
|
// cmd.version(buddy)
|
|
45
44
|
// cmd.prepublish(buddy)
|
|
46
|
-
|
|
45
|
+
cmd.upgrade(buddy)
|
|
47
46
|
|
|
48
47
|
buddy.parse()
|
|
49
48
|
}
|
|
@@ -8,10 +8,12 @@ import { isString } from '@stacksjs/validation'
|
|
|
8
8
|
|
|
9
9
|
export function build(buddy: CLI) {
|
|
10
10
|
const descriptions = {
|
|
11
|
+
build: 'Build any of your libraries (packages) for production use',
|
|
11
12
|
components: 'Build your component library',
|
|
12
13
|
vueComponents: 'Build your Vue component library',
|
|
13
14
|
webComponents: 'Build your framework agnostic web component library',
|
|
14
15
|
elements: 'An alias to the -w flag',
|
|
16
|
+
buddy: 'Build the Buddy binary',
|
|
15
17
|
functions: 'Build your function library',
|
|
16
18
|
desktop: 'Build the Desktop Application',
|
|
17
19
|
pages: 'Build your frontend',
|
|
@@ -23,7 +25,7 @@ export function build(buddy: CLI) {
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
buddy
|
|
26
|
-
.command('build',
|
|
28
|
+
.command('build [type]', descriptions.build)
|
|
27
29
|
.option('-c, --components', descriptions.components)
|
|
28
30
|
.option('-v, --vue-components', descriptions.vueComponents) // these are automatically built with your -c option as well
|
|
29
31
|
.option('-w, --web-components', descriptions.webComponents) // these are automatically built with your -c option as well
|
|
@@ -31,19 +33,52 @@ export function build(buddy: CLI) {
|
|
|
31
33
|
.option('-f, --functions', descriptions.functions)
|
|
32
34
|
.option('-p, --views', descriptions.pages)
|
|
33
35
|
.option('-d, --docs', descriptions.docs)
|
|
36
|
+
.option('-b, --buddy', descriptions.buddy, { default: false })
|
|
34
37
|
.option('-s, --stacks', descriptions.framework, { default: false })
|
|
35
38
|
.option('-p, --project', descriptions.project, { default: false })
|
|
36
39
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
37
|
-
.action(async (options: BuildOptions) => {
|
|
40
|
+
.action(async (server: string | undefined, options: BuildOptions) => {
|
|
41
|
+
switch (server) {
|
|
42
|
+
case 'components':
|
|
43
|
+
options.components = true
|
|
44
|
+
break
|
|
45
|
+
case 'vue':
|
|
46
|
+
options.vueComponents = true
|
|
47
|
+
break
|
|
48
|
+
case 'web-components':
|
|
49
|
+
options.webComponents = true
|
|
50
|
+
break
|
|
51
|
+
case 'functions':
|
|
52
|
+
options.functions = true
|
|
53
|
+
break
|
|
54
|
+
case 'views':
|
|
55
|
+
options.views = true
|
|
56
|
+
break
|
|
57
|
+
case 'docs':
|
|
58
|
+
options.docs = true
|
|
59
|
+
break
|
|
60
|
+
case 'buddy':
|
|
61
|
+
options.buddy = true
|
|
62
|
+
break
|
|
63
|
+
case 'cli':
|
|
64
|
+
options.buddy = true
|
|
65
|
+
break
|
|
66
|
+
case 'stacks':
|
|
67
|
+
options.stacks = true
|
|
68
|
+
break
|
|
69
|
+
default:
|
|
70
|
+
break
|
|
71
|
+
}
|
|
72
|
+
|
|
38
73
|
if (hasNoOptions(options)) {
|
|
39
74
|
let answers = await prompt.require()
|
|
40
75
|
.multiselect(descriptions.select, {
|
|
41
76
|
options: [
|
|
42
77
|
{ label: 'Components', value: 'components' },
|
|
43
78
|
// { label: 'Vue Components', value: 'vue-components' },
|
|
44
|
-
|
|
79
|
+
{ label: 'Web Components', value: 'web-components' },
|
|
45
80
|
{ label: 'Functions', value: 'functions' },
|
|
46
|
-
{ label: '
|
|
81
|
+
{ label: 'Views', value: 'views' },
|
|
47
82
|
{ label: 'Documentation', value: 'docs' },
|
|
48
83
|
],
|
|
49
84
|
})
|
|
@@ -65,6 +100,7 @@ export function build(buddy: CLI) {
|
|
|
65
100
|
|
|
66
101
|
buddy
|
|
67
102
|
.command('build:components', 'Automagically build component libraries for production use & npm/CDN distribution')
|
|
103
|
+
.alias('prod:components')
|
|
68
104
|
.option('-c, --components', descriptions.components, { default: true })
|
|
69
105
|
.option('-p, --project', descriptions.project, { default: false })
|
|
70
106
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
@@ -74,7 +110,8 @@ export function build(buddy: CLI) {
|
|
|
74
110
|
|
|
75
111
|
buddy
|
|
76
112
|
.command('build:cli', 'Automagically build the CLI')
|
|
77
|
-
.
|
|
113
|
+
.alias('prod:cli')
|
|
114
|
+
.option('-b, --buddy', descriptions.buddy, { default: true })
|
|
78
115
|
.option('-p, --project', descriptions.project, { default: false })
|
|
79
116
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
80
117
|
.action(async (options: BuildOptions) => {
|
|
@@ -92,6 +129,9 @@ export function build(buddy: CLI) {
|
|
|
92
129
|
|
|
93
130
|
buddy
|
|
94
131
|
.command('build:vue-components', 'Automagically build Vue component library for npm/CDN distribution')
|
|
132
|
+
.alias('build:vue')
|
|
133
|
+
.alias('prod:vue-components')
|
|
134
|
+
.alias('prod:vue')
|
|
95
135
|
.option('-v, --vue-components', descriptions.vueComponents, { default: true })
|
|
96
136
|
.option('-p, --project', descriptions.project, { default: false })
|
|
97
137
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
@@ -102,17 +142,21 @@ export function build(buddy: CLI) {
|
|
|
102
142
|
|
|
103
143
|
buddy
|
|
104
144
|
.command('build:web-components', 'Automagically build Web Component library for npm/CDN distribution')
|
|
145
|
+
.alias('build:wc')
|
|
146
|
+
.alias('prod:web-components')
|
|
147
|
+
.alias('prod:wc')
|
|
105
148
|
.option('-w, --web-components', descriptions.webComponents, { default: true })
|
|
106
149
|
.option('-p, --project', descriptions.project, { default: false })
|
|
107
150
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
108
|
-
.alias('build:elements')
|
|
109
|
-
.alias('build:wc')
|
|
110
151
|
.action(async (options: BuildOptions) => {
|
|
111
152
|
await runAction(Action.BuildWebComponentLib, options)
|
|
112
153
|
})
|
|
113
154
|
|
|
114
155
|
buddy
|
|
115
156
|
.command('build:docs', 'Automagically build your documentation site.')
|
|
157
|
+
.alias('prod:docs')
|
|
158
|
+
.alias('build:documentation')
|
|
159
|
+
.alias('prod:documentation')
|
|
116
160
|
.option('-d, --docs', descriptions.docs, { default: true })
|
|
117
161
|
.option('-p, --project', descriptions.project, { default: false })
|
|
118
162
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
@@ -123,7 +167,7 @@ export function build(buddy: CLI) {
|
|
|
123
167
|
buddy
|
|
124
168
|
.command('build:core', 'Automagically build the Stacks core.')
|
|
125
169
|
.option('-p, --project', descriptions.project, { default: false })
|
|
126
|
-
.option('--verbose', descriptions.verbose, { default:
|
|
170
|
+
.option('--verbose', descriptions.verbose, { default: false })
|
|
127
171
|
.action(async (options: BuildOptions) => {
|
|
128
172
|
const startTime = await intro('buddy build:core')
|
|
129
173
|
const result = await runAction(Action.BuildCore, options)
|
|
@@ -133,11 +177,12 @@ export function build(buddy: CLI) {
|
|
|
133
177
|
process.exit()
|
|
134
178
|
}
|
|
135
179
|
|
|
136
|
-
await outro('
|
|
180
|
+
await outro('Core packages built successfully', { startTime, useSeconds: true })
|
|
137
181
|
})
|
|
138
182
|
|
|
139
183
|
buddy
|
|
140
184
|
.command('build:desktop', descriptions.desktop)
|
|
185
|
+
.alias('prod:desktop')
|
|
141
186
|
.option('-p, --project', descriptions.project, { default: false })
|
|
142
187
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
143
188
|
.action(async (options: BuildOptions) => {
|
|
@@ -179,5 +224,5 @@ export function build(buddy: CLI) {
|
|
|
179
224
|
}
|
|
180
225
|
|
|
181
226
|
function hasNoOptions(options: BuildOptions) {
|
|
182
|
-
return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.
|
|
227
|
+
return !options.components && !options.vueComponents && !options.webComponents && !options.elements && !options.functions && !options.views && !options.docs && !options.stacks && !options.buddy
|
|
183
228
|
}
|
|
@@ -19,7 +19,8 @@ export function lint(buddy: CLI) {
|
|
|
19
19
|
.option('--verbose', descriptions.verbose, { default: false })
|
|
20
20
|
.action(async (options: LintOptions) => {
|
|
21
21
|
const startTime = await intro('buddy lint')
|
|
22
|
-
const result = await runAction(Action.Lint,
|
|
22
|
+
const result = await runAction(Action.Lint, options)
|
|
23
|
+
|
|
23
24
|
// console.log('res', result)
|
|
24
25
|
if (result.isErr()) {
|
|
25
26
|
await outro('While running `buddy lint`, there was an issue', { startTime, useSeconds: true }, result.error)
|
|
@@ -10,7 +10,7 @@ export function upgrade(buddy: CLI) {
|
|
|
10
10
|
const descriptions = {
|
|
11
11
|
command: 'Upgrade dependencies, framework, package manager, JS/TS runtime',
|
|
12
12
|
framework: 'Upgrade the Stacks framework',
|
|
13
|
-
dependencies: 'Upgrade your dependencies',
|
|
13
|
+
dependencies: 'Upgrade your dependencies (pkgx.yaml & package.json)',
|
|
14
14
|
bun: 'Upgrade Bun to the latest version',
|
|
15
15
|
all: 'Upgrade Node, package manager, project dependencies, and framework',
|
|
16
16
|
force: 'Overwrite possible local updates with remote framework updates',
|
|
@@ -54,7 +54,7 @@ export function upgrade(buddy: CLI) {
|
|
|
54
54
|
options = answers.reduce((a: any, v: any) => ({ ...a, [v]: true }), {})
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
const result = await runAction(Action.Upgrade,
|
|
57
|
+
const result = await runAction(Action.Upgrade, options)
|
|
58
58
|
|
|
59
59
|
if (result.isErr()) {
|
|
60
60
|
await outro('While running the buddy:upgrade command, there was an issue', { startTime: perf, useSeconds: true }, result.error)
|
package/core/build/package.json
CHANGED
package/core/cache/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/cache",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.44",
|
|
5
5
|
"description": "Caching the Stacks way.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@stacksjs/config": "workspace:*"
|
|
57
57
|
},
|
|
58
58
|
"optionalDependencies": {
|
|
59
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
59
|
+
"@aws-sdk/client-dynamodb": "^3.502.0",
|
|
60
60
|
"ioredis": "^5.3.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
package/core/chat/package.json
CHANGED
package/core/cli/dist/index.js
CHANGED
package/core/cli/package.json
CHANGED
package/core/cloud/build.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { log, runCommand } from '@stacksjs/cli'
|
|
2
2
|
|
|
3
|
+
await runCommand('bun build ./src/index.ts --outfile ./dist/index.js --outdir ./dist/ --external @aws-sdk/client-cloudformation --external @aws-sdk/client-cloudwatch-logs --external @aws-sdk/client-ec2 --external @aws-sdk/client-efs --external @aws-sdk/client-iam --external @aws-sdk/client-ssm --external @aws-sdk/lambda --external @aws-sdk/client-route-53-domains --external @aws-sdk/client-s3 --external @stacksjs/config --external @stacksjs/error-handling --external @stacksjs/logging --external @stacksjs/path --external @stacksjs/utils --external @stacksjs/strings --external aws-cdk-lib --external constructs --external @stacksjs/env --external @smithy/types --external @smithy/protocol-http --external @aws-sdk/middleware-logger --external @aws-sdk/middleware-recursion-detection --external @aws-sdk/middleware-host-header --external @smithy/property-provider --external @aws-crypto/crc32 --external @smithy/util-hex-encoding --external @smithy/smithy-client --external @smithy/signature-v4 --external @smithy/util-endpoints --external @aws-sdk/util-endpoints --external @smithy/util-middleware --external @aws-sdk/middleware-user-agent --external @smithy/util-config-provider --external @smithy/config-resolver --external @smithy/middleware-content-length --external @smithy/middleware-endpoint --external @smithy/util-retry --external @smithy/service-error-classification --external @smithy/middleware-retry --external @smithy/core --external @aws-sdk/core --external @smithy/middleware-serde --external fast-xml-parser --external @smithy/shared-ini-file-loader --external @smithy/credential-provider-imds --external @aws-sdk/credential-provider-env --external @aws-sdk/client-sso --external @aws-sdk/credential-provider-sso --external @aws-sdk/credential-provider-ini --external @aws-sdk/credential-provider-process --external @aws-sdk/credential-provider-web-identity --external universalify --external graceful-fs --external fs-extra --external fast-glob --external kleur --external @stacksjs/cli --external @aws-sdk/middleware-signing --external @smithy/eventstream-serde-config-resolver --external @aws-sdk/client-lambda --target bun', {
|
|
4
|
+
cwd: import.meta.dir,
|
|
5
|
+
})
|
|
6
|
+
|
|
3
7
|
const result = await runCommand('bun build ./src/edge/origin-request.ts --outfile ./dist/origin-request.js --outdir ./dist/', {
|
|
4
8
|
cwd: import.meta.dir,
|
|
5
9
|
})
|