Skip to content

feat: shipnode init --preset next|tanstack-start|adonis|nuxt #12

Description

@devalade

What to build

Today shipnode init produces a generic config. First deploys are where users drop off — port mismatches, wrong buildDir, missing preDeploy for migrations, wrong build script in package.json. Add framework-aware presets that ship a config that just deploys.

Presets to ship in v1:

  • next — Next.js 14+. Frontend + built-in Node server. Port 3000. Build: next build. Recommend output: 'standalone'.
  • tanstack-start — TanStack Start. Backend variant with the correct start command.
  • adonis — AdonisJS 6+. Backend, port 3333. build script + preDeploy for node ace migration:run --force.
  • nuxt — Nuxt 3. Frontend/Node server variant.

Each preset writes a full working shipnode.config.ts and, when helpful, warns about the app-side changes needed (e.g. Next.js output: 'standalone', Prisma build script order — see the shipnode skill troubleshooting section, that content should feed the preset).

CLI shape:

  • shipnode init --preset next
  • shipnode init --preset next --non-interactive uses defaults, prompts skipped
  • Preset resolution is registry-based so adding a preset is one file, not a switch statement across the CLI

Acceptance criteria

  • shipnode init --preset next produces a config with .frontend() (or the correct type), .buildDir('.next'), and a documented start command
  • Adonis preset includes .preDeploy(async ({ exec }) => await exec('node ace migration:run --force'))
  • --preset <unknown> exits 1 with a list of valid presets
  • Interactive mode (no --non-interactive) still prompts for host, user, domain, deploy path — presets fill only what's framework-specific
  • Each preset has a smoke test that runs shipnode init --preset X --non-interactive --print and asserts the output is valid config
  • README documents the preset list

Blocked by

None - can start immediately

Note

This is a HITL slice: the list of presets to support and their exact defaults are a product decision. Recommend reviewing the list and defaults with a real deploy of each stack before locking them into the registry.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions