Package Exports
- gulp-espower
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-espower) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-espower

espower plugin for gulp
Usage
First, install gulp-espower
as a development dependency:
npm install --save-dev gulp-espower
Then, add it to your gulpfile.js
:
var espower = require("gulp-espower");
gulp.src("./test/*.js")
.pipe(espower())
.pipe(gulp.dest("./dist"));
API
espower(options)
options.destructive
Type: Boolean
Default value: false
Instrument target AST destructively or not.
options.powerAssertVariableName
Type: String
Default value: 'assert'
Target variable name to instrument.
options.lineSeparator
Type: String
Default value: '\n'
Line separator in target sources.
options.targetMethods
Type: Object
Default value:
targetMethods: {
oneArg: [
'ok'
],
twoArgs: [
'equal',
'notEqual',
'strictEqual',
'notStrictEqual',
'deepEqual',
'notDeepEqual'
]
}
Target assertion methods to insrtument.
oneArg
array for assertion methods with a expression argument (likeassert.ok(actual)
)twoArgs
array for assertion methods with two expression arguments (likeassert.equal(actual, expected)
)
License
Licensed under the MIT license.