{"name":"buba","description":"Buble + little bit of babel for your esnext tests","version":"2.0.2","author":{"name":"David Chase","email":"davidchase03@gmail.com"},"bugs":{"url":"https://github.com/davidchase/buba/issues"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"dependencies":{"babel-core":"6.13.2","babel-plugin-transform-es2015-modules-commonjs":"6.11.5","buble":"0.13.0","cli":"^0.11.3","mkdirp":"^0.5.1"},"devDependencies":{"codacy-coverage":"1.1.3","cz-conventional-changelog":"1.1.6","istanbul":"0.4.4","mocha":"3.0.1","standard":"7.1.2","tap-spec":"4.1.1","tape":"4.6.0"},"homepage":"https://github.com/davidchase/buba#readme","keywords":["babel","buble","es6","esnext","harmony","testings","tests"],"license":"MIT","main":"index.js","bin":{"buba":"cli.js"},"repository":{"type":"git","url":"git+https://github.com/davidchase/buba.git"},"scripts":{"test":"standard && istanbul cover -- tape --require ./register test/index.js | tap-spec && npm run test-options  && npm run test-mocha","test-mocha":"_mocha test/mocha.js","test-options":"tape test/options.js | tap-spec"},"gitHead":"73ed7092cd3d89120161f0ec36c401f095b74ace","_id":"buba@2.0.2","_shasum":"5f597788250adb109f596f1cca50f0a665c43182","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"davidchase","email":"davidchase03@gmail.com"},"maintainers":[{"name":"davidchase","email":"davidchase03@gmail.com"}],"dist":{"shasum":"5f597788250adb109f596f1cca50f0a665c43182","tarball":"http://registry-npm.ywwl.com/buba/download/buba-2.0.2.tgz","integrity":"sha512-m2ALMIWSlGGwqoRzh8br8+Hd6682tRJwMed7tBNxACJy77feCvQKiX5pb6LGiL0XGkCABk4QPTqBeULH0W29FA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgKaVyRLYzTsV1qT89yUQfgEK2+i7A8TUNUFDVcp5IVwIhAIvj/3forFUhoYE773Wr2hi6SH8pikvFOxULwwWTEdFy"}],"size":6897,"noattachment":false,"key":"/buba/-/buba-2.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/buba-2.0.2.tgz_1471100435803_0.8713666903786361"},"readme":"# buba\n> Bublé transform + a little bit of Babel\n\n[![Build Status](https://travis-ci.org/davidchase/buba.svg?branch=master)](https://travis-ci.org/davidchase/buba) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n[![npm version](https://img.shields.io/npm/v/buba.svg)](https://www.npmjs.com/package/buba)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/b3b512a5e0854a98bea75538647e84c4)](https://www.codacy.com/app/davidchase/buba?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=davidchase/buba&amp;utm_campaign=Badge_Coverage)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\n## Why?\nBecause a wise man once said your source code should be transpiled with same tool as your tests to avoid any hidden bugs.\n\nThe usecase would be transpiling es* source code with Bublé and have tests match as well. An alternative to using `babel-register`\n\nThe primary transformer here is [Bublé](https://buble.surge.sh/#) we only use [Babel](https://babeljs.io) for support with module import/exports.\n\n\n## Install\n\n```sh\nnpm install buba --save-dev\n```\n\n## Usage\n\n### Source code\n\n**CLI**\n```sh\nbuba -i input.js -o output.js\n# or with a directory\nbuba -i src/ -o lib/\n# to enable sourceMaps\nbuba -i input.js -o output.js -s\n```\n\n**API Usage**\n```js\nimport { transformFile } from 'buba'\n\nconst { code, map } = transformFile('input.js', {\n  buble: {} // buble options\n  babel: {} // babel options\n})\n```\n\n### Tests\n```sh\nmocha --require buba/register tests/**/*.js\n# or\ntape --require buba/register tests/**/*.js\n```\n\nWith `mocha` you can also provide buba within the `mocha.opts` config file:\n\n```sh\n --require buba/register\n --reporter spec\n --ui bdd\n```\n\nCurrently we only plan to use Babel for modules but you can add support for something like generators by adding a `.babelrc` file.\n\n**API Usage**\n\nJust make sure that `buba` is the 1st thing you require\n\n```js\nrequire('buba/register')\nconst prelude = require('./prelude') // prelude has import/export, arrow functions, etc\n```\n\n\n## Todo\n- [x] Add Tests\n- [x] Add Bublé options\n- [x] Add CLI supoort - thanks [@TylorS](https://github.com/TylorS)\n","publish_time":1471100437580,"_cnpm_publish_time":1471100437580,"dist-tags":{"latest":"4.0.2"}}