Esempio n. 1
0
  shipit.on('deploy', function () {

    utils.runTask(gruntOrShipit, 'npm:init')

    shipit.on('npm_inited', function () {
      var shipit = utils.getShipit(gruntOrShipit);
      var onEvent = shipit.config.npm.remote ? 'updated' : 'fetched';
      var task = shipit.config.npm.preinstall ? 'npm:preinstall': 'npm:install';

      shipit.on(onEvent, function () {
        utils.runTask(gruntOrShipit, task);
      });
    });

  });
Esempio n. 2
0
 shipit.on('npm_pre_install_complete', function () {
   utils.runTask(gruntOrShipit, 'npm:install');
 });
Esempio n. 3
0
 shipit.on(onEvent, function () {
   utils.runTask(gruntOrShipit, task);
 });
Esempio n. 4
0
 shipit.on(event, function() {
   utils.runTask(gruntOrShipit, 'shared');
 });