gulp-espower
Version:
A gulp plugin for power-assert
121 lines (67 loc) • 4.35 kB
Markdown
## [1.1.0](https://github.com/power-assert-js/gulp-espower/releases/tag/v1.1.0) (2016-11-22)
#### Features
* [Enable transparent assertion enhancement, embed value capturing helper into transpiled code (by upgrading espower-source to 2.0.0)](https://github.com/power-assert-js/gulp-espower/pull/6)
### [1.0.2](https://github.com/power-assert-js/gulp-espower/releases/tag/v1.0.2) (2015-12-10)
#### Bug Fixes
* fix typo in PluginError call ([070431fe](https://github.com/power-assert-js/gulp-espower/commit/070431fe6dad227dd5396da2a2d9f3b0715d8eef))
### [1.0.1](https://github.com/power-assert-js/gulp-espower/releases/tag/v1.0.1) (2015-10-08)
* update espower to 1.0.7 ([5173f4b](https://github.com/power-assert-js/gulp-espower/commit/5173f4bcb034670a75442143074ad4468e5c23c1))
* update vinyl-sourcemaps-apply to 0.2.0 ([7ae9fcb](https://github.com/power-assert-js/gulp-espower/commit/7ae9fcb955e0476bd2dcd314a155e80d7ff4ce77))
* update bufferstreams to 1.1.0 ([1c19377](https://github.com/power-assert-js/gulp-espower/commit/1c19377a7786cdcaadee85882984a0bff3434731))
## [1.0.0](https://github.com/power-assert-js/gulp-espower/releases/tag/v1.0.0) (2015-08-22)
#### Bug Fixes
* should emit error when the file has a syntax error, even if using Streams ([a786374d](https://github.com/power-assert-js/gulp-espower/commit/a786374d01e0dd61ae8894ecbd756d15033ab7ae))
#### Features
* transfer to power-assert-js organization ([a6df50ab](https://github.com/power-assert-js/gulp-espower/commit/a6df50abe5f0756e644b490a407ff8a6db09b732))
* [use file.cwd for default sourceRoot](https://github.com/power-assert-js/gulp-espower/pull/4)
### [0.10.1](https://github.com/power-assert-js/gulp-espower/releases/tag/v0.10.1) (2015-03-04)
#### Bug Fixes
* fix a bug that throw an error when the file has a syntax error ([603a681b](https://github.com/power-assert-js/gulp-espower/commit/603a681b9be2b809970c9aa89052d954feb2134b)) (by @bouzuya)
## [0.10.0](https://github.com/power-assert-js/gulp-espower/releases/tag/v0.10.0) (2014-11-11)
* update espower and espower-source to 0.10.0 ([724aead0](https://github.com/power-assert-js/gulp-espower/commit/724aead0ac2ec8be7572eb133956729813d56518))
* update vinyl-sourcemaps-apply ([c19ca9ab](https://github.com/power-assert-js/gulp-espower/commit/c19ca9abe9da0eec3c8134e63ccd72ec240092e5))
### 0.9.1 (2014-09-17)
#### Features
* update espower and espower-source to 0.9.1 ([681f1ab9](https://github.com/power-assert-js/gulp-espower/commit/681f1ab9b786066fd66236686f0f118470851ef5))
## 0.9.0 (2014-09-02)
#### Features
* gulp-sourcemaps support ([caf2a275](https://github.com/power-assert-js/gulp-espower/commit/caf2a275aa26a1ce2ff43b024d73a8dc055feb3d))
* keep paths relative until the end of chain ([9dc8f50b](https://github.com/power-assert-js/gulp-espower/commit/9dc8f50b0ecf3a0d77c472bf75e7730a54748c9f))
## 0.8.0 (2014-08-12)
#### Features
* update espower-source to 0.8.0 ([a9ab1f7d](https://github.com/power-assert-js/gulp-espower/commit/a9ab1f7de7275b717589bd8eb8048b89bc575763))
* now supports streams as well ([ada19f90](https://github.com/power-assert-js/gulp-espower/commit/ada19f90f0dfc674405342310259e31ddd3a6dd0))
#### Breaking Changes
* update espower-source to 0.8.0 ([a9ab1f7d](https://github.com/power-assert-js/gulp-espower/commit/a9ab1f7de7275b717589bd8eb8048b89bc575763))
If you already customize instrumentation pattern using `powerAssertVariableName` and `targetMethods`, you need to migarte. To migrate, change your code from the following:
```javascript
var espower = require("gulp-espower");
gulp.src("./test/*.js")
.pipe(espower({
powerAssertVariableName: 'yourAssert',
targetMethods: {
oneArg: [
'okay'
],
twoArgs: [
'equal',
'customEqual'
]
}
}))
.pipe(gulp.dest("./dist"));
```
To:
```javascript
var espower = require("gulp-espower");
gulp.src("./test/*.js")
.pipe(espower({
patterns: [
'yourAssert(value, [message])',
'yourAssert.okay(value, [message])',
'yourAssert.equal(actual, expected, [message])',
'yourAssert.customEqual(actual, expected, [message])'
]
}))
.pipe(gulp.dest("./dist"));
```