Generator Babel Boilerplate

screenshot of Generator Babel Boilerplate

A Yeoman generator to author libraries in ES2015 (and beyond!) for Node and the browser.

Overview:

The generator-babel-boilerplate is a Yeoman generator that allows developers to author libraries in ES2015 and beyond for both Node.js and the browser. It provides several features that make it easy to develop and test libraries using modern JavaScript syntax, including support for writing code in ES2015, exporting the library as ES5 and UMD, and using the Mocha-Chai-Sinon testing stack. The generator also comes with a basic guide on how to write code, run tests, and build the library for distribution.

Features:

  • Author in ES2015 (including the unit tests): The generator allows developers to write code in ES2015, making use of all the new features and syntax of the language.
  • Export as ES5 & UMD: The generated library can be exported as ES5 code for compatibility with older versions of JavaScript, as well as UMD (Universal Module Definition) for use in different environments.
  • Mocha-Chai-Sinon testing stack: The generator sets up the Mocha-Chai-Sinon testing stack, providing a comprehensive and powerful testing framework for running unit tests on the library.

Summary:

The generator-babel-boilerplate is a useful tool for developers who want to write libraries using modern JavaScript syntax. With features like ES2015 support, ES5 and UMD export options, and the Mocha-Chai-Sinon testing stack, it provides a comprehensive set of tools for developing and testing libraries for both Node.js and the browser. The installation process is straightforward, and the generator comes with a basic guide to help developers get started quickly.