gulp-mocha-browserify-sweet
Generates a suite file from gulp.src
glob on the fly for Browserify/Mocha
Installation
npm install gulp-mocha-browserify-sweet --save-dev
Usage
var gulp = ; var karma = ; var concat = ; var browserify = ; var source = ; var generateSuite = ; gulp; gulp;
Optional Configuration
opts.suiteFile
Type: String
Default: suite.js
This optional param will let you set the filename for the generated output
opts.startWith
Type: String
This optional param will remove any unwanted fragments from the filename
For example:
If you don't add this param and the generated file returns something like this
;
You can instead get the following by adding {startWith: 'build'}
;
opts.addPrefix
Type: String
This optional param will add any prefix string to the filename
For example:
If you want to add test to the generated file that starts out like this
;
You can add the test prefix by adding {addPrefix: '../test'}
;