gulp-jshint-cache:使用 jshint 执行 lint 的 Gulp 任务

时间:2021-06-06 22:28:49
【文件属性】:
文件名称:gulp-jshint-cache:使用 jshint 执行 lint 的 Gulp 任务
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-06 22:28:49
JavaScript gulp 的快速缓存 jshint 它使用内存中的 stat 缓存,这就是lint-watch快速运行的原因。 用法: var jshint = require ( 'gulp-jshint-cache' ) ; var sources = './**/*.js' ; gulp . task ( 'lint' , jshint ( { src : sources } ) ) ; gulp . task ( 'lint-or-die' , jshint ( { src : sources , dieOnError : true } ) ) ; gulp . task ( 'lint-watch' , [ 'lint' ] , function ( neverCalled ) { gulp . watch ( serverSources , [ 'lint' ] ) ; } ) ;
【文件预览】:
gulp-jshint-cache-master
----.gitignore(21B)
----package.json(792B)
----index.js(2KB)
----Readme.md(632B)

网友评论