从Gruntfile.js迁移到gulpfile.js
我正在尝试使用grunt2gulp.js工具将多个用grunt设置的项目迁移到gulp中。 但是,我不确定如何继续。
工具grunt2gulp.js似乎是一个简单的方法来启动,但我遇到的问题是,我不能得到它的工作。 由于没有npm install -g grunt2gulp
,我有点不确定我需要做什么才能在全局安装项目并能够访问它。
github repo上的readme.md没有指定如何安装项目。
将grunt2gulp.js
文件下载到与您的Gruntfile.js
文件相同的目录中。 使用terminal导航到该path并粘贴以下命令:
node grunt2gulp.js Gruntfile.js > gulpfile.js
这将在同一目录中创build一个gulpfile.js
文件。