@aerogel/cli 0.0.0-next.a5b6ecb68fdca29d00c8b8906d00aa5bf64a9d7c → 0.0.0-next.b3caf219a503ce9b8c65ef1463132c9507f56c0a

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 (80) hide show
  1. package/bin/gel +1 -1
  2. package/dist/aerogel-cli.d.ts +2 -2
  3. package/dist/aerogel-cli.js +833 -0
  4. package/dist/aerogel-cli.js.map +1 -0
  5. package/package.json +20 -33
  6. package/src/cli.ts +28 -8
  7. package/src/commands/Command.ts +4 -7
  8. package/src/commands/create.test.ts +6 -14
  9. package/src/commands/create.ts +11 -11
  10. package/src/commands/generate-component.test.ts +11 -17
  11. package/src/commands/generate-component.ts +31 -20
  12. package/src/commands/generate-model.test.ts +3 -11
  13. package/src/commands/generate-model.ts +12 -12
  14. package/src/commands/generate-overrides.ts +85 -0
  15. package/src/commands/generate-service.test.ts +4 -12
  16. package/src/commands/generate-service.ts +15 -15
  17. package/src/commands/info.ts +15 -0
  18. package/src/commands/install.test.ts +4 -26
  19. package/src/commands/install.ts +11 -12
  20. package/src/lib/App.ts +9 -6
  21. package/src/lib/Editor.ts +3 -4
  22. package/src/lib/File.mock.ts +7 -11
  23. package/src/lib/File.ts +3 -3
  24. package/src/lib/Log.mock.ts +4 -8
  25. package/src/lib/Log.test.ts +4 -4
  26. package/src/lib/Log.ts +7 -7
  27. package/src/lib/Shell.mock.ts +2 -2
  28. package/src/lib/Shell.ts +2 -2
  29. package/src/lib/Template.ts +19 -16
  30. package/src/lib/utils/app.ts +2 -2
  31. package/src/lib/utils/edit.ts +2 -2
  32. package/src/lib/utils/paths.ts +15 -7
  33. package/src/plugins/Plugin.ts +8 -27
  34. package/src/plugins/Solid.ts +15 -22
  35. package/src/plugins/Soukai.ts +4 -4
  36. package/src/testing/setup.ts +30 -31
  37. package/templates/app/.github/workflows/ci.yml +4 -4
  38. package/templates/app/.nvmrc +1 -1
  39. package/templates/app/.vscode/launch.json +1 -0
  40. package/templates/app/cypress/cypress.config.ts +2 -4
  41. package/templates/app/cypress/support/e2e.ts +1 -3
  42. package/templates/app/cypress/tsconfig.json +7 -8
  43. package/templates/app/index.html +2 -2
  44. package/templates/app/package.json +19 -18
  45. package/templates/app/src/App.vue +3 -3
  46. package/templates/app/src/assets/css/main.css +4 -0
  47. package/templates/app/src/main.ts +4 -4
  48. package/templates/app/tsconfig.json +3 -10
  49. package/templates/app/vite.config.ts +6 -4
  50. package/templates/component-button/[component.name].vue +13 -3
  51. package/templates/component-button-story/[component.name].story.vue +7 -1
  52. package/templates/component-checkbox/[component.name].vue +34 -0
  53. package/templates/component-checkbox-story/[component.name].story.vue +63 -0
  54. package/templates/component-input/[component.name].vue +6 -5
  55. package/templates/component-input-story/[component.name].story.vue +4 -4
  56. package/templates/overrides/components/index.ts +15 -0
  57. package/templates/overrides/components/overrides/AlertModal.vue +11 -0
  58. package/templates/overrides/components/overrides/ConfirmModal.vue +20 -0
  59. package/templates/overrides/components/overrides/LoadingModal.vue +12 -0
  60. package/templates/overrides/components/overrides/ModalWrapper.vue +22 -0
  61. package/templates/overrides/components/overrides/SnackbarNotification.vue +34 -0
  62. package/templates/overrides-story/Overrides.story.vue +86 -0
  63. package/templates/service/[service.name].ts +1 -1
  64. package/dist/aerogel-cli.cjs.js +0 -2
  65. package/dist/aerogel-cli.cjs.js.map +0 -1
  66. package/dist/aerogel-cli.esm.js +0 -2
  67. package/dist/aerogel-cli.esm.js.map +0 -1
  68. package/src/plugins/Histoire.ts +0 -105
  69. package/src/testing/stubs/ProgramStub.ts +0 -35
  70. package/src/testing/utils.ts +0 -14
  71. package/templates/app/postcss.config.js +0 -6
  72. package/templates/app/src/assets/css/styles.css +0 -3
  73. package/templates/app/tailwind.config.js +0 -5
  74. package/templates/histoire/histoire.config.ts +0 -7
  75. package/templates/histoire/patches/histoire+0.17.6.patch +0 -13
  76. package/templates/histoire/src/main.histoire.ts +0 -8
  77. package/templates/postcss-pseudo-classes/postcss.config.js +0 -15
  78. package/tsconfig.json +0 -11
  79. package/vite.config.ts +0 -14
  80. /package/src/{main.ts → index.ts} +0 -0
