shane13hsi / leaflux

It's too simple to be understood even for me.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

library-boilerplate

An opinionated setup I plan to use for my libraries.

It has CommonJS and UMD builds via Babel and Webpack, ESLint, and Mocha.
It also has React-friendly examples folder with library code mapped to the sources.

If you use this, make sure to grep for “library-boilerplate” and replace every occurrence. See package.json in the root and the example folder for the list of the available commands.

Note that this is an opinionated boilerplate. You might want to:

  • Set stage to 2 in .babelrc so you don’t depend on language features that might be gone tomorrow;
  • Remove loose: ["all"] from .babelrc so the behavior is spec-compliant.

You have been warned.

About

It's too simple to be understood even for me.

License:MIT License


Languages

Language:JavaScript 92.9%Language:Shell 5.8%Language:HTML 1.3%