Adding composer_reset task
This commit is contained in:
parent
7dd3825424
commit
472a574460
|
@ -7,6 +7,18 @@ task('composer_update', ['alias' => 'deps_update'], function()
|
|||
composer_update(true);
|
||||
});
|
||||
|
||||
task('composer_reset', function()
|
||||
{
|
||||
global $GAME_ROOT;
|
||||
|
||||
echo "Going to reset composer package manager...\n";
|
||||
|
||||
are_you_sure();
|
||||
|
||||
ensure_rm("$GAME_ROOT/composer/vendor/");
|
||||
ensure_rm("$GAME_ROOT/composer/composer.last");
|
||||
});
|
||||
|
||||
task('composer', function($args) {
|
||||
global $GAME_ROOT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue