indefinite
Version:
Prefix a noun with an indefinite article - a or an - based on whether it begins with a vowel
15 lines (12 loc) • 348 B
JavaScript
const gulp = require('gulp');
const codeclimate = require('gulp-codeclimate-reporter');
gulp.task('codeclimate', (done) => {
if (process.version.indexOf('v8') > -1) {
return gulp.src('coverage/lcov.info', { read: false })
.pipe(codeclimate({
token: process.env.CODECLIMATE_REPO_TOKEN
}));
} else {
done();
}
});