【文件属性】:
文件名称:gulp-drafts:Gulp插件,用于删除标记为草稿的文件。 也可以用作汇编或动词插件
文件大小:7KB
文件格式:ZIP
更新时间:2021-02-22 07:33:58
gulp plugin blog ignore-files draft
盛装草稿
Gulp插件,用于删除标记为草稿的文件。 也可以用作汇编或动词插件。
插件的过滤部分受启发。
用安装
npm i gulp-drafts --save
用法
以下所有示例都可以相互组合使用。
使用Glob模式忽略文件
var gulp = require ( 'gulp' ) ;
var drafts = require ( 'gulp-drafts' ) ;
gulp . task ( 'blog' , function ( ) {
gulp . src ( 'posts/**/*.md' )
// remove files from the pipeline if they match the given
// filepath or glob patterns:
. pipe ( drafts ( '**/drafts/*.md' ) )
【文件预览】:
gulp-drafts-master
----.jshintrc(281B)
----.gitattributes(127B)
----.verb.md(2KB)
----test.js(7KB)
----.travis.yml(88B)
----LICENSE(1KB)
----README.md(3KB)
----.editorconfig(424B)
----.gitignore(113B)
----index.js(935B)
----package.json(1KB)