![](/img/trans.png)
[英]Running gulp task from one gulpfile.js from another gulpfile.js
[英]Migrating from Gruntfile.js to gulpfile.js
我正在尝试使用工具grunt2gulp.js将使用grunt设置的多个项目迁移到gulp中。 但是,我不确定如何继续。
工具grunt2gulp.js似乎是一种简单的启动方式,但我遇到的问题是我无法让它工作。 由于没有npm install -g grunt2gulp
,我有点不确定我需要做什么来全局安装项目并能够访问它。
github repo上的readme.md没有指定如何安装项目。
下载grunt2gulp.js
文件在同一目录作为您Gruntfile.js
文件。 使用终端导航到该路径并粘贴此命令:
node grunt2gulp.js Gruntfile.js > gulpfile.js
这将在同一目录中创建一个gulpfile.js
文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.