【发布时间】:2019-05-10 11:39:06
【问题描述】:
/*
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
*/
const requireDir = require('require-dir');
const gulp = require('gulp');
// Require all tasks in gulp/tasks, including subfolders
requireDir('./build/tasks', {recurse: true});
gulp.task('default', ['lint', 'check_license'], () => {
// This will only run if the lint task is successful...
});
screen shot of the error 我是超级账本社区的新手,我尝试测试从 github 克隆的 fabric-sdk-node 项目。当我尝试“gulp test”时,它告诉我一个错误“任务'test'不在你的 gulpfile 中”。 我该如何解决? 这是我的 gulpfile.js
【问题讨论】:
-
你必须展示你的 gulpfile.js。它显然在 npt 中有一个名为
test的任务。 -
没错,它不包含测试任务,但文件夹 /build/tasks 包含一个 test.js
标签: node.js gulp hyperledger-fabric