Skip to content

Commit

Permalink
feat(command): add new install command & update config options (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthv committed Jan 19, 2023
1 parent 98f8f33 commit c9fc878
Show file tree
Hide file tree
Showing 9 changed files with 537 additions and 555 deletions.
8 changes: 5 additions & 3 deletions .husky/pre-commit
@@ -1,11 +1,13 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

FILES=$(git diff --name-only --cached | grep -E '\.(php)$' | tr '\n' ' ')
PHP_CS_FIXER=vendor/bin/php-cs-fixer

FILES=$(git diff --name-only --cached --diff-filter=d | grep -E '\.(php)$' | tr '\n' ' ')
if [ -z "$FILES" ]
then
echo "php files not found."
else
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php ${FILES}
elif [ -f "$PHP_CS_FIXER" ]; then
$PHP_CS_FIXER fix --config=.php-cs-fixer.dist.php ${FILES}
git add ${FILES}
fi
2 changes: 2 additions & 0 deletions bin/forest
Expand Up @@ -2,9 +2,11 @@
<?php
require_once __DIR__ . '/../vendor/autoload.php';

use ForestAdmin\SymfonyForestAdmin\Command\InstallCommand;
use ForestAdmin\SymfonyForestAdmin\Command\SendApimapCommand;
use Symfony\Component\Console\Application;

$app = new Application();
$app->add(new SendApimapCommand());
$app->add(new InstallCommand());
$app->run();
8 changes: 4 additions & 4 deletions composer.json
@@ -1,16 +1,16 @@
{
"name": "forestadmin/symfony-forestadmin",
"version": "1.0.0-beta.1",
"minimum-stability": "dev",
"minimum-stability": "stable",
"description": "Forest Admin provides an off-the-shelf administration panel based on a highly-extensible API plugged into your application.",
"type": "symfony-bundle",
"require": {
"php": ">=8.0",
"asm89/stack-cors": "^2.1",
"doctrine/orm": "^2.12",
"forestadmin/agent-php": "^1.0.0",
"symfony/console": "6.0.x-dev",
"symfony/framework-bundle": "^6.0"
"forestadmin/agent-php": "^1.0.0.beta",
"symfony/framework-bundle": "^6.0",
"symfony/console": "^6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
Expand Down

0 comments on commit c9fc878

Please sign in to comment.