How to use run-sequence - 10 common examples

To help you get started, we’ve selected a few run-sequence examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liferay / liferay-js-themes-toolkit / packages / liferay-theme-tasks / tasks / watch.js View on Github external
module.exports = function(options) {
	// Get things from options
	const {argv, distName, gulp, pathBuild, pathSrc, resourcePrefix} = options;

	// Initialize global things
	const {storage} = gulp;
	const runSequence = require('run-sequence').use(gulp);

	// Get config from liferay-theme.json
	const proxyUrl = argv.url || storage.get('url');
	const deploymentStrategy = storage.get('deploymentStrategy');
	const dockerContainerName = storage.get('dockerContainerName');
	const pluginName = storage.get('pluginName') || '';

	// Calculate some values
	const explodedBuildDir = path.join(process.cwd(), EXPLODED_BUILD_DIR_NAME);
	const dockerThemePath = path.posix.join('/tmp', pluginName);
	const dockerBundleDirPath = path.posix.join(
		dockerThemePath,
		EXPLODED_BUILD_DIR_NAME
	);

	/**
github frankwallis / gulp-hub / lib / add-task.js View on Github external
gulp.task(task.name, function(cb) {
    	var cwd = process.cwd();
        var _args = args.slice();
        _args.push(function() {
        	// restore current working directory (see #23)
        	process.chdir(cwd);
        	cb.apply(null, arguments);
        });
        runSequence.apply(null, _args);
    });
};
github se-panfilov / mini-toastr / bower_components / mini-toastr / build / tasks / make.js View on Github external
'use strict'

const gulp = require('gulp')
const runSequence = require('run-sequence').use(gulp)
// const config = require('../config')

gulp.task('make', () => {
  return runSequence(
    'es5',
    'es6'
  )
})
github se-panfilov / vue-notifications / build / tasks / make.js View on Github external
const gulp = require('gulp')
const runSequence = require('run-sequence').use(gulp)
// const config = require('../config')

gulp.task('make', () => {
  return runSequence(
    'es5',
    'es6'
  )
})
github se-panfilov / mini-toastr / build / tasks / make.js View on Github external
'use strict'

const gulp = require('gulp')
const runSequence = require('run-sequence').use(gulp)
// const config = require('../config')

gulp.task('make', () => {
  return runSequence(
    'es5',
    'es6'
  )
})
github kotas / gulp-tsc / test-e2e / gulpfile.js View on Github external
gulp.task('all', ['clean'], function (cb) {
  var tasks = Object.keys(this.tasks).filter(function (k) { return /^test\d+/.test(k) });
  tasks.sort(function (a, b) { return a.match(/\d+/)[0] - b.match(/\d+/)[0] });
  tasks.push(cb);
  sequence.apply(null, tasks);
});
github SC5 / sc5-styleguide / lib / modules / cli / styleguide-cli.js View on Github external
});

    gulp.task('watch:kss', function() {
      return gulp.watch(argv.kssSource, ['styleguide:generate']);
    });

    gulp.task('watch:styles', function() {
      return gulp.watch(argv.styleSource, ['styleguide:applystyles']);
    });

    if (argv.watch) {
      tasks.push('watch:styles');
      tasks.push('watch:kss');
    }

    runSequence.apply(this, tasks);

  } catch (err) {
    console.error('Style guide generation failed');
    logError(err);
  }

};
github SC5 / sc5-styleguide / lib / modules / cli / styleguide-cli.js View on Github external
});

    gulp.task('watch:kss', function() {
      return gulp.watch(argv.kssSource, ['styleguide:generate']);
    });

    gulp.task('watch:styles', function() {
      return gulp.watch(argv.styleSource, ['styleguide:applystyles']);
    });

    if (argv.watch) {
      tasks.push('watch:styles');
      tasks.push('watch:kss');
    }

    runSequence.apply(this, tasks);

  } catch (err) {
    console.error('Style guide generation failed');
    logError(err);
  }

};
github liuyunzhuge / blog / quick_layout / gulpfile.js View on Github external
gulp.task('build', ['clean'], function (cb) {
    var task_seq = [['style', 'image', 'html', 'script'], cb];
    runSequence.apply(null, task_seq);
});
github liuyunzhuge / blog / animation / gulpfile.js View on Github external
gulp.task('build', ['clean'], function (cb) {
    var task_seq = [['style', 'image', 'html', 'script'], cb];
    runSequence.apply(null, task_seq);
});

run-sequence

Run a series of dependent gulp tasks in order

MIT
Latest version published 7 years ago

Package Health Score

50 / 100
Full package analysis

Popular run-sequence functions