GithubHelp home page GithubHelp logo

tylors / buba Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidchase/buba

0.0 2.0 0.0 33 KB

Bublé transform for your esnext tests + a little bit of Babel

License: MIT License

JavaScript 100.00%

buba's Introduction

buba

Bublé transform for your esnext tests + a little bit of Babel

Build Status js-standard-style npm version Codacy Badge Commitizen friendly

Why?

Because a wise man once said your source code should be transpiled with same tool as your tests to avoid any hidden bugs.

The usecase would be transpiling es* source code with Bublé and have tests match as well. An alternative to using babel-register

The primary transformer here is Bublé we only use Babel for support with module import/exports.

Install

npm install buba --save-dev

Usage

mocha --require buba tests/**/*.js
# or
tape --require buba tests/**/*.js

With mocha you can also provide buba within the mocha.opts config file:

 --require buba
 --reporter spec
 --ui bdd

Currently we only plan to use Babel for modules but you can add support for something like generators by adding a .babelrc file.

API Usage

Just make sure that buba is the 1st thing you require

require('buba')
const prelude = require('./prelude') // prelude has import/export, arrow functions, etc

Todo

  • Add Tests
  • Add Bublé options
  • Add CLI supoort

buba's People

Contributors

briancavalier avatar davidchase avatar greenkeeperio-bot avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.