You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by "jamesfredley (via GitHub)" <gi...@apache.org> on 2026/05/03 22:54:10 UTC
[PR] Add grails-vite-spa v8 guide [grails-static-website]
jamesfredley opened a new pull request, #500:
URL: https://github.com/apache/grails-static-website/pull/500
## Summary
Final Grails 8 sample-app-flavour guide in the eight-guide series (PRs #479, #493, #494, #495, #496, #497, #498, #499). Two-tier integration: Grails 8 rest_api JSON backend plus a Vite + React SPA frontend in a single Gradle multi-project, packaged into one bootJar with the SPA served from the same origin as the API. Replaces the long-broken Webpack-era React/Vue profiles.
## Greenfield - no upstream rename
New grails-guides/grails-vite-spa repo created public with grails8 as default branch. Vue 3 path is documented as a one-line plugin swap; the existing legacy react/vue repos are left alone.
## What's in the PR
- conf/guides.yml - new grails-vite-spa registry entry, alphabetical insertion before grails-vs-nodejs.
- 14 chapter .adoc files.
- Vendored snippets: settings.gradle, build.gradle (with frontendTasks tag), Book domain, UrlMappings, BookController, SpaController, two .gson views, frontend/{package.json, vite.config.js, index.html, src/main.jsx, src/App.jsx}.
## Layout
backend/ is a Gradle subproject. frontend/ is plain npm; three root Gradle tasks (npmInstall, frontendBuild, copyFrontendToBackend) bridge the two halves. backend:processResources depends on copyFrontendToBackend, so plain ./gradlew :backend:bootJar produces a single jar serving SPA at / and API at /api/**.
## Verification
- ./gradlew validateGuides -PvalidationMode=both returns 86 guides, 0 errors.
- ./gradlew renderGuide_grails_vite_spa_8 --rerun-tasks --no-configuration-cache renders all 14 chapter HTML pages, no Unresolved directive errors.
## Series complete
This is the last of eight Grails 8 guides shipped as a stack of independent PRs: Tailwind (#493), Docker bootBuildImage (#494), GitHub Actions CI/CD (#495), REST Library API (#496), HTMX (#497), Multi-project (#498), Spock test tour (#499), and now Vite SPA (this one).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Add grails-vite-spa v8 guide [grails-static-website]
Posted by "jamesfredley (via GitHub)" <gi...@apache.org>.
jamesfredley merged PR #500:
URL: https://github.com/apache/grails-static-website/pull/500
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org