-
Notifications
You must be signed in to change notification settings - Fork 2
feat: scaffold React, Vue, Angular, and Nuxt apps from the CLI #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
29c60fa
feat(cli): scaffold React, Vue and Angular SPAs
mridang d691dc1
feat(cli): match all vite.config extensions and share ViteSupport
mridang 4fdd932
feat(cli): scaffold Nuxt via the sdk-nuxt module
mridang ad41a7f
refactor(cli): brace all guards and cover every config extension
mridang c776809
refactor(cli): merge vite-proxy into vite-support
mridang 78a7b32
refactor(cli): hoist PROXY_PATH to a framework-neutral module
mridang 7521246
Merge remote-tracking branch 'origin/main' into feat/cli-spa-frameworks
mridang 4c5a941
refactor(cli): reuse npmDistTagForCliVersion in SPA patchers
mridang d08319c
fix(cli): repair proxy edits, harden Nuxt merge, drop overwrite footgun
mridang eccc905
style(cli): apply prettier to SPA patcher files
mridang 1a6c21e
refactor(cli): immutable patcher code + per-patcher READMEs
mridang 16c7436
refactor(cli): group magicast helpers in utils/ and add tests
mridang a06a3a9
chore(cli): add changeset for SPA framework scaffolding
mridang b11ac47
refactor(cli): scope NEXT_PUBLIC env to the Next patcher
mridang 220b610
feat(cli): eject surfaces in-place config edits + patcher/scaffolder …
mridang 84ca4ca
fix(cli): remove orphaned app.css in the Angular scaffolder
mridang af6649b
fix(cli): angular scaffolder must name the project and use --directory
mridang cf0650b
fix(cli): target the Nuxt 4 app/ srcDir when patching and ejecting
mridang 8e97819
fix(cli): add setup --dev-port and an Angular dev script
mridang 21a0213
Merge remote-tracking branch 'origin/main' into feat/cli-spa-frameworks
mridang aaf1a2b
Merge remote-tracking branch 'origin/main' into feat/cli-spa-frameworks
mridang 32c7903
fix(cli): drop proxy changeOrigin and register the app origin
mridang 8bdd180
fix(cli): don't double the scheme in zitadel.json issuer_pattern
mridang a84bfb6
feat(cli): proxy injects sk_<project_id> from env on every request
mridang 03f01c7
Merge branch 'main' into feat/cli-spa-frameworks
mridang dd90e61
feat(cli): set strictPort in the generated Vite config
mridang 01bccb6
fix(cli): harden config edits against non-object literals
mridang 8a9cbed
fix(cli): report edited config files as a glob in eject
mridang 70ec66d
fix(cli): report Angular appDir as src/app
mridang 314763d
perf(cli): avoid double read when resolving edit candidates
mridang 217c8d7
chore(cli): align magicast to 0.5.3
mridang 925bb95
fix(cli): harden setup config-paths, dev-port, and proxy templates
mridang 4b3b8ce
docs(cli): align config-edit docs with the actual behavior
mridang bd39cc7
fix(cli): preserve an existing dev script when patching Angular
mridang 3e0b796
docs(cli): document SPA frameworks and dev-port; cover the edit file-op
mridang d749868
fix(cli): keep the scaffolded dev-server port in sync with the issuer
mridang 50ebfd4
test(cli): cover the react/vue/angular detectors; reuse PROXY_PATH
mridang 4bb7ddb
Merge branch 'main' into feat/cli-spa-frameworks
mridang f7941a1
docs(cli): clarify the app templates inject a bearer, not a secret
mridang a432d50
docs(cli): correct dev-port and proxy wording in patcher docs
mridang c758834
refactor(cli): centralize proxy path and name config files in errors
mridang 804672a
fix(cli): harden Angular project selection and proxy.conf rewrite
mridang 026d5c4
fix(cli): make the package.json and angular.json edits no-op when unc…
mridang 693e117
fix(cli): make scaffolded components compile across framework versions
mridang 38a9645
fix(cli): keep the proxy rewrite valid for a bare prefix + query string
mridang 2fdf884
Merge branch 'main' into feat/cli-spa-frameworks
mridang 1457332
fix(cli): guard missing project id and fail fast on absent package.json
mridang b10f496
fix(cli): preserve file permissions when an edit op replaces a file
mridang 9542d29
Merge remote-tracking branch 'origin/main' into feat/cli-spa-frameworks
mridang cff9c72
fix(cli): validate proxy target and report package.json as an Angular…
mridang ac58f3c
fix(cli): harden editFile candidates/mode and clarify eject package.j…
mridang 00ea67d
fix(cli): transpile Nuxt style deps and stop pinning the Vite dev host
mridang 53bc194
fix(cli): resolve the Vite proxy env dir from process.cwd()
mridang 97c138b
fix(cli): skip rewriting already-complete Vite and Nuxt configs
mridang 06baeab
docs(cli): describe --renderer accurately in SKILLS.md
mridang 1be2d58
fix(cli): gate Angular detection on v17+ and keep --dev-port authorit…
mridang 8f7fbe7
fix(cli): give a targeted error for CommonJS config files
mridang e3a8632
docs(cli): clarify eject dev-script wording and config-candidates exa…
mridang 1c7bc2d
fix(cli): use a wildcard label for config validation errors
mridang 9857415
fix(cli): narrow CommonJS config detection to an assignment
mridang 283a5a1
fix(cli): reject exports.* CommonJS configs and specify the angular.j…
mridang ee22f73
fix(cli): detect CommonJS configs from the AST, not raw text
mridang 188ee8b
docs(cli): list the shared ZITADEL_* env keys in the patcher READMEs
mridang 6f45e13
Merge remote-tracking branch 'origin/main' into feat/cli-spa-frameworks
mridang f556c83
fix(cli): match the source module in importIsPresent
mridang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@zitadel/cli": minor | ||
| --- | ||
|
|
||
| Add `setup --framework react|vue|angular|nuxt` support to the CLI. Each framework scaffolds its auth entry/pages and wires `/__nextgen/*` calls to the backend with a `sk_<project_id>` bearer attached: React and Vue get a dev proxy magicast-merged into the Vite config (`vite.config.*`) that reads the project id from `ZITADEL_PROJECT_ID`; Angular gets a `proxy.conf.cjs` wired into `angular.json` that reads it from `zitadel.json`; and Nuxt registers the `@zitadel/sdk-nuxt` module in the Nuxt config (`nuxt.config.*`), which adds the proxy via server middleware. A `--dev-port` flag sets the scaffolded dev-server port. | ||
|
mridang marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.