从 Gruntfile.js 迁移到 gulpfile.js
Migrating from Gruntfile.js to gulpfile.js
我正在尝试使用工具 grunt2gulp.js 将多个使用 grunt 设置的项目迁移到 gulp。但是,我不确定如何进行。
工具 grunt2gulp.js 似乎是一种简单的入门方法,但我遇到的问题是我无法使用它。由于没有 npm install -g grunt2gulp
,我有点不确定我需要做什么才能全局安装项目并能够访问它。
github 存储库中的 readme.md 没有指定如何安装项目。
将 grunt2gulp.js
文件下载到与 Gruntfile.js
文件相同的目录中。使用终端导航到该路径并粘贴此命令:
node grunt2gulp.js Gruntfile.js > gulpfile.js
这将在同一目录中创建一个 gulpfile.js
文件。
我正在尝试使用工具 grunt2gulp.js 将多个使用 grunt 设置的项目迁移到 gulp。但是,我不确定如何进行。
工具 grunt2gulp.js 似乎是一种简单的入门方法,但我遇到的问题是我无法使用它。由于没有 npm install -g grunt2gulp
,我有点不确定我需要做什么才能全局安装项目并能够访问它。
github 存储库中的 readme.md 没有指定如何安装项目。
将 grunt2gulp.js
文件下载到与 Gruntfile.js
文件相同的目录中。使用终端导航到该路径并粘贴此命令:
node grunt2gulp.js Gruntfile.js > gulpfile.js
这将在同一目录中创建一个 gulpfile.js
文件。