stacks 0.37.9 → 0.38.4

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.
Files changed (60) hide show
  1. package/README.md +2 -2
  2. package/package.json +69 -118
  3. package/dist/cli/actions/build.d.ts +0 -7
  4. package/dist/cli/actions/build.mjs +0 -117
  5. package/dist/cli/actions/commit.d.ts +0 -1
  6. package/dist/cli/actions/commit.mjs +0 -8
  7. package/dist/cli/actions/dev.d.ts +0 -1
  8. package/dist/cli/actions/dev.mjs +0 -34
  9. package/dist/cli/actions/examples.d.ts +0 -3
  10. package/dist/cli/actions/examples.mjs +0 -57
  11. package/dist/cli/actions/fresh.d.ts +0 -1
  12. package/dist/cli/actions/fresh.mjs +0 -8
  13. package/dist/cli/actions/generate.d.ts +0 -7
  14. package/dist/cli/actions/generate.mjs +0 -117
  15. package/dist/cli/actions/index.d.ts +0 -12
  16. package/dist/cli/actions/index.mjs +0 -12
  17. package/dist/cli/actions/key.d.ts +0 -2
  18. package/dist/cli/actions/key.mjs +0 -22
  19. package/dist/cli/actions/lint.d.ts +0 -2
  20. package/dist/cli/actions/lint.mjs +0 -15
  21. package/dist/cli/actions/make.d.ts +0 -5
  22. package/dist/cli/actions/make.mjs +0 -97
  23. package/dist/cli/actions/release.d.ts +0 -1
  24. package/dist/cli/actions/release.mjs +0 -8
  25. package/dist/cli/actions/test.d.ts +0 -3
  26. package/dist/cli/actions/test.mjs +0 -30
  27. package/dist/cli/actions/types.d.ts +0 -9
  28. package/dist/cli/actions/types.mjs +0 -134
  29. package/dist/cli/actions/update.d.ts +0 -1
  30. package/dist/cli/actions/update.mjs +0 -59
  31. package/dist/cli/build.d.ts +0 -3
  32. package/dist/cli/build.mjs +0 -22
  33. package/dist/cli/create.d.ts +0 -3
  34. package/dist/cli/create.mjs +0 -46
  35. package/dist/cli/dev.d.ts +0 -3
  36. package/dist/cli/dev.mjs +0 -13
  37. package/dist/cli/example.d.ts +0 -3
  38. package/dist/cli/example.mjs +0 -13
  39. package/dist/cli/generate.d.ts +0 -3
  40. package/dist/cli/generate.mjs +0 -29
  41. package/dist/cli/index.d.ts +0 -12
  42. package/dist/cli/index.mjs +0 -12
  43. package/dist/cli/key.d.ts +0 -3
  44. package/dist/cli/key.mjs +0 -7
  45. package/dist/cli/make.d.ts +0 -3
  46. package/dist/cli/make.mjs +0 -22
  47. package/dist/cli/test.d.ts +0 -3
  48. package/dist/cli/test.mjs +0 -13
  49. package/dist/cli/types.d.ts +0 -3
  50. package/dist/cli/types.mjs +0 -9
  51. package/dist/cli/update.d.ts +0 -3
  52. package/dist/cli/update.mjs +0 -7
  53. package/dist/cli/utility.d.ts +0 -3
  54. package/dist/cli/utility.mjs +0 -22
  55. package/dist/cli.d.ts +0 -2
  56. package/dist/cli.mjs +0 -7114
  57. package/dist/docs.d.ts +0 -2
  58. package/dist/docs.mjs +0 -3
  59. package/dist/index.d.ts +0 -20
  60. package/dist/index.mjs +0 -20
