run-sequence

Executing tasks in series which creates file dynamically in Gulp 4

点点圈 提交于 2021-01-28 09:17:40
问题 I've recently migrated from using Gulp 3 to Gulp 4. Introducing the new tasks like gulp.src() and gulp.parallel() adds more flexibility and ease of use. Here is my code attempting to execute tasks in series. Asynchronous task which creates files dynamically let css_purge_libs = async () => { var pacs = ["!bootstrap", "bulma", "animate.css"]; var paths = await fetch_resources(pacs, "bower", "css|sass"); return gulp.src(paths) .pipe(before(true, config.css.destination.temp + "/lib")()) .pipe(P

Issue with task not executing when using gulp with run-sequence

做~自己de王妃 提交于 2019-12-13 07:40:43
问题 I am new to gulp and so I put a simple script together to 1) learn how gulp works and 2) improve my development workflow. The issue I am having is that if I set the runSequence task list to be in the order of jscs and then lint, the lint task does not get executed. However, if I reverse them, and run lint first, then jscs, both tasks execute successfully. After doing more tests, I'm certain that there is something about the way I am using jscs that is causing the problem, or there is an issue

run-sequence doesn't run gulp tasks in order

梦想的初衷 提交于 2019-12-07 09:17:52
问题 I have 3 tasks in my Gulp file that must run in this order: clean (deletes everything in the /dist folder) copy (copies multiple files into the /dist folder) replace (replaces some strings in some files in the /dist folder) I've read all the other posts, I've tried "run-sequence" but it's not working as the "replace" task isn't running last. I'm confused by the use of "callback". Running the tasks individually works fine. var gulp = require('gulp'); var runSequence = require('run-sequence');

run-sequence doesn't run gulp tasks in order

你说的曾经没有我的故事 提交于 2019-12-05 14:44:10
I have 3 tasks in my Gulp file that must run in this order: clean (deletes everything in the /dist folder) copy (copies multiple files into the /dist folder) replace (replaces some strings in some files in the /dist folder) I've read all the other posts, I've tried "run-sequence" but it's not working as the "replace" task isn't running last. I'm confused by the use of "callback". Running the tasks individually works fine. var gulp = require('gulp'); var runSequence = require('run-sequence'); gulp.task('runEverything', function(callback) { runSequence('clean', 'copy', 'replace', callback); });