worldfactory/cookbook

Composer plugin to install library recipes.

Installs: 468

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 7

Type:composer-plugin

v1.0.0 2022-04-06 21:59 UTC

This package is auto-updated.

Last update: 2024-06-07 02:28:55 UTC


README

Composer plugin to execute library recipes.

CAUTION !! This library is in alpha version !!

How to use it

Add cookbook to the composer.json file of your library.

composer require worldfactory/cookbook

Add 'recipe.json' file in the root directory of your library :

{
  "actions": [
    {
      "type": "copy-file",
      "source": "recipe/file-1.md",
      "target": "file-1.md"
    },
    {
      "type": "create-folder",
      "target": "new-folder"
    },
    {
      "type": "copy-file",
      "source": "recipe/file-2.md",
      "target": "new-folder/file-2.md"
    },
    {
      "type": "copy-file",
      "source": "recipe/file-3.md",
      "target": "new-folder/file-3.md"
    },
    {
      "type": "chmod-file",
      "target": "new-folder/file-3.md",
      "mode": 775
    }
  ]
}

All configured actions will be executed when your library is installed !! ;)

Coming soon

  • More recipe types. (Symfony and composer hooks integration)
  • Test property to condition recipe execution.
  • Input from user.

Trello development tab.