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.
- package/bin/cli.js +37 -1
- package/integrations/.prettierignore +15 -0
- package/integrations/.yarn/releases/yarn-4.15.0.cjs +940 -0
- package/integrations/.yarnrc.yml +6 -0
- package/integrations/bun.lock +1225 -0
- package/integrations/bunfig.toml +3 -0
- package/integrations/deno.json +4 -0
- package/integrations/deno.lock +3896 -0
- package/integrations/eslint.config.mjs +61 -0
- package/integrations/html/client.ts +30 -0
- package/integrations/html/index.ts +57 -0
- package/integrations/html/server.ts +54 -0
- package/integrations/package-lock.json +8898 -0
- package/integrations/package.json +39 -0
- package/integrations/pnpm-lock.yaml +5499 -0
- package/integrations/pnpm-workspace.yaml +4 -0
- package/integrations/tsconfig.json +15 -0
- package/integrations/yarn.lock +6305 -0
- package/package.json +3 -1
- package/template/.github/workflows/deno-test.yml +1 -1
- package/template/.github/workflows/npm-test.yml +1 -1
- package/template/.github/workflows/pnpm-test.yml +2 -2
- package/template/.github/workflows/yarn-test.yml +26 -13
- package/template/.gitignore +4 -0
- package/template/.prettierignore +1 -0
- package/template/.yarn/releases/yarn-4.15.0.cjs +940 -0
- package/template/.yarnrc.yml +8 -0
- package/template/AGENTS.md +46 -1
- package/template/README.md +15 -0
- package/template/astro.config.mjs +4 -0
- package/template/bun.lock +322 -360
- package/template/bunfig.toml +3 -0
- package/template/deno.json +3 -11
- package/template/deno.lock +700 -679
- package/template/eslint.config.mjs +1 -0
- package/template/package-lock.json +610 -589
- package/template/package.json +36 -41
- package/template/pnpm-lock.yaml +1084 -1114
- package/template/pnpm-workspace.yaml +5 -0
- package/template/src/framework/html/Demo.ts +105 -0
- package/template/src/framework/html/Store.ts +47 -0
- package/template/src/images/html.png +0 -0
- package/template/src/pages/html/html-demo.astro +61 -0
- package/template/src/pages/multi/store.astro +3 -1
- package/template/src/stores/framework.ts +1 -0
- package/template/test/e2e/html/html-demo.spec.ts +36 -0
- package/template/test/integration/html/Demo.test.ts +83 -0
- package/template/tsconfig.json +1 -1
- package/template/vitest.config.ts +9 -0
- package/template/yarn.lock +14730 -10350
- /package/template/patches/{@analogjs+astro-angular+2.5.1.patch → @analogjs+astro-angular+2.5.2.patch} +0 -0
- /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",
|