added symlink dependencies for node_modules in Robo

This commit is contained in:
Jonathan Labreuille
2015-07-21 12:35:27 +02:00
parent 8137a30f46
commit fdddcbea14
7 changed files with 25 additions and 16 deletions

View File

@ -3,11 +3,21 @@ class RoboFile extends \Robo\Tasks {
function install() {
$this->_exec('./composer.phar install');
$this->_exec('npm install');
$this->symlinkDependencies();
}
function update() {
$this->_exec('./composer.phar update');
$this->_exec('npm update');
$this->symlinkDependencies();
}
function symlinkDependencies() {
// handlebars
$this->_symlink(
__DIR__.'/node_modules/handlebars/dist/handlebars.min.js',
__DIR__.'/assets/js/handlebars/handlebars.min.js'
);
}
function testUnit() {