@@ -1,14 +0,0 @@
1
- import type { Constructor } from '@noeldemartin/utils';
2
-
3
- import ProgramStub from '@/testing/stubs/ProgramStub';
4
- import type Command from '@/commands/Command';
5
-
6
- export type StubCommandRunner<T extends Constructor<Command>> = (...args: ConstructorParameters<T>) => Promise<void>;
7
-
8
- export function stubCommandRunner<T extends Constructor<Command>>(commandClass: T): StubCommandRunner<T> {
9
- const program = new ProgramStub();
10
-
11
- (commandClass as unknown as typeof Command).define(program);
12
-
13
- return (...args) => program.run(...args);
14
- }
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
@@ -1,3 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
@@ -1,5 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: ['./index.html', './src/**/*.{vue,ts}', '<% &contentPath %>'],
4
- plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
5
- };
@@ -1,7 +0,0 @@
1
- import HstAerogel from '@aerogel/histoire/dist/plugin';
2
- import { defineConfig } from 'histoire';
3
-
4
- export default defineConfig({
5
- setupFile: '/src/main.histoire.ts',
6
- plugins: [HstAerogel()],
7
- });
@@ -1,13 +0,0 @@
1
- diff --git a/node_modules/histoire/dist/node/collect/index.js b/node_modules/histoire/dist/node/collect/index.js
2
- index 8ffd507..37be43e 100644
3
- --- a/node_modules/histoire/dist/node/collect/index.js
4
- +++ b/node_modules/histoire/dist/node/collect/index.js
5
- @@ -22,7 +22,7 @@ export function useCollectStories(options, ctx) {
6
- /vite\w*\/dist\/client\/(client|env).mjs/,
7
- ...ctx.config.viteNodeInlineDeps ?? [],
8
- ],
9
- - fallbackCJS: true,
10
- + fallbackCJS: false,
11
- },
12
- transformMode: ctx.config.viteNodeTransformMode,
13
- });
@@ -1,8 +0,0 @@
1
- import '@aerogel/histoire/dist/styles.css';
2
- import { defineSetupAerogel } from '@aerogel/histoire';
3
-
4
- import './assets/css/styles.css';
5
-
6
- export const setupVue3 = defineSetupAerogel({
7
- messages: import.meta.glob('@/lang/*.yaml'),
8
- });
@@ -1,15 +0,0 @@
1
- const plugins = {
2
- tailwindcss: {},
3
- autoprefixer: {},
4
- };
5
-
6
- if (process.env.NODE_ENV === 'development') {
7
- plugins['postcss-pseudo-classes'] = {
8
- blacklist: [],
9
- restrictTo: ['hover', 'focus-visible', 'focus'],
10
- allCombinations: true,
11
- preserveBeforeAfter: false,
12
- };
13
- }
14
-
15
- module.exports = { plugins };
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "types": ["node"],
5
- "baseUrl": ".",
6
- "paths": {
7
- "@/*": ["./src/*"]
8
- }
9
- },
10
- "include": ["src/**/*.ts"]
11
- }
package/vite.config.ts DELETED
@@ -1,14 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
- import { resolve } from 'path';
3
-
4
- export default defineConfig({
5
- test: {
6
- clearMocks: true,
7
- setupFiles: ['./src/testing/setup.ts'],
8
- },
9
- resolve: {
10
- alias: {
11
- '@': resolve(__dirname, './src'),
12
- },
13
- },
14
- });
File without changes