@aerogel/cli 0.0.0-next.f9394854509d71d644498ac087706a2f8f8eea1c → 0.1.0-next.a2c47ef9c46c7b0d64e60e038d48772b0444e38a
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 +1 -1
- package/dist/aerogel-cli.js +789 -0
- package/dist/aerogel-cli.js.map +1 -0
- package/package.json +21 -33
- package/src/cli.ts +9 -11
- package/src/commands/Command.ts +3 -3
- package/src/commands/create.test.ts +2 -25
- package/src/commands/create.ts +16 -20
- package/src/commands/generate-component.test.ts +1 -61
- package/src/commands/generate-component.ts +14 -90
- package/src/commands/generate-model.test.ts +2 -2
- package/src/commands/generate-model.ts +11 -12
- package/src/commands/generate-service.test.ts +1 -1
- package/src/commands/generate-service.ts +14 -14
- package/src/commands/info.ts +7 -6
- package/src/commands/install.test.ts +63 -14
- package/src/commands/install.ts +29 -15
- package/src/lib/App.ts +50 -48
- package/src/lib/Editor.ts +3 -4
- package/src/lib/File.mock.ts +12 -6
- package/src/lib/File.ts +32 -2
- package/src/lib/Log.mock.ts +3 -3
- package/src/lib/Log.test.ts +4 -4
- package/src/lib/Log.ts +6 -6
- package/src/lib/Shell.mock.ts +5 -1
- package/src/lib/Shell.ts +1 -1
- 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 +19 -7
- package/src/plugins/LocalFirst.ts +9 -0
- package/src/plugins/Plugin.ts +37 -39
- package/src/plugins/Solid.ts +15 -22
- package/src/plugins/Soukai.ts +8 -7
- package/src/testing/setup.ts +34 -26
- package/src/utils/package.ts +23 -0
- package/templates/app/README.md +1 -1
- package/templates/model/[model.name].schema.ts +3 -2
- 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/commands/generate-overrides.ts +0 -85
- package/src/plugins/Histoire.ts +0 -113
- package/templates/app/.github/workflows/ci.yml +0 -29
- package/templates/app/.gitignore.template +0 -2
- package/templates/app/.nvmrc +0 -1
- package/templates/app/.vscode/launch.json +0 -16
- package/templates/app/.vscode/settings.json +0 -10
- package/templates/app/cypress/cypress.config.ts +0 -14
- package/templates/app/cypress/e2e/app.cy.ts +0 -9
- package/templates/app/cypress/support/e2e.ts +0 -1
- package/templates/app/cypress/tsconfig.json +0 -14
- package/templates/app/index.html +0 -13
- package/templates/app/package.json +0 -67
- package/templates/app/postcss.config.js +0 -6
- package/templates/app/src/App.vue +0 -12
- package/templates/app/src/assets/css/main.css +0 -3
- package/templates/app/src/assets/public/robots.txt +0 -2
- package/templates/app/src/lang/en.yaml +0 -3
- package/templates/app/src/main.test.ts +0 -9
- package/templates/app/src/main.ts +0 -13
- package/templates/app/src/types/globals.d.ts +0 -2
- package/templates/app/src/types/shims.d.ts +0 -7
- package/templates/app/src/types/ts-reset.d.ts +0 -1
- package/templates/app/tailwind.config.js +0 -5
- package/templates/app/tsconfig.json +0 -19
- package/templates/app/vite.config.ts +0 -30
- package/templates/component-button/[component.name].vue +0 -42
- package/templates/component-button-story/[component.name].story.vue +0 -77
- package/templates/component-checkbox/[component.name].vue +0 -34
- package/templates/component-checkbox-story/[component.name].story.vue +0 -63
- package/templates/component-input/[component.name].vue +0 -17
- package/templates/component-input-story/[component.name].story.vue +0 -63
- package/templates/component-story/[component.name].story.vue +0 -7
- 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/templates/overrides/components/index.ts +0 -15
- package/templates/overrides/components/overrides/AlertModal.vue +0 -11
- package/templates/overrides/components/overrides/ConfirmModal.vue +0 -20
- package/templates/overrides/components/overrides/ErrorReportModal.vue +0 -35
- package/templates/overrides/components/overrides/LoadingModal.vue +0 -12
- package/templates/overrides/components/overrides/ModalWrapper.vue +0 -22
- package/templates/overrides/components/overrides/SnackbarNotification.vue +0 -34
- package/templates/overrides-story/Overrides.story.vue +0 -86
- package/templates/postcss-pseudo-classes/postcss.config.js +0 -15
- package/tsconfig.json +0 -11
- package/vite.config.ts +0 -14
- /package/src/{main.ts → index.ts} +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Story :layout="{ type: 'grid', width: '90%' }">
|
|
3
|
-
<Variant title="Playground">
|
|
4
|
-
<div class="flex space-x-3">
|
|
5
|
-
<AGButton @click="$ui.alert(alertTitle, alertMessage)">
|
|
6
|
-
Alert
|
|
7
|
-
</AGButton>
|
|
8
|
-
<AGButton @click="$ui.confirm(confirmTitle, confirmMessage)">
|
|
9
|
-
Confirm
|
|
10
|
-
</AGButton>
|
|
11
|
-
<AGButton @click="$ui.loading(loadingMessage, after({ seconds: loadingDuration }))">
|
|
12
|
-
Loading
|
|
13
|
-
</AGButton>
|
|
14
|
-
<AGButton @click="$ui.showSnackbar(snackbarMessage, snackbarOptions)">
|
|
15
|
-
Snackbar
|
|
16
|
-
</AGButton>
|
|
17
|
-
<AGButton @click="$errors.inspect(errorReports)">
|
|
18
|
-
Error Report
|
|
19
|
-
</AGButton>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<AGAppOverlays />
|
|
23
|
-
|
|
24
|
-
<template #controls>
|
|
25
|
-
<HstText v-model="alertTitle" title="Alert Title" />
|
|
26
|
-
<HstText v-model="alertMessage" title="Alert Message" />
|
|
27
|
-
<HstText v-model="confirmTitle" title="Confirm Title" />
|
|
28
|
-
<HstText v-model="confirmMessage" title="Confirm Message" />
|
|
29
|
-
<HstText v-model="loadingMessage" title="Loading Message" />
|
|
30
|
-
<HstNumber v-model="loadingDuration" title="Loading Duration" />
|
|
31
|
-
<HstText v-model="snackbarMessage" title="Snackbar Message" />
|
|
32
|
-
<HstSelect v-model="snackbarColor" title="Snackbar Color" :options="snackbarColors" />
|
|
33
|
-
<HstText v-model="snackbarAction" title="Snackbar Action" />
|
|
34
|
-
<HstText v-model="errorReportTitle" title="Error Report Title" />
|
|
35
|
-
<HstText v-model="errorReportDescription" title="Error Report Description" />
|
|
36
|
-
</template>
|
|
37
|
-
</Variant>
|
|
38
|
-
</Story>
|
|
39
|
-
</template>
|
|
40
|
-
|
|
41
|
-
<script setup lang="ts">
|
|
42
|
-
import { computed, ref } from 'vue';
|
|
43
|
-
import { after, invert } from '@noeldemartin/utils';
|
|
44
|
-
import { Colors, SnackbarColors } from '@aerogel/core';
|
|
45
|
-
import type { ErrorReport, ShowSnackbarOptions } from '@aerogel/core';
|
|
46
|
-
|
|
47
|
-
const alertTitle = ref('Something important happened');
|
|
48
|
-
const alertMessage = ref('And here you can read the details...');
|
|
49
|
-
const confirmTitle = ref('Confirmation');
|
|
50
|
-
const confirmMessage = ref('Are you sure?');
|
|
51
|
-
const loadingMessage = ref('Loading...');
|
|
52
|
-
const loadingDuration = ref(3);
|
|
53
|
-
const snackbarMessage = ref('Something happened');
|
|
54
|
-
const snackbarColor = ref(Colors.Secondary);
|
|
55
|
-
const snackbarColors = invert(SnackbarColors);
|
|
56
|
-
const snackbarAction = ref('Ok');
|
|
57
|
-
const snackbarOptions = computed((): ShowSnackbarOptions => {
|
|
58
|
-
if (!snackbarAction.value) {
|
|
59
|
-
return {};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return {
|
|
63
|
-
color: snackbarColor.value,
|
|
64
|
-
actions: [
|
|
65
|
-
{
|
|
66
|
-
text: snackbarAction.value,
|
|
67
|
-
dismiss: true,
|
|
68
|
-
},
|
|
69
|
-
],
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
const errorReportTitle = ref('Error');
|
|
73
|
-
const errorReportDescription = ref('Something went wrong!');
|
|
74
|
-
const errorReports = computed((): ErrorReport[] => [
|
|
75
|
-
{
|
|
76
|
-
title: errorReportTitle.value,
|
|
77
|
-
description: errorReportDescription.value,
|
|
78
|
-
details: new Error().stack,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
title: errorReportTitle.value,
|
|
82
|
-
description: errorReportDescription.value,
|
|
83
|
-
details: new Error().stack,
|
|
84
|
-
},
|
|
85
|
-
]);
|
|
86
|
-
</script>
|
|
@@ -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: ['focus', 'focus-visible', 'focus-within', 'hover'],
|
|
10
|
-
allCombinations: true,
|
|
11
|
-
preserveBeforeAfter: false,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
module.exports = { plugins };
|
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
|