@@ -1,13 +0,0 @@
1
- import { runExample } from "./actions/examples.mjs";
2
- async function example(stacks) {
3
- stacks.command("example", "Test your libraries against your built bundle.").option("-c, --components", "Test your Vue component library").option("-v, --vue", "Test your Vue component library").option("-w, --web-components", "Test your web component library").action(async (options) => {
4
- await runExample(options);
5
- });
6
- stacks.command("example:vue", "Test your Vue component library.").alias("example:components").action(async () => {
7
- await runExample("vue");
8
- });
9
- stacks.command("example:web-components", "Test your Web Component library.").action(async () => {
10
- await runExample("web-components");
11
- });
12
- }
13
- export { example };
@@ -1,3 +0,0 @@
1
- import type { CAC } from 'cac';
2
- declare function generate(stacks: CAC): Promise<void>;
3
- export { generate };
@@ -1,29 +0,0 @@
1
- import { generateComponentMeta, generateIdeHelpers, generateLibEntries, generateVsCodeCustomData, generateVueCompat, generateWebTypes, startGenerationProcess } from "./actions/generate.mjs";
2
- import { generateTypes } from "./actions/types.mjs";
3
- async function generate(stacks) {
4
- stacks.command("generate", "Automagically build any of your libraries/packages for production use. Select any of the following packages").option("-t, --types", "Generate your TypeScript types").option("-e, --entries", "Generate your function & component library entry points").option("-w, --web-types", "Generate web-types.json for IDEs").option("-c, --custom-data", "Generate VS Code custom data (custom-elements.json) for IDEs").option("-i, --ide-helpers", "Generate IDE helpers").option("-v, --vue-compatibility", "Generate Vue 2 & 3 compatibility").option("-c, --component-meta", "Generate component meta information").option("--debug", "Add additional debug logs", { default: false }).action(async (options) => {
5
- await startGenerationProcess(options);
6
- });
7
- stacks.command("generate:types", "Generate the types of & for your library/libraries").action(async () => {
8
- await generateTypes();
9
- });
10
- stacks.command("generate:entries", "Generate the entry points for your libraries").action(async () => {
11
- await generateLibEntries();
12
- });
13
- stacks.command("generate:vue-compatibility", "Generate Vue 2 & 3 compatibility").action(async () => {
14
- await generateVueCompat();
15
- });
16
- stacks.command("generate:web-types", "Generate web-types.json for IDEs").action(async () => {
17
- await generateWebTypes();
18
- });
19
- stacks.command("generate:vscode-custom-data", "Generate VS Code custom data (custom-elements.json) for IDEs").action(async () => {
20
- await generateVsCodeCustomData();
21
- });
22
- stacks.command("generate:ide-helpers", "Generate IDE helpers").action(async () => {
23
- await generateIdeHelpers();
24
- });
25
- stacks.command("generate:component-meta", "Generate component meta information").action(async () => {
26
- await generateComponentMeta();
27
- });
28
- }
29
- export { generate };
@@ -1,12 +0,0 @@
1
- import { build } from './build';
2
- import { dev } from './dev';
3
- import { example } from './example';
4
- import { generate } from './generate';
5
- import { utility } from './utility';
6
- import { make } from './make';
7
- import { test } from './test';
8
- import { create } from './create';
9
- import { update } from './update';
10
- import { types } from './types';
11
- import { key } from './key';
12
- export { dev, build, utility, make, example, test, create, update, generate, key, types };
@@ -1,12 +0,0 @@
1
- import { build } from "./build.mjs";
2
- import { dev } from "./dev.mjs";
3
- import { example } from "./example.mjs";
4
- import { generate } from "./generate.mjs";
5
- import { utility } from "./utility.mjs";
6
- import { make } from "./make.mjs";
7
- import { test } from "./test.mjs";
8
- import { create } from "./create.mjs";
9
- import { update } from "./update.mjs";
10
- import { types } from "./types.mjs";
11
- import { key } from "./key.mjs";
12
- export { dev, build, utility, make, example, test, create, update, generate, key, types };
package/dist/cli/key.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { CAC } from 'cac';
2
- declare function key(stacks: CAC): Promise<void>;
3
- export { key };
package/dist/cli/key.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { generate as generateAppKey } from "./actions/key.mjs";
2
- async function key(stacks) {
3
- stacks.command("key:generate", "Generate & set the application key.").action(async () => {
4
- await generateAppKey();
5
- });
6
- }
7
- export { key };
@@ -1,3 +0,0 @@
1
- import type { CAC } from 'cac';
2
- declare function make(stacks: CAC): Promise<void>;
3
- export { make };
package/dist/cli/make.mjs DELETED
@@ -1,22 +0,0 @@
1
- import { component as makeComponent, fx as makeFunction, language as makeLanguage, page as makePage, stack as makeStack } from "./actions/make.mjs";
2
- async function make(stacks) {
3
- stacks.command("make", "Test your libraries against your built bundle.").option("-c, --component", "Scaffolds a component.").option("-p, --page", "Scaffolds a page.").option("-f, --function", "Scaffolds a function.").option("-l, --language", "Scaffolds a language.").option("-s, --stack", "Scaffolds a new stack.").action(async (options) => {
4
- await runMake(stacks.args[0], options);
5
- });
6
- stacks.command("make:component", "Scaffolds a component.").action(async () => {
7
- await makeComponent(stacks.args[0]);
8
- });
9
- stacks.command("make:page", "Scaffolds a page.").action(async () => {
10
- await makePage(stacks.args[0]);
11
- });
12
- stacks.command("make:function", "Scaffolds a function.").action(async () => {
13
- await makeFunction(stacks.args[0]);
14
- });
15
- stacks.command("make:lang", "Scaffolds a language file.").action(async () => {
16
- await makeLanguage(stacks.args[0]);
17
- });
18
- stacks.command("make:stack", "Scaffolds a new stack.").action(async () => {
19
- await makeStack(stacks.args[0]);
20
- });
21
- }
22
- export { make };
@@ -1,3 +0,0 @@
1
- import type { CAC } from 'cac';
2
- declare function test(stacks: CAC): Promise<void>;
3
- export { test };
package/dist/cli/test.mjs DELETED
@@ -1,13 +0,0 @@
1
- import { generateTestCoverageReport, runTestSuite, typecheck } from "./actions/test.mjs";
2
- async function test(stacks) {
3
- stacks.command("test", "Runs your test suite.").action(async () => {
4
- await runTestSuite();
5
- });
6
- stacks.command("test:types", "Typechecks your codebase.").action(async () => {
7
- await typecheck();
8
- });
9
- stacks.command("test:coverage", "Generates a test coverage report.").action(async () => {
10
- await generateTestCoverageReport();
11
- });
12
- }
13
- export { test };
@@ -1,3 +0,0 @@
1
- import type { CAC } from 'cac';
2
- declare function types(stacks: CAC): Promise<void>;
3
- export { types };
@@ -1,9 +0,0 @@
1
- import { generateTypes } from "./actions/types.mjs";
2
- async function types(stacks) {
3
- stacks.command("types:generate", "Generate the types of & for your library/libraries").action(async () => {
4
- await generateTypes();
5
- });
6
- stacks.command("types:fix", "Generate the types of & for your library/libraries").action(async () => {
7
- });
8
- }
9
- export { types };
@@ -1,3 +0,0 @@
1
- import type { CAC } from 'cac';
2
- declare function update(stacks: CAC): Promise<void>;
3
- export { update };
@@ -1,7 +0,0 @@
1
- import { stacks as updateStacks } from "./actions/update.mjs";
2
- async function update(stacks) {
3
- stacks.command("update", "Updates dependencies & framework.").option("-c, --framework", "Update the Stacks framework", { default: true }).option("-d, --dependencies", "Update your dependencies", { default: true }).option("-p, --package-manager", "Update your package manager, i.e. pnpm", { default: true }).option("-f, --force", "Overwrite possible local updates with remote framework updates", { default: false }).option("--debug", "Add additional debug logs", { default: false }).action(async (options) => {
4
- await updateStacks(options);
5
- });
6
- }
7
- export { update };
@@ -1,3 +0,0 @@
1
- import type { CAC } from 'cac';
2
- declare function utility(stacks: CAC): Promise<void>;
3
- export { utility };
@@ -1,22 +0,0 @@
1
- import { reinstallNpmDependencies } from "./actions/fresh.mjs";
2
- import { lint, lintFix } from "./actions/lint.mjs";
3
- import { release } from "./actions/release.mjs";
4
- import { commit } from "./actions/commit.mjs";
5
- async function utility(stacks) {
6
- stacks.command("fresh", "Reinstalls your npm dependencies.").action(async () => {
7
- await reinstallNpmDependencies();
8
- });
9
- stacks.command("lint", "Automagically lints your codebase.").action(async () => {
10
- await lint();
11
- });
12
- stacks.command("lint:fix", "Automagically fixes lint errors.").action(async () => {
13
- await lintFix();
14
- });
15
- stacks.command("release", "Releases a new version of your libraries/packages.").action(async () => {
16
- await release();
17
- });
18
- stacks.command("commit", "Commit your stashed changes.").action(async () => {
19
- await commit();
20
- });
21
- }
22
- export { utility };
package/dist/cli.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};