Skip to content

JavaScript library boilerplate, a project template for authoring and publishing JavaScript libraries built with ES6+, Babel, Browserify, BrowserSync, Mocha, Chai, Sinon

License

Notifications You must be signed in to change notification settings

element6/babel-starter-kit

 
 

Repository files navigation

Babel Starter Kit

NPM version NPM downloads Build Status Dependency Status Chat

JavaScript library boilerplate, a project template for authoring and publishing JavaScript libraries built with ES6+, Babel, Browserify, BrowserSync, Mocha, Chai, Sinon.

Features

    ✓ Next generation JavaScript via Babel
    ✓ Publish to NPM as ES5, ES6+ and UMD
    ✓ Pre-configured tests with Mocha, Chai and Sinon
    ✓ Project documentation boilerplate (demo)
    ✓ Yeoman generator (generator-javascript)
    ✓ Cross-platform, minimum dependencies

Getting Started

Start by cloning this repo and installing project dependencies:

$ git clone -o babel-starter-kit -b master --single-branch \
      https://github.com/kriasoft/babel-starter-kit.git MyProject
$ cd MyProject
$ npm install

Update your name in LICENSE.txt and project information in package.json and README.md files. Write your code in src folder, write tests in test folder. Run npm run build to compile the source code into a distributable format. Write documentation in markdown format in docs folder. Run npm start to launch a development server with the documentation site.

How to Test

$ npm run lint          # Lint your code
$ npm test              # Run unit tests, or `npm test -- --watch`

How to Update

Down the road you can fetch and merge the recent changes from this repo back into your project:

$ git checkout master
$ git fetch babel-starter-kit
$ git merge babel-starter-kit/master
$ npm install

Support

License

The MIT License © Konstantin Tarkus (@koistya)

About

JavaScript library boilerplate, a project template for authoring and publishing JavaScript libraries built with ES6+, Babel, Browserify, BrowserSync, Mocha, Chai, Sinon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%