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.
Files changed (53) hide show
  1. package/README.md +50 -11
  2. package/bin/cli.js +66 -5
  3. package/package.json +1 -1
  4. package/template/AGENTS.md +91 -4
  5. package/template/astro.config.mjs +14 -3
  6. package/template/bun.lock +202 -96
  7. package/template/deno.json +16 -1
  8. package/template/deno.lock +571 -309
  9. package/template/eslint.config.mjs +27 -2
  10. package/template/package-lock.json +760 -258
  11. package/template/package.json +38 -29
  12. package/template/patches/{@angular+build+21.2.0.patch → @angular+build+21.2.1.patch} +1 -10
  13. package/template/patches-deno/playwright+1.58.2.patch +26 -0
  14. package/template/playwright.config.ts +1 -1
  15. package/template/pnpm-lock.yaml +984 -599
  16. package/template/src/framework/angular/{Counter.component.ts → Demo.component.ts} +12 -5
  17. package/template/src/framework/angular/Store.component.ts +24 -0
  18. package/template/src/framework/preact/Demo.tsx +86 -0
  19. package/template/src/framework/preact/Store.tsx +31 -0
  20. package/template/src/framework/react/{Counter.tsx → Demo.tsx} +23 -17
  21. package/template/src/framework/react/Store.tsx +31 -0
  22. package/template/src/framework/svelte/{Counter.svelte → Demo.svelte} +8 -11
  23. package/template/src/framework/svelte/Store.svelte +22 -0
  24. package/template/src/framework/vue/{Counter.vue → Demo.vue} +7 -9
  25. package/template/src/framework/vue/Store.vue +28 -0
  26. package/template/src/images/angular.png +0 -0
  27. package/template/src/images/preact.png +0 -0
  28. package/template/src/images/react.png +0 -0
  29. package/template/src/images/svelte.png +0 -0
  30. package/template/src/images/vue.png +0 -0
  31. package/template/src/pages/angular/{angular-counter.astro → angular-demo.astro} +12 -5
  32. package/template/src/pages/multi/store.astro +22 -0
  33. package/template/src/pages/preact/preact-demo.astro +66 -0
  34. package/template/src/pages/react/{react-counter.astro → react-demo.astro} +12 -9
  35. package/template/src/pages/svelte/{svelte-counter.astro → svelte-demo.astro} +9 -9
  36. package/template/src/pages/vue/{vue-counter.astro → vue-demo.astro} +9 -15
  37. package/template/src/stores/framework.ts +10 -0
  38. package/template/src/styles/index.css +4 -0
  39. package/template/test/e2e/angular/angular-counter.spec.ts +7 -1
  40. package/template/test/e2e/preact/preact-counter.spec.ts +42 -0
  41. package/template/test/e2e/react/react-counter.spec.ts +2 -2
  42. package/template/test/e2e/svelte/svelte-counter.spec.ts +2 -2
  43. package/template/test/e2e/vue/vue-counter.spec.ts +2 -2
  44. package/template/test/integration/angular/{Counter.component.spec.ts → Demo.component.spec.ts} +6 -6
  45. package/template/test/integration/preact/Demo.test.tsx +84 -0
  46. package/template/test/integration/react/{Counter.test.tsx → Demo.test.tsx} +10 -9
  47. package/template/test/integration/svelte/{Counter.test.ts → Demo.test.ts} +9 -9
  48. package/template/test/integration/svelte/{SlotCounter.wrapper.svelte → Demo.wrapper.svelte} +3 -3
  49. package/template/test/integration/vue/{Counter.test.ts → Demo.test.ts} +9 -9
  50. package/template/tsconfig.json +0 -1
  51. package/template/vitest.config.ts +12 -0
  52. package/template/yarn.lock +572 -234
  53. /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, // 2. Explicitly set the Svelte parser
185
+ parser: svelteParser,
182
186
  parserOptions: {
183
187
  ...config.languageOptions?.parserOptions,
184
188
  extraFileExtensions: [".svelte"],
185
- parser: tseslint.parser, // 3. Use TS parser for the <script> block
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
  ];