diff --git a/packages/rollup-plugin-babel/.travis.yml b/packages/rollup-plugin-babel/.travis.yml new file mode 100644 index 000000000..cb07089c9 --- /dev/null +++ b/packages/rollup-plugin-babel/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - 'stable' + - '0.12' diff --git a/packages/rollup-plugin-babel/CHANGELOG.md b/packages/rollup-plugin-babel/CHANGELOG.md index 067a56caa..0121255d0 100644 --- a/packages/rollup-plugin-babel/CHANGELOG.md +++ b/packages/rollup-plugin-babel/CHANGELOG.md @@ -1,5 +1,11 @@ # rollup-plugin-babel changelog +## 2.0.1 + +* Use object-assign ponyfill +* Add travis support +* Fix test + ## 2.0.0 * Babel 6 compatible diff --git a/packages/rollup-plugin-babel/index.js b/packages/rollup-plugin-babel/index.js index 82efb5bef..0382c0328 100644 --- a/packages/rollup-plugin-babel/index.js +++ b/packages/rollup-plugin-babel/index.js @@ -1,14 +1,7 @@ var path = require( 'path' ); var babel = require( 'babel-core' ); var createFilter = require( 'rollup-pluginutils' ).createFilter; - -var assign = Object.assign || function ( target, source ) { - Object.keys( source ).forEach( function ( key ) { - target[ key ] = source[ key ]; - }); - - return target; -}; +var assign = require( 'object-assign' ); module.exports = function ( options ) { options = assign( {}, options || {} ); diff --git a/packages/rollup-plugin-babel/package.json b/packages/rollup-plugin-babel/package.json index a3f87365b..0a6d4d8a3 100644 --- a/packages/rollup-plugin-babel/package.json +++ b/packages/rollup-plugin-babel/package.json @@ -1,21 +1,38 @@ { "name": "rollup-plugin-babel", "version": "2.0.0", - "devDependencies": { - "eslint": "^1.7.2", - "mocha": "^2.3.3", - "rollup": "^0.20.0" - }, + "description": "Seamless integration between Rollup and Babel.", + "keywords": [ + "rollup-plugin", + "babel", + "es2015", + "es6" + ], + "homepage": "https://github.com/rollup/rollup-plugin-babel", + "author": "Rich Harris", + "contributors": [ + "Bogdan Chadkin " + ], "scripts": { "test": "mocha", "prepublish": "npm run test" }, "dependencies": { "babel-core": "6", + "object-assign": "^4.0.1", "rollup-pluginutils": "^1.1.0" }, + "devDependencies": { + "babel-preset-es2015-rollup": "^1.0.0", + "eslint": "^1.7.2", + "mocha": "^2.3.3", + "rollup": "^0.20.0" + }, "repository": { "type": "git", - "url": "https://github.com/rollup/rollup-plugin-babel" + "url": "git+https://github.com/rollup/rollup-plugin-babel.git" + }, + "bugs": { + "url": "https://github.com/rollup/rollup-plugin-babel/issues" } }