From 9c0525e96dc6c124af3809a73d94a19453fc643a Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Sun, 12 Apr 2026 15:30:54 +0200 Subject: [PATCH 1/2] feat: use hosting config Signed-off-by: David Dal Busco --- templates/angular-example/juno.config.mjs | 6 ++++-- templates/angular-starter/juno.config.mjs | 6 ++++-- templates/astro-starter/juno.config.mjs | 6 ++++-- templates/nextjs-example/juno.config.mjs | 6 ++++-- templates/nextjs-starter/juno.config.mjs | 6 ++++-- templates/react-example/juno.config.mjs | 6 ++++-- templates/react-starter/juno.config.mjs | 6 ++++-- templates/react-ts-example/juno.config.ts | 6 ++++-- templates/react-ts-starter/juno.config.ts | 6 ++++-- templates/sveltekit-example/juno.config.ts | 6 ++++-- templates/sveltekit-starter/juno.config.ts | 6 ++++-- templates/vanilla-js-example/juno.config.mjs | 6 ++++-- templates/vue-example/juno.config.ts | 6 ++++-- templates/vue-starter/juno.config.ts | 6 ++++-- 14 files changed, 56 insertions(+), 28 deletions(-) diff --git a/templates/angular-example/juno.config.mjs b/templates/angular-example/juno.config.mjs index 9f05ce78..fe88ae11 100644 --- a/templates/angular-example/juno.config.mjs +++ b/templates/angular-example/juno.config.mjs @@ -7,7 +7,9 @@ export default defineConfig({ development: "", production: "", }, - source: "dist/angular-example/browser", - predeploy: ["npm run build"], + hosting: { + source: "dist/angular-example/browser", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/angular-starter/juno.config.mjs b/templates/angular-starter/juno.config.mjs index 9f05ce78..fe88ae11 100644 --- a/templates/angular-starter/juno.config.mjs +++ b/templates/angular-starter/juno.config.mjs @@ -7,7 +7,9 @@ export default defineConfig({ development: "", production: "", }, - source: "dist/angular-example/browser", - predeploy: ["npm run build"], + hosting: { + source: "dist/angular-example/browser", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/astro-starter/juno.config.mjs b/templates/astro-starter/juno.config.mjs index 62097f30..8b747bf9 100644 --- a/templates/astro-starter/juno.config.mjs +++ b/templates/astro-starter/juno.config.mjs @@ -7,7 +7,9 @@ export default defineConfig({ development: "", production: "", }, - source: "dist", - predeploy: ["npm run build"], + hosting: { + source: "dist", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/nextjs-example/juno.config.mjs b/templates/nextjs-example/juno.config.mjs index afa3d95c..4ab49bcd 100644 --- a/templates/nextjs-example/juno.config.mjs +++ b/templates/nextjs-example/juno.config.mjs @@ -7,7 +7,9 @@ export default defineConfig({ development: "", production: "", }, - source: "out", - predeploy: ["npm run build"], + hosting: { + source: "out", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/nextjs-starter/juno.config.mjs b/templates/nextjs-starter/juno.config.mjs index afa3d95c..4ab49bcd 100644 --- a/templates/nextjs-starter/juno.config.mjs +++ b/templates/nextjs-starter/juno.config.mjs @@ -7,7 +7,9 @@ export default defineConfig({ development: "", production: "", }, - source: "out", - predeploy: ["npm run build"], + hosting: { + source: "out", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/react-example/juno.config.mjs b/templates/react-example/juno.config.mjs index 62097f30..8b747bf9 100644 --- a/templates/react-example/juno.config.mjs +++ b/templates/react-example/juno.config.mjs @@ -7,7 +7,9 @@ export default defineConfig({ development: "", production: "", }, - source: "dist", - predeploy: ["npm run build"], + hosting: { + source: "dist", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/react-starter/juno.config.mjs b/templates/react-starter/juno.config.mjs index 62097f30..8b747bf9 100644 --- a/templates/react-starter/juno.config.mjs +++ b/templates/react-starter/juno.config.mjs @@ -7,7 +7,9 @@ export default defineConfig({ development: "", production: "", }, - source: "dist", - predeploy: ["npm run build"], + hosting: { + source: "dist", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/react-ts-example/juno.config.ts b/templates/react-ts-example/juno.config.ts index 9d0b4e1f..adb78f54 100644 --- a/templates/react-ts-example/juno.config.ts +++ b/templates/react-ts-example/juno.config.ts @@ -6,7 +6,9 @@ export default defineConfig({ development: "", production: "", }, - source: "dist", - predeploy: ["npm run build"], + hosting: { + source: "dist", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/react-ts-starter/juno.config.ts b/templates/react-ts-starter/juno.config.ts index 9d0b4e1f..adb78f54 100644 --- a/templates/react-ts-starter/juno.config.ts +++ b/templates/react-ts-starter/juno.config.ts @@ -6,7 +6,9 @@ export default defineConfig({ development: "", production: "", }, - source: "dist", - predeploy: ["npm run build"], + hosting: { + source: "dist", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/sveltekit-example/juno.config.ts b/templates/sveltekit-example/juno.config.ts index 99f1bb93..518ea28f 100644 --- a/templates/sveltekit-example/juno.config.ts +++ b/templates/sveltekit-example/juno.config.ts @@ -6,7 +6,9 @@ export default defineConfig({ development: '', production: '' }, - source: 'build', - predeploy: ['npm run build'] + hosting: { + source: 'build', + predeploy: ['npm run build'] + } } }); diff --git a/templates/sveltekit-starter/juno.config.ts b/templates/sveltekit-starter/juno.config.ts index 99f1bb93..518ea28f 100644 --- a/templates/sveltekit-starter/juno.config.ts +++ b/templates/sveltekit-starter/juno.config.ts @@ -6,7 +6,9 @@ export default defineConfig({ development: '', production: '' }, - source: 'build', - predeploy: ['npm run build'] + hosting: { + source: 'build', + predeploy: ['npm run build'] + } } }); diff --git a/templates/vanilla-js-example/juno.config.mjs b/templates/vanilla-js-example/juno.config.mjs index 62097f30..8b747bf9 100644 --- a/templates/vanilla-js-example/juno.config.mjs +++ b/templates/vanilla-js-example/juno.config.mjs @@ -7,7 +7,9 @@ export default defineConfig({ development: "", production: "", }, - source: "dist", - predeploy: ["npm run build"], + hosting: { + source: "dist", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/vue-example/juno.config.ts b/templates/vue-example/juno.config.ts index 5ff67db0..c374fc36 100644 --- a/templates/vue-example/juno.config.ts +++ b/templates/vue-example/juno.config.ts @@ -6,7 +6,9 @@ export default defineConfig({ development: "", production: '' }, - source: "dist", - predeploy: ["npm run build"], + hosting: { + source: "dist", + predeploy: ["npm run build"], + } }, }); diff --git a/templates/vue-starter/juno.config.ts b/templates/vue-starter/juno.config.ts index 5ff67db0..c374fc36 100644 --- a/templates/vue-starter/juno.config.ts +++ b/templates/vue-starter/juno.config.ts @@ -6,7 +6,9 @@ export default defineConfig({ development: "", production: '' }, - source: "dist", - predeploy: ["npm run build"], + hosting: { + source: "dist", + predeploy: ["npm run build"], + } }, }); From 688e66a23f408e18e3f72228d34940cebc173fa8 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Sun, 12 Apr 2026 20:38:33 +0200 Subject: [PATCH 2/2] feat: update libs and config Signed-off-by: David Dal Busco --- templates/angular-example/package.json | 4 ++-- templates/angular-starter/package.json | 4 ++-- templates/astro-starter/package.json | 2 +- templates/nextjs-example/package.json | 6 +++--- templates/nextjs-starter/package.json | 6 +++--- templates/react-example/package.json | 6 +++--- templates/react-starter/package.json | 6 +++--- templates/react-ts-example/package.json | 6 +++--- templates/react-ts-starter/package.json | 6 +++--- templates/sveltekit-example/package.json | 6 +++--- templates/sveltekit-starter/package.json | 6 +++--- templates/vanilla-js-example/package.json | 6 +++--- templates/vue-example/package.json | 6 +++--- templates/vue-starter/package.json | 6 +++--- 14 files changed, 38 insertions(+), 38 deletions(-) diff --git a/templates/angular-example/package.json b/templates/angular-example/package.json index 17cdbe55..1169dbe0 100644 --- a/templates/angular-example/package.json +++ b/templates/angular-example/package.json @@ -23,8 +23,8 @@ "@angular/platform-browser": "^21.0.0", "@angular/platform-browser-dynamic": "^21.0.0", "@angular/router": "^21.0.0", - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "nanoid": "^5.1.5", "rxjs": "~7.8.2", "tslib": "^2.8.1", diff --git a/templates/angular-starter/package.json b/templates/angular-starter/package.json index d1c40aad..be6b13b4 100644 --- a/templates/angular-starter/package.json +++ b/templates/angular-starter/package.json @@ -23,8 +23,8 @@ "@angular/platform-browser": "^21.0.0", "@angular/platform-browser-dynamic": "^21.0.0", "@angular/router": "^21.0.0", - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "rxjs": "~7.8.2", "tslib": "^2.8.1", "zone.js": "^0.15.1" diff --git a/templates/astro-starter/package.json b/templates/astro-starter/package.json index cd615daf..8c7b0450 100644 --- a/templates/astro-starter/package.json +++ b/templates/astro-starter/package.json @@ -15,7 +15,7 @@ "@astrojs/mdx": "^4.3.12", "@astrojs/rss": "^4.0.14", "@astrojs/sitemap": "^3.6.0", - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@tailwindcss/vite": "^4.1.17", "astro": "^5.16.0", diff --git a/templates/nextjs-example/package.json b/templates/nextjs-example/package.json index ab146cf5..9fdc7f0a 100644 --- a/templates/nextjs-example/package.json +++ b/templates/nextjs-example/package.json @@ -12,15 +12,15 @@ "postinstall": "npm run postinstall:copy-auth" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "nanoid": "^5.1.5", "next": "16.0.7", "react": "19.2.1", "react-dom": "19.2.1" }, "devDependencies": { - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/nextjs-plugin": "^4.7.1", "@next/eslint-plugin-next": "16.0.0", "@tailwindcss/postcss": "^4.1.13", diff --git a/templates/nextjs-starter/package.json b/templates/nextjs-starter/package.json index f1891b79..68b29148 100644 --- a/templates/nextjs-starter/package.json +++ b/templates/nextjs-starter/package.json @@ -12,14 +12,14 @@ "postinstall": "npm run postinstall:copy-auth" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "next": "16.0.7", "react": "19.2.1", "react-dom": "19.2.1" }, "devDependencies": { - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/nextjs-plugin": "^4.7.1", "@tailwindcss/postcss": "^4.1.13", "@types/node": "^24", diff --git a/templates/react-example/package.json b/templates/react-example/package.json index 162f9c87..c8d935ff 100644 --- a/templates/react-example/package.json +++ b/templates/react-example/package.json @@ -13,15 +13,15 @@ "postinstall": "npm run postinstall:copy-auth" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "nanoid": "^5.1.5", "react": "^19.2.1", "react-dom": "^19.2.1" }, "devDependencies": { "@eslint/js": "^9.34.0", - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@tailwindcss/postcss": "^4.1.13", "@tailwindcss/vite": "^4.1.13", diff --git a/templates/react-starter/package.json b/templates/react-starter/package.json index 61c334f0..16cc1fc3 100644 --- a/templates/react-starter/package.json +++ b/templates/react-starter/package.json @@ -13,14 +13,14 @@ "postinstall": "npm run postinstall:copy-auth" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "react": "^19.2.1", "react-dom": "^19.2.1" }, "devDependencies": { "@eslint/js": "^9.34.0", - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@tailwindcss/postcss": "^4.1.13", "@tailwindcss/vite": "^4.1.13", diff --git a/templates/react-ts-example/package.json b/templates/react-ts-example/package.json index 043b1497..642f3cc5 100644 --- a/templates/react-ts-example/package.json +++ b/templates/react-ts-example/package.json @@ -13,15 +13,15 @@ "postinstall": "npm run postinstall:copy-auth" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "nanoid": "^5.1.5", "react": "^19.2.1", "react-dom": "^19.2.1" }, "devDependencies": { "@eslint/js": "^9.34.0", - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@tailwindcss/postcss": "^4.1.13", "@tailwindcss/vite": "^4.1.13", diff --git a/templates/react-ts-starter/package.json b/templates/react-ts-starter/package.json index 1c068077..03d4aa3e 100644 --- a/templates/react-ts-starter/package.json +++ b/templates/react-ts-starter/package.json @@ -13,14 +13,14 @@ "postinstall": "npm run postinstall:copy-auth" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "react": "^19.2.1", "react-dom": "^19.2.1" }, "devDependencies": { "@eslint/js": "^9.34.0", - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@tailwindcss/postcss": "^4.1.13", "@tailwindcss/vite": "^4.1.13", diff --git a/templates/sveltekit-example/package.json b/templates/sveltekit-example/package.json index 39bf1440..1cdc204f 100644 --- a/templates/sveltekit-example/package.json +++ b/templates/sveltekit-example/package.json @@ -15,7 +15,7 @@ "postinstall": "npm run postinstall:copy-auth" }, "devDependencies": { - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@sveltejs/adapter-static": "^3.0.9", "@sveltejs/kit": "^2.37.0", @@ -41,8 +41,8 @@ }, "type": "module", "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "nanoid": "^5.1.5" }, "overrides": { diff --git a/templates/sveltekit-starter/package.json b/templates/sveltekit-starter/package.json index 4b8a3f0c..bcdb6a34 100644 --- a/templates/sveltekit-starter/package.json +++ b/templates/sveltekit-starter/package.json @@ -15,7 +15,7 @@ "postinstall": "npm run postinstall:copy-auth" }, "devDependencies": { - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@sveltejs/adapter-static": "^3.0.9", "@sveltejs/kit": "^2.37.0", @@ -44,7 +44,7 @@ "cookie": "^0.7.0" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2" + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3" } } diff --git a/templates/vanilla-js-example/package.json b/templates/vanilla-js-example/package.json index d24e761c..6c6dd2ee 100644 --- a/templates/vanilla-js-example/package.json +++ b/templates/vanilla-js-example/package.json @@ -12,7 +12,7 @@ "postinstall": "npm run postinstall:copy-auth" }, "devDependencies": { - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@tailwindcss/postcss": "^4.1.13", "@tailwindcss/vite": "^4.1.13", @@ -22,8 +22,8 @@ "vite": "^7.1.4" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "nanoid": "^5.1.5" } } diff --git a/templates/vue-example/package.json b/templates/vue-example/package.json index 2ee43e50..b73edc7b 100644 --- a/templates/vue-example/package.json +++ b/templates/vue-example/package.json @@ -16,15 +16,15 @@ "postinstall": "npm run postinstall:copy-auth" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "nanoid": "^5.1.5", "pinia": "^3.0.3", "vue": "^3.5.21", "vue-router": "^4.5.1" }, "devDependencies": { - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@tailwindcss/postcss": "^4.1.13", "@tailwindcss/vite": "^4.1.13", diff --git a/templates/vue-starter/package.json b/templates/vue-starter/package.json index ff9d824b..d44e47bf 100644 --- a/templates/vue-starter/package.json +++ b/templates/vue-starter/package.json @@ -16,14 +16,14 @@ "postinstall": "npm run postinstall:copy-auth" }, "dependencies": { - "@junobuild/core": "^5.3.1", - "@junobuild/functions": "^0.8.2", + "@junobuild/core": "^5.4.0", + "@junobuild/functions": "^0.8.3", "pinia": "^3.0.3", "vue": "^3.5.21", "vue-router": "^4.5.1" }, "devDependencies": { - "@junobuild/config": "^2.15.1", + "@junobuild/config": "^3.0.0", "@junobuild/vite-plugin": "^4.7.1", "@tailwindcss/postcss": "^4.1.13", "@tailwindcss/vite": "^4.1.13",