Questions tagged [run-sequence]

For the run-sequence node library that assists with gulp.

Runs a sequence of gulp tasks in the specified order. This function is designed to solve the situation where you have defined run-order, but choose not to or cannot use dependencies.

See the GitHub ReadMe for detailed information.

19 questions
4
votes
1 answer

run-sequence doesn't run gulp tasks in order

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…
Alan P.
  • 2,898
  • 6
  • 28
  • 52
3
votes
1 answer

Second task in run-sequence doesn't run

Suppose I have the following task: gulp.task('my-task', function (cb) { fs.appendFileSync('myPath', 'data'); }); When I do something like this: gulp.task('build', function (cb) { runSequence('my-task', 'some-task',cb); }); my-task runs and…
philomath
  • 2,209
  • 6
  • 33
  • 45
2
votes
1 answer

Gulp inject task doesn't work when calling with run-sequence

Required steps clean build directory. compile typescript files then put compiled files in to build directory. inject compiled files as script to index.html then put it to build directory. Project structure -- build -- src --app --app.ts …
Quy Tang
  • 3,929
  • 1
  • 31
  • 45
2
votes
1 answer

what's the differnece between the 'gulp default task' and 'run-sequence npm modules'?

what's the difference between using 'gulp default task' and 'run-sequence npm modules if i have two tasks to execute,the result was the same.so i have no idea why should use 'run-sequence'? 1.gulp default…
Joe
  • 31
  • 3
1
vote
1 answer

Executing tasks in series which creates file dynamically in Gulp 4

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…
LasithaMD
  • 115
  • 2
  • 11
1
vote
1 answer

Gulp watch runs only once

I'm trying to finish my gulpfile.js but I'm running into a problem with "gulp watch". When I set my watcher to run, it detects changes and run the assigned task, but only once. The next changes on the files don't trigger the tasks anymore. I don't…
FTM
  • 1,887
  • 17
  • 34
1
vote
0 answers

Gulp run-sequence plugin not working in specific case

I've encountered an issue while using run-sequence plugin for optimizing html code. When I run the gulp command in terminal, 'minify-html', 'inject-css-js-in-html' doesn't work first time when I run it. So I need to exit the terminal and run gulp…
Rahul Dagli
  • 4,301
  • 15
  • 47
  • 85
0
votes
1 answer

Gulp watch executes only one time

I know there are many questions with new gulp version . I had to change my gulpfile.js and now when I run it , it only executes once . I tried using return on gulp.watch function but it does nothing . Here is my code : 'use strict'; var gulp =…
Bojan Kolano
  • 253
  • 3
  • 19
0
votes
1 answer

Gulp postpone error occurring whilst running run-sequence to end of tasks list

I have a Gulpfile for a Laravel application. The unit tests for the application are executed via Gulp. To execute the tests correctly the following tasks should run in a synchronous order (via run-sequence). Back-up current .env file Set…
SolveSoul
  • 2,448
  • 4
  • 25
  • 34
0
votes
1 answer

Error in plugin 'run-sequence(run-internal)'

I'm performing Iot project using Azure platform. And while I'm doing with manual in Microsoft azure site to make Iot hub communicate with raspberry-pi, I got some error but I cannot find the reasons. (Manual link:…
Moong
  • 1
  • 1
0
votes
1 answer

Gulp Task Order - Serial & Parallel

I've got the following tasks that are being ran by Gulp. script-a script-b script-c script-a is unrelated (relatively speaking) to tasks b and c, and takes around 5 seconds to run. script-b and script-c are related so have to be ran in serial,…
Tom
  • 4,257
  • 6
  • 33
  • 49
0
votes
1 answer

Conditionally run a task that does nothing in runSequence

I have a main task called build, in this task in dev mode, i want to run watchers. During production I don't need to run any watchers, gulp.task('build', cb => { return $.runSequence( 'globals', 'inline', 'lazy', …
Shannon Hochkins
  • 11,763
  • 15
  • 62
  • 95
0
votes
1 answer

Gulp run-sequence "'taskname' is a not valid task string" error

I faced a stange problem. Tasks sequence is right, syntax too, but it's not working and trowns an error: const gulp = require("gulp"); const runSequence = require('run-sequence'); gulp.task("Markup-Build", function(callback) { return…
0
votes
1 answer

running gulp inside a Laravel project fails when mixing styles and/or compiling sass files

Everything was working and i was capable to run gulp and gulp watch normally, after some changes in my phpspec files it dosn't work anymore. See the details below. This is my gulpfile.js var elixir = require('laravel-elixir'); elixir(function (mix)…
Rafael Berro
  • 2,518
  • 1
  • 17
  • 24
0
votes
1 answer

Gulp runSequence running in parallel

I have the following Gulp runSequence task: gulp.task('test', () => runSequence('test:unit', 'test:e2e')); When the two tasks are: gulp.task('test:unit', () => gulp.start('jasmine')); gulp.task('test:e2e', () => runSequence('webdriver:update',…
Yaniv Efraim
  • 6,633
  • 7
  • 53
  • 96
1
2