1.0.0 • Published 9 years ago

gulp-acorn-ddescribe-iit v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

gulp-acorn-ddescribe-iit

Build Status Coverage Status dependencies NPM Version

Based on gulp-ddescribe-iit, but uses a real javascript parser acorn to minimize false positives (occurrences of words within comments or string literals). Some bugs occurring in gulp-ddescribe-iit are also fixed in this variation.

Hows it look!?

This is super important, I'm glad you asked. I spent a good few minutes trying to make it look decent.

Usage

var ddescribeIit = require('gulp-acorn-ddescribe-iit');

// I mean, that's basically it --- there isn't much to it.
gulp.task('ddescribe-iit', function(done) {
  return gulp.src(['modules/**/*.spec.ts', 'modules/**/*_spec.ts']).
     pipe(ddescribeIit({ allowDisabledTests: false }));
});

Options

OptionDescription
allowDisabledTestsIf set to a defined falsy value, will report errors when xit or xdescribe are used. Defaults to true
noColorDefaults to false --- If true, disables color output.
basePathDefaults to current working directory --- Used to determine relative path of file. If falsy, uses unmodified path.
tabWidthDefaults to 4 --- Must be a number not less than 2 or greater than 8.

License

MIT License --- See LICENSE for details.