Skip to content

Commit

Permalink
Merge pull request #18 from twada/babel-plugin-espower-1_0
Browse files Browse the repository at this point in the history
upgrade babel-plugin-espower to 1.0.0
  • Loading branch information
azu committed Aug 25, 2015
2 parents 54d0090 + 9c2b10b commit b5928c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# espower-babel [![Build Status](https://travis-ci.org/azu/espower-babel.svg?branch=master)](https://travis-ci.org/azu/espower-babel)
# espower-babel [![Build Status](https://travis-ci.org/power-assert-js/espower-babel.svg?branch=master)](https://travis-ci.org/power-assert-js/espower-babel)

power-assert instrumentor for [Babel](https://babeljs.io/ "Babel · The transpiler for writing next generation JavaScript").

Expand Down Expand Up @@ -62,7 +62,7 @@ $ mocha --compilers js:espower-babel/guess test/demo_test.js
1 failing
1) Person #mistake:
AssertionError: # /Users/yosuke/go/src/github.com/azu/espower-babel/test/demo_test.js:24
AssertionError: # test/demo_test.js:24
assert(alice.name === bob.name)
| | | | |
Expand Down Expand Up @@ -116,7 +116,7 @@ Then, run mocha with `--compilers js:espower-babel/guess`

$ mocha --compilers js:espower-babel/guess spec/**/*.js

Note: `'espower-babel/guess'` is inspired by [intelli-espower-loader](https://github.com/azu/intelli-espower-loader)
Note: `'espower-babel/guess'` is inspired by [intelli-espower-loader](https://github.com/power-assert-js/intelli-espower-loader)


### More customization
Expand Down
4 changes: 2 additions & 2 deletions lib/babelrc-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function shouldIgnoreByBabel(filename, babelrc) {
if (!babelrc.ignore && !babelrc.only) {
return /node_modules/.test(filename);
} else {
var ignore = util.arrayify(babelrc.ignore, util.regexify);
var only = util.arrayify(babelrc.only, util.regexify);
var ignore = babelrc.ignore ? util.arrayify(babelrc.ignore, util.regexify) : null;
var only = babelrc.only ? util.arrayify(babelrc.only, util.regexify) : null;
return util.shouldIgnore(filename, ignore, only);
}
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"testing"
],
"version": "3.2.0",
"homepage": "https://github.com/azu/espower-babel/",
"homepage": "https://github.com/power-assert-js/espower-babel/",
"repository": {
"type": "git",
"url": "https://github.com/azu/espower-babel.git"
"url": "https://github.com/power-assert-js/espower-babel.git"
},
"main": "index.js",
"files": [
Expand All @@ -30,11 +30,11 @@
"author": "azu",
"license": "MIT",
"bugs": {
"url": "https://github.com/azu/espower-babel/issues"
"url": "https://github.com/power-assert-js/espower-babel/issues"
},
"dependencies": {
"babel-core": "^5.0",
"babel-plugin-espower": "^0.4.0",
"babel-plugin-espower": "^1.0.0",
"minimatch": "^2.0.1",
"source-map-support": "^0.2.10",
"xtend": "^4.0.0"
Expand Down

0 comments on commit b5928c6

Please sign in to comment.