@aerogel/cli 0.0.0-next.444e75523f9ddc8b8de7cd36b333f476ef86a46c → 0.0.0-next.44f5953d2450ac149ceabae6448a967b9def9d2a
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/bin/gel +1 -1
- package/dist/aerogel-cli.d.ts +2 -2
- package/dist/aerogel-cli.js +847 -0
- package/dist/aerogel-cli.js.map +1 -0
- package/package.json +20 -33
- package/src/cli.ts +27 -9
- package/src/commands/Command.ts +4 -7
- package/src/commands/create.test.ts +6 -14
- package/src/commands/create.ts +11 -11
- package/src/commands/generate-component.test.ts +10 -16
- package/src/commands/generate-component.ts +30 -19
- package/src/commands/generate-model.test.ts +3 -11
- package/src/commands/generate-model.ts +11 -11
- package/src/commands/generate-overrides.ts +10 -10
- package/src/commands/generate-service.test.ts +4 -12
- package/src/commands/generate-service.ts +14 -14
- package/src/commands/info.ts +15 -0
- package/src/commands/install.test.ts +4 -26
- package/src/commands/install.ts +11 -12
- package/src/lib/App.ts +9 -6
- package/src/lib/Editor.ts +3 -3
- package/src/lib/File.mock.ts +7 -11
- package/src/lib/File.ts +3 -3
- package/src/lib/Log.mock.ts +4 -8
- package/src/lib/Log.test.ts +4 -4
- package/src/lib/Log.ts +7 -7
- package/src/lib/Shell.mock.ts +2 -2
- package/src/lib/Shell.ts +2 -2
- package/src/lib/Template.ts +19 -16
- package/src/lib/utils/app.ts +2 -2
- package/src/lib/utils/edit.ts +2 -2
- package/src/lib/utils/paths.ts +15 -7
- package/src/plugins/Plugin.ts +7 -7
- package/src/plugins/Solid.ts +17 -16
- package/src/plugins/Soukai.ts +4 -4
- package/src/testing/setup.ts +30 -31
- package/templates/app/.github/workflows/ci.yml +4 -4
- package/templates/app/.nvmrc +1 -1
- package/templates/app/cypress/cypress.config.ts +2 -4
- package/templates/app/cypress/support/e2e.ts +1 -3
- package/templates/app/cypress/tsconfig.json +7 -8
- package/templates/app/package.json +12 -12
- package/templates/app/postcss.config.js +1 -1
- package/templates/app/src/main.ts +2 -2
- package/templates/app/tsconfig.json +3 -10
- package/templates/app/vite.config.ts +6 -4
- package/templates/component-checkbox/[component.name].vue +34 -0
- package/templates/component-checkbox-story/[component.name].story.vue +63 -0
- package/templates/component-input/[component.name].vue +1 -0
- package/templates/overrides/components/overrides/ConfirmModal.vue +3 -3
- package/templates/postcss-pseudo-classes/postcss.config.js +1 -1
- package/templates/service/[service.name].ts +1 -1
- package/.prettierignore +0 -1
- package/dist/aerogel-cli.cjs.js +0 -2
- package/dist/aerogel-cli.cjs.js.map +0 -1
- package/dist/aerogel-cli.esm.js +0 -2
- package/dist/aerogel-cli.esm.js.map +0 -1
- package/src/plugins/Histoire.ts +0 -105
- package/src/testing/stubs/ProgramStub.ts +0 -35
- package/src/testing/utils.ts +0 -14
- package/templates/histoire/histoire.config.ts +0 -7
- package/templates/histoire/patches/histoire+0.17.6.patch +0 -13
- package/templates/histoire/src/main.histoire.ts +0 -8
- package/tsconfig.json +0 -11
- package/vite.config.ts +0 -14
- /package/src/{main.ts → index.ts} +0 -0
- /package/templates/app/src/assets/css/{styles.css → main.css} +0 -0
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Command as Program } from 'commander';
|
|
2
|
-
import type { Constructor } from '@noeldemartin/utils';
|
|
3
|
-
|
|
4
|
-
import type Command from '@/commands/Command';
|
|
5
|
-
|
|
6
|
-
export default class ProgramStub<T extends Constructor<Command> = Constructor<Command>> {
|
|
7
|
-
|
|
8
|
-
private runner?: (...args: ConstructorParameters<T>) => Promise<void>;
|
|
9
|
-
|
|
10
|
-
public async run(...args: ConstructorParameters<T>): Promise<void> {
|
|
11
|
-
await this.runner?.(...args);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
|
-
public command(): any {
|
|
16
|
-
return { description: () => this };
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public argument(): this {
|
|
20
|
-
return this;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
public option(): this {
|
|
24
|
-
return this;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public action(runner: Function): this {
|
|
28
|
-
this.runner = runner as (...args: ConstructorParameters<T>) => Promise<void>;
|
|
29
|
-
|
|
30
|
-
return this;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default interface ProgramStub extends Program {}
|
package/src/testing/utils.ts
DELETED
|
@@ -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,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
|
-
});
|
package/tsconfig.json
DELETED
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
|
|
File without changes
|