index.js
function(extensions) {
  var
    extensions = extensions || {},
    devExts = extensions.development || [],
    testExts = extensions.test || [],
    prodExts = extensions.production || [];

  gulp.task('default', ['development']);

  gulp.task('post-install-development', [
    'karma:dev',
    'styles',
    'bundle-js:dev:clean',
    'tpl-precompile',
    'watch'
  ].concat(devExts));
  gulp.task('development', ['install-dev-dep'], function() {
    gulp.start('post-install-development');
  });

  gulp.task('post-install-test', [
    'lint',
    'karma'
  ].concat(testExts), cleanTmp);
  gulp.task('test', ['install-dev-dep'], function() {
    gulp.start('post-install-test');
  });

  gulp.task('post-install-production', [
    'styles',
    'bundle-js:clean',
    'tpl-precompile'
  ].concat(prodExts));
  gulp.task('production', ['install-dep'], function() {
    gulp.start('post-install-production');
  });
}
function(extensions) {
  var
    extensions = extensions || {},
    devExts = extensions.development || [],
    testExts = extensions.test || [],
    prodExts = extensions.production || [];

  gulp.task('default', ['development']);

  gulp.task('post-install-development', [
    'karma:dev',
    'styles',
    'bundle-js:dev:clean',
    'tpl-precompile',
    'watch'
  ].concat(devExts));
  gulp.task('development', ['install-dev-dep'], function() {
    gulp.start('post-install-development');
  });

  gulp.task('post-install-test', [
    'lint',
    'karma'
  ].concat(testExts), cleanTmp);
  gulp.task('test', ['install-dev-dep'], function() {
    gulp.start('post-install-test');
  });

  gulp.task('post-install-production', [
    'styles',
    'bundle-js:clean',
    'tpl-precompile'
  ].concat(prodExts));
  gulp.task('production', ['install-dep'], function() {
    gulp.start('post-install-production');
  });
}
function ( extensions ) { var extensions = extensions || { } , devExts = extensions . development || [ ] , testExts = extensions . test || [ ] , prodExts = extensions . production || [ ] ; gulp . task ( 'default' , [ 'development' ] ) ; gulp . task ( 'post-install-development' , [ 'karma:dev' , 'styles' , 'bundle-js:dev:clean' , 'tpl-precompile' , 'watch' ] . concat ( devExts ) ) ; gulp . task ( 'development' , [ 'install-dev-dep' ] , function ( ) { gulp . start ( 'post-install-development' ) ; } ) ; gulp . task ( 'post-install-test' , [ 'lint' , 'karma' ] . concat ( testExts ) , cleanTmp ) ; gulp . task ( 'test' , [ 'install-dev-dep' ] , function ( ) { gulp . start ( 'post-install-test' ) ; } ) ; gulp . task ( 'post-install-production' , [ 'styles' , 'bundle-js:clean' , 'tpl-precompile' ] . concat ( prodExts ) ) ; gulp . task ( 'production' , [ 'install-dep' ] , function ( ) { gulp . start ( 'post-install-production' ) ; } ) ; }
Gladius Forge main tasks setup function. It can extend main tasks with
extra externally defined tasks via an "extension" parameter.
@param  {Object} extensions: object descriptor of extra tasks to add for
each main task.
Gladius Forge main tasks setup function . It can extend main tasks with extra externally defined tasks via an extension parameter .