UNPKG

config-uncached

Version:

Purge the internal `require.cache` for all files used by [`config`](https://github.com/lorenwest/node-config).

24 lines (20 loc) 494 B
'use strict'; var gulp = require('gulp'), eslint = require('gulp-eslint'), mocha = require('gulp-mocha'); gulp.task('lint', function () { return gulp .src(['index.js', 'gulpfile.js', 'test/**/*.js']) .pipe(eslint({ configFile: '.eslintrc' })) .pipe(eslint.format()) ; }); gulp.task('test', function () { return gulp .src(['test/**/*.test.js'], { read: false }) .pipe(mocha({ reporter: 'nyan' })) ; }); gulp.task('default', ['lint', 'test']);