gulp-jshint-cache

0.2.0 • Public • Published

Fast cached jshint for gulp

It uses in memory stat cache, that's why lint-watch is blazing fast.

Usage:

var sources = './**/*.js';
 
gulp.task('lint', gp.jshintCache({ src: sources }));
 
gulp.task('lint-or-die', gp.jshintCache({ src: sources, dieOnError: true }));
 
gulp.task('lint-watch', ['lint'], function(neverCalled) {
  gulp.watch(serverSources, ['lint']);
});

Options:

  • sources* -- sources for glob.src
  • dieOnError -- if true, the process will die with error status 1 if lint fails. Use this for git pre-commit check.
  • jshint -- options for gulp-jshint

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i gulp-jshint-cache

Weekly Downloads

1

Version

0.2.0

License

CC BY 3.0

Last publish

Collaborators

  • iliakan