create-outsystems-astro 0.9.0 → 0.10.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 (52) hide show
  1. package/bin/cli.js +37 -1
  2. package/integrations/.prettierignore +15 -0
  3. package/integrations/.yarn/releases/yarn-4.15.0.cjs +940 -0
  4. package/integrations/.yarnrc.yml +6 -0
  5. package/integrations/bun.lock +1225 -0
  6. package/integrations/bunfig.toml +3 -0
  7. package/integrations/deno.json +4 -0
  8. package/integrations/deno.lock +3896 -0
  9. package/integrations/eslint.config.mjs +61 -0
  10. package/integrations/html/client.ts +30 -0
  11. package/integrations/html/index.ts +57 -0
  12. package/integrations/html/server.ts +54 -0
  13. package/integrations/package-lock.json +8898 -0
  14. package/integrations/package.json +39 -0
  15. package/integrations/pnpm-lock.yaml +5499 -0
  16. package/integrations/pnpm-workspace.yaml +4 -0
  17. package/integrations/tsconfig.json +15 -0
  18. package/integrations/yarn.lock +6305 -0
  19. package/package.json +3 -1
  20. package/template/.github/workflows/deno-test.yml +1 -1
  21. package/template/.github/workflows/npm-test.yml +1 -1
  22. package/template/.github/workflows/pnpm-test.yml +2 -2
  23. package/template/.github/workflows/yarn-test.yml +26 -13
  24. package/template/.gitignore +4 -0
  25. package/template/.prettierignore +1 -0
  26. package/template/.yarn/releases/yarn-4.15.0.cjs +940 -0
  27. package/template/.yarnrc.yml +8 -0
  28. package/template/AGENTS.md +46 -1
  29. package/template/README.md +15 -0
  30. package/template/astro.config.mjs +4 -0
  31. package/template/bun.lock +322 -360
  32. package/template/bunfig.toml +3 -0
  33. package/template/deno.json +3 -11
  34. package/template/deno.lock +700 -679
  35. package/template/eslint.config.mjs +1 -0
  36. package/template/package-lock.json +610 -589
  37. package/template/package.json +36 -41
  38. package/template/pnpm-lock.yaml +1084 -1114
  39. package/template/pnpm-workspace.yaml +5 -0
  40. package/template/src/framework/html/Demo.ts +105 -0
  41. package/template/src/framework/html/Store.ts +47 -0
  42. package/template/src/images/html.png +0 -0
  43. package/template/src/pages/html/html-demo.astro +61 -0
  44. package/template/src/pages/multi/store.astro +3 -1
  45. package/template/src/stores/framework.ts +1 -0
  46. package/template/test/e2e/html/html-demo.spec.ts +36 -0
  47. package/template/test/integration/html/Demo.test.ts +83 -0
  48. package/template/tsconfig.json +1 -1
  49. package/template/vitest.config.ts +9 -0
  50. package/template/yarn.lock +14730 -10350
  51. /package/template/patches/{@analogjs+astro-angular+2.5.1.patch → @analogjs+astro-angular+2.5.2.patch} +0 -0
  52. /package/template/patches/{@angular+build+21.2.11.patch → @angular+build+21.2.12.patch} +0 -0
package/bin/cli.js CHANGED
@@ -16,6 +16,7 @@ const __dirname = path.dirname(__filename);
16
16
 
17
17
  const FRAMEWORKS = [
18
18
  { title: "Angular", value: "angular" },
19
+ { title: "HTML", value: "html" },
19
20
  { title: "Preact", value: "preact" },
20
21
  { title: "React", value: "react" },
21
22
  { title: "SolidJS", value: "solid" },
@@ -49,6 +50,8 @@ async function main() {
49
50
  console.log("📦 Copying template...");
50
51
  copyDir(templateDir, targetDir);
51
52
 
53
+ buildIntegrations();
54
+
52
55
  const packageManager = packageInstall(targetDir);
53
56
 
54
57
  selectWorkflowTestCI(targetDir, packageManager);
@@ -93,6 +96,35 @@ Next steps:
93
96
  `);
94
97
  }
95
98
 
99
+ function buildIntegrations() {
100
+ const integrationsDir = path.join(__dirname, "..", "integrations");
101
+ const packageManager = detectPackageManager();
102
+
103
+ const installCmd = {
104
+ npm: "npm install",
105
+ yarn: "yarn install",
106
+ pnpm: "pnpm install",
107
+ bun: "bun install",
108
+ deno: "deno install",
109
+ unknown: "npm install",
110
+ }[packageManager];
111
+
112
+ const buildCmd = {
113
+ npm: "npm run process",
114
+ yarn: "yarn process",
115
+ pnpm: "pnpm run process",
116
+ bun: "bun run process",
117
+ deno: "deno task process",
118
+ unknown: "npm run process",
119
+ }[packageManager];
120
+
121
+ console.log("📦 Installing integration dependencies...");
122
+ execSync(installCmd, { cwd: integrationsDir, stdio: "inherit" });
123
+
124
+ console.log("🔨 Building integrations...");
125
+ execSync(buildCmd, { cwd: integrationsDir, stdio: "inherit" });
126
+ }
127
+
96
128
  // Simple recursive copy
97
129
  function copyDir(src, dest) {
98
130
  fs.mkdirSync(dest, { recursive: true });
@@ -221,6 +253,10 @@ function updateMultiAstroPage(projectDir, selectedFrameworks) {
221
253
  import: /import\s+AngularStore\s+from\s+['"].*?angular\/Store\.component['"];?\s*\n?/g,
222
254
  component: /<AngularStore\s+client:load\s*\/>\s*\n?/g
223
255
  },
256
+ html: {
257
+ import: /import\s+HTMLStore\s+from\s+['"].*?html\/Store['"];?\s*\n?/g,
258
+ component: /<HTMLStore\s+client:load\s*\/>\s*\n?/g,
259
+ },
224
260
  preact: {
225
261
  import: /import\s+PreactStore\s+from\s+['"].*?preact\/Store['"];?\s*\n?/g,
226
262
  component: /<PreactStore\s+client:only="preact"\s*\/>\s*\n?/g
@@ -323,7 +359,7 @@ function packageInstall(targetDir) {
323
359
 
324
360
  const installCmd = {
325
361
  npm: "npm install",
326
- yarn: "yarn",
362
+ yarn: "yarn install",
327
363
  pnpm: "pnpm install",
328
364
  bun: "bun install",
329
365
  deno: "deno install && deno run postinsall:deno",
@@ -0,0 +1,15 @@
1
+ .github/
2
+ .integrations/
3
+ .prettierrc
4
+ bun.lock
5
+ deno.json
6
+ deno.lock
7
+ dist/
8
+ node_modules/
9
+ output/
10
+ package-lock.json
11
+ package.json
12
+ patches/
13
+ pnpm-lock.yaml
14
+ pnpm-workspace.yaml
15
+ yarn.lock