Move javascript builder & less compile command to developer binary

This commit is contained in:
Nicolas Le Goff
2013-07-05 18:42:49 +02:00
parent d6f771c076
commit b57732c03e
4 changed files with 201 additions and 7 deletions

View File

@@ -10,11 +10,13 @@
*/
use Alchemy\Phrasea\CLI;
use Alchemy\Phrasea\Core\Version;
use Alchemy\Phrasea\Command\Developer\RegenerateSqliteDb;
use Alchemy\Phrasea\Command\Developer\RoutesDumper;
use Alchemy\Phrasea\Command\Developer\APIRoutesDumper;
use Alchemy\Phrasea\Command\Developer\Behat;
use Alchemy\Phrasea\Command\Developer\JavascriptBuilder;
use Alchemy\Phrasea\Command\Developer\LessCompiler;
use Alchemy\Phrasea\Command\Developer\RegenerateSqliteDb;
use Alchemy\Phrasea\Command\Developer\RoutesDumper;
use Alchemy\Phrasea\Core\Version;
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
@@ -66,6 +68,8 @@ try {
$cli->command(new APIRoutesDumper());
$cli->command(new RoutesDumper());
$cli->command(new Behat());
$cli->command(new LessCompiler());
$cli->command(new JavascriptBuilder());
$cli['console']->addCommands(array(
// DBAL Commands

View File

@@ -19,8 +19,6 @@ namespace KonsoleKommander;
use Alchemy\Phrasea\Core\Version;
use Alchemy\Phrasea\Command\UpgradeDBDatas;
use Alchemy\Phrasea\Command\Setup\Install;
use Alchemy\Phrasea\Command\Setup\LessCompiler;
use Alchemy\Phrasea\Command\Setup\JavascriptBuilder;
use Alchemy\Phrasea\CLI;
use Alchemy\Phrasea\Command\Setup\CheckEnvironment;
@@ -64,8 +62,6 @@ try {
$app->command(new CheckEnvironment('check:system'));
$app->command(new Install('system:install'));
$app->command(new LessCompiler());
$app->command(new JavascriptBuilder());
$result_code = is_int($app->run()) ? : 1;
} catch (\Exception $e) {