Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symandy/makefilemakerbundle
Symfony bundle used to generate a Makefile containing Symfony commands shortcuts for a project
https://github.com/symandy/makefilemakerbundle
makefile maker php symfony symfony-bundle
Last synced: about 2 months ago
JSON representation
Symfony bundle used to generate a Makefile containing Symfony commands shortcuts for a project
- Host: GitHub
- URL: https://github.com/symandy/makefilemakerbundle
- Owner: Symandy
- License: mit
- Created: 2021-12-14T16:39:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T15:25:54.000Z (3 months ago)
- Last Synced: 2024-12-15T23:35:34.989Z (about 2 months ago)
- Topics: makefile, maker, php, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Symandy Makefile Maker Bundle
## Introduction
Symandy Makefile Maker is a Symfony bundle used to generate a Makefile containing Symfony commands shortcuts for a project
This bundle includes some basics commands (Symfony, Doctrine, Composer and more) but project commands can be added to this file.
## Installation
```shell
composer require --dev symandy/makefile-maker-bundle
```If you are not using [Symfony Flex](https://github.com/symfony/flex), add the following lines to `config/bundles.php`
```php
['dev' => true, 'test' => true],
...
];
```## Configuration
You can dump the full configuration by running the following command
```shell
php bin/console config:dump-reference SymandyMakefileMakerBundle
```You can add `symandy_makefile_maker.yaml` file under `config/packages` directory to add additional commands to your Makefile.
```yaml
symandy_makefile_maker:
groups:
your_project:
commands:
hello:
name: hello
description: Say hello
instructions:
- executable: symfony_console
name: app:hello
arguments: [John]
options:
- { key: last-name, value: Doe }
```This configuration will output the following Makefile:
```shell
SYMFONY_CONSOLE = /usr/local/bin/symfony console
...hello: ## Say hello
@SYMFONY_CONSOLE app:hello John --last-name Doe
```Full configuration can be dumped using:
```shell
php bin/console debug:config SymandyMakefileMakerBundle
```## Usage
You can now run this command by running:
```shell
make hello
```instead of:
```shell
symfony console app:hello John --last-name Doe
```## Note
The only purpose of this bundle is to generate a Makefile for a Symfony project.
It can be removed if the Makefile won't be updated during development using:```shell
composer remove --dev symandy/makefile-maker-bundle
```