feat(14.3-01): add summer new with a starter route and relative go.work

- build.NewApp writes sm-<name>-app: go.mod with a relative framework
  replace, go.work, summer.yaml, config/ and a starter plugin
- make:plugin gains an opt-in starter route (GET /{$}) in the same
  routes.go template; plain make:plugin output is unchanged
- plugin:add writes go.work use paths relative to the go.work directory
- bonfire accepts new as a bare tool command name
This commit is contained in:
Jakub Zych
2026-10-08 11:37:53 +02:00
parent 86fcd5d4fd
commit 7bc955a0c2
10 changed files with 423 additions and 15 deletions

View File

@@ -109,7 +109,7 @@ func (in cobraInput) Flag(name string) (string, bool) {
func validCommandName(name string) bool {
switch name {
case "build", "dev", "serve", "migrate":
case "build", "dev", "new", "serve", "migrate":
return true
}
ns, verb, ok := strings.Cut(name, ":")