gulp-4

    0热度

    1回答

    我有以下gulp任务返回一个流。它在gulp 3.9.1中正常工作,但转换为gulp 4.0,我得到: 您忘记了信号异步完成? const gulp = require('gulp'); const gulpif = require('gulp-if'); const plumber = require('gulp-plumber'); const rename = require('gul

    0热度

    1回答

    我怎样才能让这个 // ... gulp.watch(source.app, gulp.series( lint(source.app), transpile(source.app), ATDD, )); 保持观望,即使从棉短绒或transpiler发生了错误? 我的任务功能如下: // ... function lintWorker(source) {

    2热度

    1回答

    正如我在标题中提到的,运行时出现问题gulp.watch。它只在文件第一次更改后运行监视,当我更改第二,第三等时它不运行任务。 下面是我gulpfile.js: var gulp = require('gulp'); var babel = require('gulp-babel'); var rename = require("gulp-rename"); var del = requir

    0热度

    1回答

    如何按顺序运行多个节点流(由gulp生成)? 让我们假设一个简单的gulpfile有两个不同的任务: var gulp = require("gulp"); gulp.task("do1", function() { return gulp.src("./test/*") .pipe(gulp.dest("./dest/")); }); gulp.task("do

    6热度

    1回答

    我从咕嘟咕嘟3升级到4,和我遇到了一个错误: The following tasks did not complete: build Did you forget to signal async completion? 我明白它在说,但不明白为什么这个代码是触发它。 错误与否,任务完成(文件连接并写入dest)。在没有lazypipe的情况下执行相同的代码不会导致错误,并且删除lazypip

    0热度

    2回答

    我正在尝试在我的Gulp 4任务中使用stream-combiner2,正如the current version of this recipe中的建议。但是,我总是收到: The following tasks did not complete: build:js Did you forget to signal async completion? 我读过的优秀信息in this answ

    0热度

    1回答

    我想不通为什么我得到 Did you forget to signal async completion? 这里是我的设置: gulp.task('compile-ts',() => { return tsProject.src(config.files.src.ts) .pipe($.tap((file, t) => { logVerbose('Compili

    1热度

    1回答

    当我使用gulp 4时,我遇到了子任务问题。 在gulp 3中,我将任务分成了一些文件,并使用gulp-load-subtasks来加载和执行它们。当我使用gulp 4时,当我尝试加载任务时出现问题。例如:在加载任务b之前,我无法加载任务a(取决于任务b)。当我尝试这样做时,出现错误AssertionError: Task never defined: b。 这是我的文件夹: gulpflie.b

    0热度

    1回答

    我试图运行一系列的任务,即一个接一个在Gulp 4.0中,但是当我添加我的第三个任务时,我的gulp代码中断了。 gulp.task('concat-js', (done) => { gulp.src([ 'app1.js', 'app2.js', ]) .pipe(concat("app.js")) .pipe(gulp.d

    2热度

    1回答

    在gulpfile.js中使用gulp.task定义了几个任务。我想以编程方式启动其中的一个。最好在同一个进程中(没有exec等),因为背后的原因之一是在调试器中运行脚本的能力。 这怎么办? 它看起来像有东西像gulp.run和gulp.start,但他们在咕嘟咕嘟弃用4