Skip to content

Commit 72c96b3

Browse files
Rich-HarrisAndarist
authored andcommitted
Merge pull request #8 from TrySound/tidy-up
Tidy up
1 parent 3e4a7a2 commit 72c96b3

File tree

4 files changed

+34
-14
lines changed

4 files changed

+34
-14
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- 'stable'
4+
- '0.12'

packages/rollup-plugin-babel/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# rollup-plugin-babel changelog
22

3+
## 2.0.1
4+
5+
* Use object-assign ponyfill
6+
* Add travis support
7+
* Fix test
8+
39
## 2.0.0
410

511
* Babel 6 compatible

packages/rollup-plugin-babel/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
var path = require( 'path' );
22
var babel = require( 'babel-core' );
33
var createFilter = require( 'rollup-pluginutils' ).createFilter;
4-
5-
var assign = Object.assign || function ( target, source ) {
6-
Object.keys( source ).forEach( function ( key ) {
7-
target[ key ] = source[ key ];
8-
});
9-
10-
return target;
11-
};
4+
var assign = require( 'object-assign' );
125

136
module.exports = function ( options ) {
147
options = assign( {}, options || {} );
Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,38 @@
11
{
22
"name": "rollup-plugin-babel",
33
"version": "2.0.0",
4-
"devDependencies": {
5-
"eslint": "^1.7.2",
6-
"mocha": "^2.3.3",
7-
"rollup": "^0.20.0"
8-
},
4+
"description": "Seamless integration between Rollup and Babel.",
5+
"keywords": [
6+
"rollup-plugin",
7+
"babel",
8+
"es2015",
9+
"es6"
10+
],
11+
"homepage": "https://github.com/rollup/rollup-plugin-babel",
12+
"author": "Rich Harris",
13+
"contributors": [
14+
"Bogdan Chadkin <trysound@yandex.ru>"
15+
],
916
"scripts": {
1017
"test": "mocha",
1118
"prepublish": "npm run test"
1219
},
1320
"dependencies": {
1421
"babel-core": "6",
22+
"object-assign": "^4.0.1",
1523
"rollup-pluginutils": "^1.1.0"
1624
},
25+
"devDependencies": {
26+
"babel-preset-es2015-rollup": "^1.0.0",
27+
"eslint": "^1.7.2",
28+
"mocha": "^2.3.3",
29+
"rollup": "^0.20.0"
30+
},
1731
"repository": {
1832
"type": "git",
19-
"url": "https://github.com/rollup/rollup-plugin-babel"
33+
"url": "git+https://github.com/rollup/rollup-plugin-babel.git"
34+
},
35+
"bugs": {
36+
"url": "https://github.com/rollup/rollup-plugin-babel/issues"
2037
}
2138
}

0 commit comments

Comments
 (0)