create-outsystems-astro 0.6.0 → 0.7.0
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/README.md +50 -11
- package/bin/cli.js +66 -5
- package/package.json +1 -1
- package/template/AGENTS.md +91 -4
- package/template/astro.config.mjs +14 -3
- package/template/bun.lock +202 -96
- package/template/deno.json +16 -1
- package/template/deno.lock +571 -309
- package/template/eslint.config.mjs +27 -2
- package/template/package-lock.json +760 -258
- package/template/package.json +38 -29
- package/template/patches/{@angular+build+21.2.0.patch → @angular+build+21.2.1.patch} +1 -10
- package/template/patches-deno/playwright+1.58.2.patch +26 -0
- package/template/playwright.config.ts +1 -1
- package/template/pnpm-lock.yaml +984 -599
- package/template/src/framework/angular/{Counter.component.ts → Demo.component.ts} +12 -5
- package/template/src/framework/angular/Store.component.ts +24 -0
- package/template/src/framework/preact/Demo.tsx +86 -0
- package/template/src/framework/preact/Store.tsx +31 -0
- package/template/src/framework/react/{Counter.tsx → Demo.tsx} +23 -17
- package/template/src/framework/react/Store.tsx +31 -0
- package/template/src/framework/svelte/{Counter.svelte → Demo.svelte} +8 -11
- package/template/src/framework/svelte/Store.svelte +22 -0
- package/template/src/framework/vue/{Counter.vue → Demo.vue} +7 -9
- package/template/src/framework/vue/Store.vue +28 -0
- package/template/src/images/angular.png +0 -0
- package/template/src/images/preact.png +0 -0
- package/template/src/images/react.png +0 -0
- package/template/src/images/svelte.png +0 -0
- package/template/src/images/vue.png +0 -0
- package/template/src/pages/angular/{angular-counter.astro → angular-demo.astro} +12 -5
- package/template/src/pages/multi/store.astro +22 -0
- package/template/src/pages/preact/preact-demo.astro +66 -0
- package/template/src/pages/react/{react-counter.astro → react-demo.astro} +12 -9
- package/template/src/pages/svelte/{svelte-counter.astro → svelte-demo.astro} +9 -9
- package/template/src/pages/vue/{vue-counter.astro → vue-demo.astro} +9 -15
- package/template/src/stores/framework.ts +10 -0
- package/template/src/styles/index.css +4 -0
- package/template/test/e2e/angular/angular-counter.spec.ts +7 -1
- package/template/test/e2e/preact/preact-counter.spec.ts +42 -0
- package/template/test/e2e/react/react-counter.spec.ts +2 -2
- package/template/test/e2e/svelte/svelte-counter.spec.ts +2 -2
- package/template/test/e2e/vue/vue-counter.spec.ts +2 -2
- package/template/test/integration/angular/{Counter.component.spec.ts → Demo.component.spec.ts} +6 -6
- package/template/test/integration/preact/Demo.test.tsx +84 -0
- package/template/test/integration/react/{Counter.test.tsx → Demo.test.tsx} +10 -9
- package/template/test/integration/svelte/{Counter.test.ts → Demo.test.ts} +9 -9
- package/template/test/integration/svelte/{SlotCounter.wrapper.svelte → Demo.wrapper.svelte} +3 -3
- package/template/test/integration/vue/{Counter.test.ts → Demo.test.ts} +9 -9
- package/template/tsconfig.json +0 -1
- package/template/vitest.config.ts +12 -0
- package/template/yarn.lock +572 -234
- /package/template/patches/{@analogjs+astro-angular+2.3.0.patch → @analogjs+astro-angular+2.3.1.patch} +0 -0
|
@@ -2,6 +2,7 @@ import { fixupPluginRules } from "@eslint/compat";
|
|
|
2
2
|
import pluginJs from "@eslint/js";
|
|
3
3
|
import markdown from "@eslint/markdown";
|
|
4
4
|
import angular from "angular-eslint";
|
|
5
|
+
import preactConfig from "eslint-config-preact";
|
|
5
6
|
import eslintConfigPrettier from "eslint-config-prettier";
|
|
6
7
|
import eslintPluginAstro from "eslint-plugin-astro";
|
|
7
8
|
import importPlugin from "eslint-plugin-import";
|
|
@@ -18,6 +19,8 @@ import globals from "globals";
|
|
|
18
19
|
import svelteParser from "svelte-eslint-parser";
|
|
19
20
|
import tseslint from "typescript-eslint";
|
|
20
21
|
|
|
22
|
+
// 1. Import the Preact config normally
|
|
23
|
+
|
|
21
24
|
import svelteConfig from "./svelte.config.js";
|
|
22
25
|
|
|
23
26
|
// Fix for Bun and eslint-plugin-perfectionist.
|
|
@@ -62,6 +65,7 @@ export default [
|
|
|
62
65
|
},
|
|
63
66
|
},
|
|
64
67
|
},
|
|
68
|
+
// ... rest of your config remains identical
|
|
65
69
|
{
|
|
66
70
|
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
|
|
67
71
|
plugins: {
|
|
@@ -178,13 +182,34 @@ export default [
|
|
|
178
182
|
files: ["**/*.svelte"],
|
|
179
183
|
languageOptions: {
|
|
180
184
|
...config.languageOptions,
|
|
181
|
-
parser: svelteParser,
|
|
185
|
+
parser: svelteParser,
|
|
182
186
|
parserOptions: {
|
|
183
187
|
...config.languageOptions?.parserOptions,
|
|
184
188
|
extraFileExtensions: [".svelte"],
|
|
185
|
-
parser: tseslint.parser,
|
|
189
|
+
parser: tseslint.parser,
|
|
186
190
|
svelteConfig,
|
|
187
191
|
},
|
|
188
192
|
},
|
|
189
193
|
})),
|
|
194
|
+
{
|
|
195
|
+
files: ["src/framework/preact/**/*.{js,ts,jsx,tsx}"],
|
|
196
|
+
languageOptions: {
|
|
197
|
+
globals: {
|
|
198
|
+
...globals.browser,
|
|
199
|
+
},
|
|
200
|
+
parserOptions: {
|
|
201
|
+
ecmaFeatures: {
|
|
202
|
+
jsx: true,
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
rules: {
|
|
207
|
+
...preactConfig.rules,
|
|
208
|
+
},
|
|
209
|
+
settings: {
|
|
210
|
+
react: {
|
|
211
|
+
version: "19.0",
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
190
215
|
];
|