Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/w8r/rollup-buble-mocha-boilerplate

Library boilerplate with rollup + buble + mocha
https://github.com/w8r/rollup-buble-mocha-boilerplate

boilerplate buble es6 library mocha rollup starter-kit

Last synced: about 1 month ago
JSON representation

Library boilerplate with rollup + buble + mocha

Awesome Lists containing this project

README

        

# Rollup + Buble + Mocha boilerplate [![npm version](https://badge.fury.io/js/rollup-buble-mocha-boilerplate.svg)](https://badge.fury.io/js/rollup-buble-mocha-boilerplate) [![TravisCI](https://travis-ci.org/w8r/rollup-buble-mocha-boilerplate.svg?branch=master)](https://travis-ci.org/w8r/rollup-buble-mocha-boilerplate)

Couldn't find the right (purist) combination, which would allow comfortably author
Javascript libraries without the overhead and slowness of Babel, but with
the best parts of ES6, with mocha, but without karma, yet still be able to write
tests in ES6 and only bundle them invisibly. Also no build systems but npm scripts.

```sh
git clone https://github.com/w8r/rollup-buble-mocha-boilerplate.git your-project
cd your-project
rm -rf .git
git init
# then edit your package.json
```

## Scripts

* **npm run build** to run eslint and build the es6 and es5 umd versions of your lib into `dist`
* **npm test** to run tests
* **npm start** to watch `src` and `tests` and re-run tests

## ESLint

I added airbnb standard as quite a strict one, from which you can go down to
whatever suits you.

## License

MIT