Skip to content

recipes add --into: merge a recipe into an existing site instead of copying files by hand #1014

Closed

Description

@jimhoyd

From #1001 / PR #1012 and the fourth agent trial (#1006). Adopting a recipe into an existing site is manual: copy its urlcode.yaml routes, routes/, tests/requests.json and tests/seed.json into app/, merge the store collections into the site's extension config, and set expectRoutes in app/tests/audit.json. Every trial agent did this by hand.

Request: urlcode recipes add <id> --into <site> (or --project app). It would merge the recipe into an existing project:

  • refuse on route or collection name clashes, naming them;
  • merge the extension config, fixtures and seed;
  • update the route count;
  • report what it changed.

A plain copy is what recipes show prints today.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions