Compare commits

..

No commits in common. "master" and "v1.0.1" have entirely different histories.

2 changed files with 14 additions and 7 deletions

View File

@ -1 +0,0 @@
This package is now obsolete. Consider using **bit/taskman_composer** instead please.

View File

@ -3,15 +3,23 @@ namespace taskman;
task('deps_update', function() task('deps_update', function()
{ {
update_composer(true); update_composer();
}); });
//NOTE: COMPOSER_FORCE_UPDATE = true will make composer to update packages and function update_composer()
// a lock file
// COMPOSER_FORCE_UPDATE = false will make composer install dependencies
// listed in a lock file in case if it's present
function update_composer($COMPOSER_FORCE_UPDATE = false)
{ {
global $GAME_ROOT; global $GAME_ROOT;
include("$GAME_ROOT/composer/update.php"); include("$GAME_ROOT/composer/update.php");
touch("$GAME_ROOT/composer/composer.last");
}
function try_update_composer()
{
global $GAME_ROOT;
if(!need_to_regen("$GAME_ROOT/composer/composer.last", ["$GAME_ROOT/composer/composer.json"]))
return false;
update_composer();
return true;
} }