@stacksjs/buddy 0.58.22 → 0.58.27
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
CHANGED
|
@@ -275,7 +275,6 @@ buddy example:web-components # runs the Web Component example
|
|
|
275
275
|
# you likely won't need to run these commands as they are auto-triggered, but they are available
|
|
276
276
|
buddy generate # prompts you to select which generator to run
|
|
277
277
|
buddy generate:entries # generates entry files for components, functions, & views
|
|
278
|
-
buddy generate:vue-compat # generates Vue 2 compatibility layer
|
|
279
278
|
buddy generate:web-types # generates Web Component types
|
|
280
279
|
buddy generate:vscode-custom-data # generates VSCode custom data
|
|
281
280
|
buddy generate:ide-helpers # generates IDE helpers
|
|
@@ -911,7 +911,6 @@ generateMigrations,
|
|
|
911
911
|
generatePkgxConfig,
|
|
912
912
|
generateTypes,
|
|
913
913
|
generateVsCodeCustomData,
|
|
914
|
-
generateVueCompat,
|
|
915
914
|
generateWebTypes,
|
|
916
915
|
invoke as startGenerationProcess
|
|
917
916
|
} from "@stacksjs/actions";
|
|
@@ -926,13 +925,12 @@ function generate(buddy) {
|
|
|
926
925
|
webTypes: "Generate web-types.json for IDEs",
|
|
927
926
|
customData: "Generate VS Code custom data (custom-elements.json) for IDEs",
|
|
928
927
|
ideHelpers: "Generate IDE helpers",
|
|
929
|
-
vueCompat: "Generate Vue 2 & 3 compatibility",
|
|
930
928
|
componentMeta: "Generate component meta information",
|
|
931
929
|
tea: "Generate the Tea configuration file",
|
|
932
930
|
select: "What are you trying to generate?",
|
|
933
931
|
verbose: "Enable verbose output"
|
|
934
932
|
};
|
|
935
|
-
buddy.command("generate", descriptions.command).option("-t, --types", descriptions.types).option("-e, --entries", descriptions.entries).option("-w, --web-types", descriptions.webTypes).option("-c, --custom-data", descriptions.customData).option("-i, --ide-helpers", descriptions.ideHelpers).option("-
|
|
933
|
+
buddy.command("generate", descriptions.command).option("-t, --types", descriptions.types).option("-e, --entries", descriptions.entries).option("-w, --web-types", descriptions.webTypes).option("-c, --custom-data", descriptions.customData).option("-i, --ide-helpers", descriptions.ideHelpers).option("-c, --component-meta", descriptions.componentMeta).option("-tc, --tea-config", descriptions.tea).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
936
934
|
if (hasNoOptions2(options)) {
|
|
937
935
|
let answers = await prompt3.require().multiselect(descriptions.select, {
|
|
938
936
|
options: [
|
|
@@ -941,8 +939,7 @@ function generate(buddy) {
|
|
|
941
939
|
{ label: "3.) Web Types", value: "web-types" },
|
|
942
940
|
{ label: "4.) VS Code Custom Data", value: "custom-data" },
|
|
943
941
|
{ label: "5.) IDE Helpers", value: "ide-helpers" },
|
|
944
|
-
{ label: "6.)
|
|
945
|
-
{ label: "7.) Component Meta", value: "component-meta" }
|
|
942
|
+
{ label: "6.) Component Meta", value: "component-meta" }
|
|
946
943
|
]
|
|
947
944
|
});
|
|
948
945
|
if (isString2(answers))
|
|
@@ -958,9 +955,6 @@ function generate(buddy) {
|
|
|
958
955
|
buddy.command("generate:entries", descriptions.entries).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
959
956
|
await generateLibEntries(options);
|
|
960
957
|
});
|
|
961
|
-
buddy.command("generate:vue-compatibility", descriptions.vueCompat).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
962
|
-
await generateVueCompat(options);
|
|
963
|
-
});
|
|
964
958
|
buddy.command("generate:web-types", descriptions.webTypes).option("--verbose", descriptions.verbose, { default: false }).action(async (options) => {
|
|
965
959
|
await generateWebTypes(options);
|
|
966
960
|
});
|
|
@@ -985,7 +979,7 @@ function generate(buddy) {
|
|
|
985
979
|
});
|
|
986
980
|
}
|
|
987
981
|
var hasNoOptions2 = function(options) {
|
|
988
|
-
return !options.types && !options.entries && !options.webTypes && !options.customData && !options.ideHelpers && !options.
|
|
982
|
+
return !options.types && !options.entries && !options.webTypes && !options.customData && !options.ideHelpers && !options.componentMeta;
|
|
989
983
|
};
|
|
990
984
|
|
|
991
985
|
// src/commands/http.ts
|
package/dist/cli.js
CHANGED
|
@@ -10,12 +10,13 @@ dev,
|
|
|
10
10
|
dns,
|
|
11
11
|
domains,
|
|
12
12
|
fresh,
|
|
13
|
+
generate,
|
|
13
14
|
http,
|
|
14
15
|
install,
|
|
15
16
|
key,
|
|
16
17
|
release,
|
|
17
18
|
setup
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-fd47b42fb923a4be.js";
|
|
19
20
|
import"./chunk-b75e6db0012faa55.js";
|
|
20
21
|
|
|
21
22
|
// src/cli.ts
|
|
@@ -28,18 +29,19 @@ async function main() {
|
|
|
28
29
|
setup(buddy);
|
|
29
30
|
key(buddy);
|
|
30
31
|
await ensureProjectIsInitialized();
|
|
31
|
-
dev(buddy);
|
|
32
32
|
build(buddy);
|
|
33
33
|
changelog(buddy);
|
|
34
34
|
clean(buddy);
|
|
35
35
|
cloud(buddy);
|
|
36
|
-
deploy(buddy);
|
|
37
36
|
configure(buddy);
|
|
37
|
+
dev(buddy);
|
|
38
38
|
domains(buddy);
|
|
39
|
+
deploy(buddy);
|
|
40
|
+
dns(buddy);
|
|
39
41
|
fresh(buddy);
|
|
42
|
+
generate(buddy);
|
|
40
43
|
http(buddy);
|
|
41
44
|
install(buddy);
|
|
42
|
-
dns(buddy);
|
|
43
45
|
release(buddy);
|
|
44
46
|
setup(buddy);
|
|
45
47
|
buddy.parse();
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.58.
|
|
4
|
+
"version": "0.58.27",
|
|
5
5
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
13
|
-
"directory": "./storage/framework/core/
|
|
13
|
+
"directory": "./storage/framework/core/buddy"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/stacksjs/stacks/issues"
|