gruntFile.js
function fakeTargetTask(prefix){
    return function(){

      if (this.args.length !== 1) {
        return grunt.log.fail('Just give the name of the ' + prefix + ' you want like :\ngrunt ' + prefix + ':bower');
      }

      var done = this.async();
      var spawn = require('child_process').spawn;
      spawn('./node_modules/.bin/gulp', [ prefix, '--branch='+this.args[0] ].concat(grunt.option.flags()), {
        cwd : './node_modules/angular-ui-publisher',
        stdio: 'inherit'
      }).on('close', done);
    };
  }
function fakeTargetTask(prefix){
    return function(){

      if (this.args.length !== 1) {
        return grunt.log.fail('Just give the name of the ' + prefix + ' you want like :\ngrunt ' + prefix + ':bower');
      }

      var done = this.async();
      var spawn = require('child_process').spawn;
      spawn('./node_modules/.bin/gulp', [ prefix, '--branch='+this.args[0] ].concat(grunt.option.flags()), {
        cwd : './node_modules/angular-ui-publisher',
        stdio: 'inherit'
      }).on('close', done);
    };
  }
function fakeTargetTask ( prefix ) { return function ( ) { if ( this . args . length !== 1 ) { return grunt . log . fail ( 'Just give the name of the ' + prefix + ' you want like :\ngrunt ' + prefix + ':bower' ) ; } var done = this . async ( ) ; var spawn = require ( 'child_process' ) . spawn ; spawn ( './node_modules/.bin/gulp' , [ prefix , '--branch=' + this . args [ 0 ] ] . concat ( grunt . option . flags ( ) ) , { cwd : './node_modules/angular-ui-publisher' , stdio : 'inherit' } ) . on ( 'close' , done ) ; } ; }
HACK TO ACCESS TO THE COMPONENT PUBLISHER
HACK TO ACCESS TO THE COMPONENT PUBLISHER