0.2.1 • Published 5 years ago
gulp-colorfulkits v0.2.1
gulp-colorfulkits:lollipop:
Usage
npm i --save-dev gulp-colorfulkits
const {
colorful,
gulpColorfulEslint,
gulpWatchColorful,
watchColorful,
} = require("gulp-colorfulkits");
colorful(options)
gulp.src('./src/*.js')
.pipe(colorful())//Output Colorful DestLog
.pipe(gulp.dest('./dest/'));
objectoptions = {color, cwd, indent}
- stringcolor
- ansi-colors text-color enum
- default:
cyan
- stringcwd
- vinyl cwd
- default:
.
- integerindent
- indent-level
- default:
1
colorful.preset(options);
const customColorful = colorful.preset({color:"green"});
gulp.src('./src/**/*.js')
.pipe(customColorful())
.pipe(gulp.dest('./dest/'));
objectoptions
same
gulpColorfulEslint()
gulp.src('./src/**/*.js')
.pipe(gulpColorfulEslint())
//like .pipe(eslint()).pipe(eslint.result())
gulpWatchColorful(glob, callback, options)
gulpWatchColorful("./src/**/*.js",function(){
//callback
});
//like gulp.watch(glob,callback)
- stringglob
- functioncallback
- called when file changed.
- objectoptions
- booleanignoreDirectoryEvents
- default
true
- default
- booleanignoreDirectoryEvents
watchColorful(glob)
watchColorful("./src/**/*.js")
.pipe(gulp.dest("./dest/"));
//like require("gulp-watch")(glob)
0.2.1
5 years ago
0.2.0
5 years ago
0.1.9-rc.2
6 years ago
0.1.9-rc.1
6 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago