worldfactory / cookbook
Composer plugin to install library recipes.
Installs: 469
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 7
Type:composer-plugin
Requires
- composer-plugin-api: ^2.3
Requires (Dev)
- composer/composer: ^2.3
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.