@aerogel/cli 0.0.0-next.926bde19326fe7b6b24b277666936862b64d8295 → 0.0.0-next.b58141fee5d2fe7d25debdbca6b1d2bf1c13e48e
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/dist/aerogel-cli.cjs.js +1 -1
- package/dist/aerogel-cli.cjs.js.map +1 -1
- package/dist/aerogel-cli.esm.js +1 -1
- package/dist/aerogel-cli.esm.js.map +1 -1
- package/package.json +4 -3
- package/src/cli.ts +4 -0
- package/src/commands/create.test.ts +22 -4
- package/src/commands/create.ts +21 -4
- package/src/commands/generate-component.test.ts +12 -1
- package/src/commands/generate-component.ts +127 -20
- package/src/commands/generate-model.test.ts +7 -4
- package/src/commands/generate-model.ts +30 -20
- package/src/commands/generate-service.test.ts +21 -0
- package/src/commands/generate-service.ts +152 -0
- package/src/commands/install.test.ts +18 -0
- package/src/commands/install.ts +32 -0
- package/src/lib/App.ts +65 -3
- package/src/lib/Editor.ts +56 -0
- package/src/lib/File.ts +6 -0
- package/src/lib/Log.mock.ts +2 -1
- package/src/lib/Log.ts +6 -4
- package/src/lib/utils/app.ts +15 -0
- package/src/lib/utils/edit.ts +44 -0
- package/src/lib/{utils.test.ts → utils/format.test.ts} +2 -2
- package/src/lib/{utils.ts → utils/format.ts} +0 -6
- package/src/lib/utils/paths.ts +34 -0
- package/src/plugins/Plugin.ts +125 -0
- package/src/plugins/Solid.ts +114 -0
- package/src/plugins/Soukai.ts +19 -0
- package/src/testing/setup.ts +36 -6
- package/templates/app/.eslintrc.js +3 -0
- package/templates/app/.github/workflows/ci.yml +14 -2
- package/templates/app/.vscode/launch.json +16 -0
- package/templates/app/.vscode/settings.json +10 -0
- package/templates/app/README.md +3 -0
- package/templates/app/cypress.config.ts +8 -0
- package/templates/app/index.html +1 -1
- package/templates/app/package.json +20 -7
- package/templates/app/prettier.config.js +5 -0
- package/templates/app/src/App.vue +3 -1
- package/templates/app/src/main.ts +5 -1
- package/templates/app/src/types/globals.d.ts +0 -1
- package/templates/app/tailwind.config.js +1 -1
- package/templates/app/tsconfig.json +1 -0
- package/templates/app/vite.config.ts +12 -5
- package/templates/service/[service.name].ts +8 -0
- package/noeldemartin.config.js +0 -4
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import install from '@aerogel/cypress/dist/plugin';
|
|
1
2
|
import { defineConfig } from 'cypress';
|
|
2
3
|
|
|
3
4
|
export default defineConfig({
|
|
4
5
|
e2e: {
|
|
5
6
|
baseUrl: 'http://localhost:5001',
|
|
6
7
|
video: false,
|
|
8
|
+
retries: {
|
|
9
|
+
runMode: 3,
|
|
10
|
+
openMode: 0,
|
|
11
|
+
},
|
|
12
|
+
setupNodeEvents(on) {
|
|
13
|
+
install(on);
|
|
14
|
+
},
|
|
7
15
|
},
|
|
8
16
|
});
|
package/templates/app/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title><% app.name %></title>
|
|
7
7
|
</head>
|
|
8
|
-
<body class="h-full w-full">
|
|
8
|
+
<body class="h-full w-full text-base font-normal leading-tight text-gray-900 antialiased">
|
|
9
9
|
<div id="app" class="h-full"></div>
|
|
10
10
|
<script type="module" src="./src/main.ts"></script>
|
|
11
11
|
</body>
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"cy:open": "cypress open --e2e --browser chromium",
|
|
9
9
|
"cy:run": "cypress run",
|
|
10
10
|
"cy:test": "start-server-and-test test:serve-app http-get://localhost:5001 cy:run",
|
|
11
|
+
"cy:test-snapshots": "docker run -it -u `id -u ${whoami}` -e CYPRESS_SNAPSHOTS=true -v ./:/app -w /app cypress/base:18.16.0 sh -c \"npx cypress install && npm run cy:test\"",
|
|
12
|
+
"cy:test-snapshots:ci": "docker run -e CYPRESS_SNAPSHOTS=true -v ./:/app -w /app cypress/base:18.16.0 sh -c \"npx cypress install && npm run cy:test\"",
|
|
11
13
|
"dev": "vite",
|
|
12
14
|
"lint": "noeldemartin-lint src",
|
|
13
15
|
"test": "vitest --run",
|
|
@@ -15,28 +17,39 @@
|
|
|
15
17
|
"test:serve-app": "vite --port 5001"
|
|
16
18
|
},
|
|
17
19
|
"dependencies": {
|
|
18
|
-
"@aerogel/core": "
|
|
19
|
-
"@aerogel/plugin-i18n": "
|
|
20
|
+
"@aerogel/core": "<% &dependencies.aerogelCore %>",
|
|
21
|
+
"@aerogel/plugin-i18n": "<% &dependencies.aerogelPluginI18n %>",
|
|
22
|
+
"@aerogel/plugin-soukai": "<% &dependencies.aerogelPluginSoukai %>",
|
|
20
23
|
"@intlify/unplugin-vue-i18n": "^0.12.2",
|
|
24
|
+
"@noeldemartin/utils": "next",
|
|
21
25
|
"@tailwindcss/forms": "^0.5.3",
|
|
22
26
|
"@tailwindcss/typography": "^0.5.9",
|
|
27
|
+
"soukai": "next",
|
|
23
28
|
"tailwindcss": "^3.3.2",
|
|
24
29
|
"vue": "^3.3.0",
|
|
25
30
|
"vue-i18n": "9.3.0-beta.19"
|
|
26
31
|
},
|
|
27
32
|
"devDependencies": {
|
|
28
|
-
"@aerogel/cli": "
|
|
29
|
-
"@aerogel/cypress": "
|
|
30
|
-
"@aerogel/vite": "
|
|
31
|
-
"@
|
|
33
|
+
"@aerogel/cli": "<% &dependencies.aerogelCli %>",
|
|
34
|
+
"@aerogel/cypress": "<% &dependencies.aerogelCypress %>",
|
|
35
|
+
"@aerogel/vite": "<% &dependencies.aerogelVite %>",
|
|
36
|
+
"@iconify/json": "^2.2.134",
|
|
37
|
+
"@noeldemartin/eslint-config-vue": "next",
|
|
38
|
+
"@noeldemartin/scripts": "next",
|
|
32
39
|
"@total-typescript/ts-reset": "^0.4.2",
|
|
33
40
|
"@types/node": "^20.3.1",
|
|
34
41
|
"autoprefixer": "^10.4.14",
|
|
35
42
|
"concurrently": "^8.2.0",
|
|
36
43
|
"cypress": "^12.17.0",
|
|
44
|
+
"eslint": "^8.40.0",
|
|
45
|
+
"prettier": "^2.8.8",
|
|
46
|
+
"prettier-eslint-cli": "^7.1.0",
|
|
47
|
+
"prettier-plugin-tailwindcss": "^0.2.8",
|
|
37
48
|
"start-server-and-test": "^2.0.0",
|
|
49
|
+
"unplugin-icons": "^0.16.3",
|
|
38
50
|
"unplugin-vue-components": "^0.24.1",
|
|
39
51
|
"vite": "^4.3.0",
|
|
40
|
-
"vitest": "^0.33.0"
|
|
52
|
+
"vitest": "^0.33.0",
|
|
53
|
+
"vue-tsc": "^1.8.15"
|
|
41
54
|
}
|
|
42
55
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<AGAppLayout>
|
|
3
3
|
<main class="flex flex-grow flex-col items-center justify-center bg-blue-50">
|
|
4
|
-
<h1 class="text-4xl font-semibold">
|
|
4
|
+
<h1 class="text-4xl font-semibold">
|
|
5
|
+
{{ $t('home.title') }}
|
|
6
|
+
</h1>
|
|
5
7
|
<a href="https://aerogel.js.org" target="_blank" class="mt-2 underline opacity-75 hover:opacity-100">
|
|
6
8
|
{{ $t('home.getStarted') }}
|
|
7
9
|
</a>
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import i18n from '@aerogel/plugin-i18n';
|
|
2
|
+
import soukai from '@aerogel/plugin-soukai';
|
|
2
3
|
import { bootstrapApplication } from '@aerogel/core';
|
|
3
4
|
|
|
4
5
|
import './assets/styles.css';
|
|
5
6
|
import App from './App.vue';
|
|
6
7
|
|
|
7
8
|
bootstrapApplication(App, {
|
|
8
|
-
plugins: [
|
|
9
|
+
plugins: [
|
|
10
|
+
i18n({ messages: import.meta.glob('@/lang/*.yaml') }),
|
|
11
|
+
soukai({ models: import.meta.glob('@/models/*', { eager: true }) }),
|
|
12
|
+
],
|
|
9
13
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @type {import('tailwindcss').Config} */
|
|
2
2
|
module.exports = {
|
|
3
|
-
content: ['./index.html', './src/**/*.{vue,ts}', '
|
|
3
|
+
content: ['./index.html', './src/**/*.{vue,ts}', '<% &contentPath %>'],
|
|
4
4
|
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
|
|
5
5
|
};
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import Aerogel, { AerogelResolver } from '@aerogel/vite';
|
|
2
2
|
import Components from 'unplugin-vue-components/vite';
|
|
3
3
|
import I18n from '@intlify/unplugin-vue-i18n/vite';
|
|
4
|
+
import Icons from 'unplugin-icons/vite';
|
|
5
|
+
import IconsResolver from 'unplugin-icons/resolver';
|
|
6
|
+
import { defineConfig } from 'vitest/config';
|
|
4
7
|
import { resolve } from 'path';
|
|
5
8
|
|
|
6
|
-
export default {
|
|
9
|
+
export default defineConfig({
|
|
7
10
|
plugins: [
|
|
8
|
-
I18n({ include: resolve(__dirname, './src/lang/**/*.yaml') }),
|
|
9
11
|
Aerogel(),
|
|
10
12
|
Components({
|
|
11
|
-
dirs: ['src/pages'],
|
|
12
13
|
dts: false,
|
|
13
|
-
resolvers: [AerogelResolver()],
|
|
14
|
+
resolvers: [AerogelResolver(), IconsResolver()],
|
|
15
|
+
}),
|
|
16
|
+
I18n({ include: resolve(__dirname, './src/lang/**/*.yaml') }),
|
|
17
|
+
Icons({
|
|
18
|
+
iconCustomizer(_, __, props) {
|
|
19
|
+
props['aria-hidden'] = 'true';
|
|
20
|
+
},
|
|
14
21
|
}),
|
|
15
22
|
],
|
|
16
23
|
resolve: {
|
|
@@ -18,4 +25,4 @@ export default {
|
|
|
18
25
|
'@': resolve(__dirname, './src'),
|
|
19
26
|
},
|
|
20
27
|
},
|
|
21
|
-
};
|
|
28
|
+
});
|
package/noeldemartin.config.js
DELETED