feat(summon): add react application, route, and wrapper generators#603
Open
advl wants to merge 1 commit intofeat/router-boilerplatefrom
Open
feat(summon): add react application, route, and wrapper generators#603advl wants to merge 1 commit intofeat/router-boilerplatefrom
advl wants to merge 1 commit intofeat/router-boilerplatefrom
Conversation
54916be to
02f928c
Compare
02f928c to
5fb4040
Compare
44e7cee to
45fa718
Compare
5fb4040 to
27c5c2f
Compare
e80e830 to
f93bdf3
Compare
4f96081 to
502f460
Compare
502f460 to
c1446ba
Compare
69db414 to
ff89ea4
Compare
c1446ba to
fea093f
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Done
@canonical/summon-applicationwith three generators:summon application react --ssr --router: scaffolds a full React SSR app with router integration, grouped routes viawrapper()+group(), withI18n middleware, and working SSR entry pointssummon route <path>: generates a route module and appends its exportsummon wrapper <name>: generates a wrapper module and appends its exportdeclare moduleaugmentation,RouteMiddleware-typed middleware, properRouterDehydratedStateusage, singleRouterProvider@canonical/summon-core,@canonical/task^0.22.0packages/cli/summon/generators/Depends on #601 and #602
QA
bun run --filter @canonical/summon-application test— 7 tests passsummon application react --ssr --router --app-path=test-appgenerates a valid projectPR readiness check
Feature 🎁package.json:check,check:fix, andtest.npm publish --access public.