语义 UI - 导入 Gulp 任务时出错

Semantic UI - Error While Importing Gulp Tasks

我正在尝试将语义 UI 的 Gulp 任务导入到我自己的 Gulp 文件中。我希望我的父 Gulp 文件到 运行 Semantic 的 'gulp build' 命令,然后让我的父 Gulp 将文件 Semantic 的构建命令输出复制到另一个文件夹。一切都在进行,直到我遇到这个错误:

Error: Task build-javascript is not configured as a task on gulp. If this is a submodule, you may need to use require('run-sequence').use(gulp).

我有一个文件夹 /semantic/,其中包含所有任务和所有内容。我的 gulpfile 的设置就像 Semantic 文档推荐的那样。 http://semantic-ui.com/introduction/advanced-usage.html

var watchUI     = require('./semantic/tasks/watch'),
    buildUI     = require('./semantic/tasks/build')

还有其他人 运行 遇到过这个问题吗?非常感谢任何帮助。

谢谢

github 上有一个未解决的问题。但是这个说明帮助了我: https://github.com/Semantic-Org/Semantic-UI/issues/4374#issuecomment-236729805

  1. Open the file node_modules/semantic-ui/tasks/install.js in your preferred text editor.
  2. On line 26, you should see runSequence = require('run-sequence'),. Please replace it with runSequence = require('run-sequence').use(gulp),
  3. Run in the console cd node_modules/semantic-ui && gulp install.