Skip to content

Commit e8e4b92

Browse files
feat: use hosting config (#249)
* feat: use hosting config Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * feat: update libs and config Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> --------- Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 3c19d02 commit e8e4b92

28 files changed

Lines changed: 94 additions & 66 deletions

File tree

templates/angular-example/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "dist/angular-example/browser",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "dist/angular-example/browser",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/angular-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"@angular/platform-browser": "^21.0.0",
2424
"@angular/platform-browser-dynamic": "^21.0.0",
2525
"@angular/router": "^21.0.0",
26-
"@junobuild/core": "^5.3.1",
27-
"@junobuild/functions": "^0.8.2",
26+
"@junobuild/core": "^5.4.0",
27+
"@junobuild/functions": "^0.8.3",
2828
"nanoid": "^5.1.5",
2929
"rxjs": "~7.8.2",
3030
"tslib": "^2.8.1",

templates/angular-starter/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "dist/angular-example/browser",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "dist/angular-example/browser",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/angular-starter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"@angular/platform-browser": "^21.0.0",
2424
"@angular/platform-browser-dynamic": "^21.0.0",
2525
"@angular/router": "^21.0.0",
26-
"@junobuild/core": "^5.3.1",
27-
"@junobuild/functions": "^0.8.2",
26+
"@junobuild/core": "^5.4.0",
27+
"@junobuild/functions": "^0.8.3",
2828
"rxjs": "~7.8.2",
2929
"tslib": "^2.8.1",
3030
"zone.js": "^0.15.1"

templates/astro-starter/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "dist",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "dist",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/astro-starter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@astrojs/mdx": "^4.3.12",
1616
"@astrojs/rss": "^4.0.14",
1717
"@astrojs/sitemap": "^3.6.0",
18-
"@junobuild/config": "^2.15.1",
18+
"@junobuild/config": "^3.0.0",
1919
"@junobuild/vite-plugin": "^4.7.1",
2020
"@tailwindcss/vite": "^4.1.17",
2121
"astro": "^5.16.0",

templates/nextjs-example/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "out",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "out",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/nextjs-example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"postinstall": "npm run postinstall:copy-auth"
1313
},
1414
"dependencies": {
15-
"@junobuild/core": "^5.3.1",
16-
"@junobuild/functions": "^0.8.2",
15+
"@junobuild/core": "^5.4.0",
16+
"@junobuild/functions": "^0.8.3",
1717
"nanoid": "^5.1.5",
1818
"next": "16.0.7",
1919
"react": "19.2.1",
2020
"react-dom": "19.2.1"
2121
},
2222
"devDependencies": {
23-
"@junobuild/config": "^2.15.1",
23+
"@junobuild/config": "^3.0.0",
2424
"@junobuild/nextjs-plugin": "^4.7.1",
2525
"@next/eslint-plugin-next": "16.0.0",
2626
"@tailwindcss/postcss": "^4.1.13",

templates/nextjs-starter/juno.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default defineConfig({
77
development: "<DEV_SATELLITE_ID>",
88
production: "<PROD_SATELLITE_ID>",
99
},
10-
source: "out",
11-
predeploy: ["npm run build"],
10+
hosting: {
11+
source: "out",
12+
predeploy: ["npm run build"],
13+
}
1214
},
1315
});

templates/nextjs-starter/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"postinstall": "npm run postinstall:copy-auth"
1313
},
1414
"dependencies": {
15-
"@junobuild/core": "^5.3.1",
16-
"@junobuild/functions": "^0.8.2",
15+
"@junobuild/core": "^5.4.0",
16+
"@junobuild/functions": "^0.8.3",
1717
"next": "16.0.7",
1818
"react": "19.2.1",
1919
"react-dom": "19.2.1"
2020
},
2121
"devDependencies": {
22-
"@junobuild/config": "^2.15.1",
22+
"@junobuild/config": "^3.0.0",
2323
"@junobuild/nextjs-plugin": "^4.7.1",
2424
"@tailwindcss/postcss": "^4.1.13",
2525
"@types/node": "^24",

0 commit comments

Comments
 (0)