get-gulp-tasks:从gulp项目中获取gulp任务

时间:2021-05-26 08:02:24
【文件属性】:
文件名称:get-gulp-tasks:从gulp项目中获取gulp任务
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-26 08:02:24
JavaScript 获得任务 从gulp项目中获取gulp任务 它在指定目录中生成本地gulp二进制文件并获取gulp任务。 安装 $ npm install --save get-gulp-tasks 用法 想象一下gulpfile.js中的./gulp-project : const gulp = require ( 'gulp' ) ; gulp . task ( 'default' , ( ) => { } ) ; gulp . task ( 'test' , ( ) => { } ) ; 您可以通过以下方式获得其任务: const getGulpTasks = require ( 'get-gulp-tasks' ) ; getGulpTasks ( 'gulp-project' ) . then ( tasks => { console . log ( tasks ) ; //=>
【文件预览】:
get-gulp-tasks-main
----.gitignore(13B)
----package.json(701B)
----index.js(236B)
----test.js(169B)
----.github()
--------workflows()
----license(1KB)
----fixture()
--------package.json(53B)
--------gulpfile.js(116B)
----readme.md(766B)
----.gitattributes(12B)
----.editorconfig(231B)

网友评论