Questions tagged [gulp-task]

gulp.task([name,] fn) - defines the task

gulp.task(name) - returns the task (defined early)

Tasks API includes those functions:

  • gulp.series
  • gulp.parallel
  • gulp.lastRun

https://gulpjs.org/API.html#gulp-task-name-fn

32 questions
0
votes
0 answers

Watch all files saved in a folder and make changes to another file via gulp

My basic requirement is to look for changes done to any file in js,css folder and update a JSON file. Directory structure: html css x.css y.css js a.js b.js c.js server versions.json versions.json: { "css": { "x.css": 1, …
Devang Mistry
  • 402
  • 2
  • 5
  • 21
0
votes
1 answer

failAfterError gulpEslint

Hello I have the following gulp task that lints the solution and fails after any error in the linting process, I would like it to fail with text and not just fall over in a heap, I am not sure how to implement this. Any help would be…
nagrom97
  • 494
  • 1
  • 6
  • 23
1 2
3