Skip to content

Remove duplicate code on recipes #16

Open
@faustinoaq

Description

@faustinoaq

Hi 😅

Currently --recipe flag is working very nice on master (not released yet), also the recipes are being automatically tested and deployed 🎉 https://github.com/amberframework/recipes/releases

Although, this repo has some duplicated code across recipes, we have some options to fix this:

  1. Use symlinks to reuse existent code/directories/files, before deploy the symlinks should be replaced by the real folder/file, once deployed and zipped the recipe should not contain symlinks. 😄

  2. Use multiple liquid layouts to reuse templates. We would need a common layout directory, so every recipe can include it and reuse the code. 🎉

  3. Use one recipe per repository this won't remove the duplicated code, but just move the code to a new repo for each recipe. This would work by using shards install, although the maintainability is not easy, because we will require to test, maintain, deploy and review issue/PRs for all recipe repositories.. ❤️

  4. hierarchical recipes where a recipe depends on another base recipe and is effectively a delta from the base recipe by @damianham 👍

/cc @drujensen @damianham @amberframework/contributors @amberframework/core-team

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions