gulp-colorfulkits

0.2.1 • Public • Published

gulp-colorfulkits🍭 License: MIT

Make gulp log colorful
NPM

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/'));

[object]options = {color, cwd, indent}

  • [string]color
  • [string]cwd
  • [integer]indent
    • indent-level
    • default:1

colorful.preset(options);

const customColorful = colorful.preset({color:"green"});
gulp.src('./src/**/*.js')
  .pipe(customColorful())
  .pipe(gulp.dest('./dest/'));

[object]options

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)
  • [string]glob
  • [function]callback
    • called when file changed.
  • [object]options
    • [boolean]ignoreDirectoryEvents
      • default true

watchColorful(glob)

watchColorful("./src/**/*.js")
  .pipe(gulp.dest("./dest/"));
//like require("gulp-watch")(glob)

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-colorfulkits

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

6.8 kB

Total Files

4

Last publish

Collaborators

  • mochiya98