buble-riot-rollup-starter

A starter project to build Riot applications with Bublé and Rollup.


Keywords
Bublé, Browsersync, Riot, Rollup, StandardJS
License
MIT
Install
npm install buble-riot-rollup-starter@2.0.1

Documentation

buble-riot-rollup-starter

Build Status Dependency Status npm version js-standard-style

A starter project to build Riot applications with Bublé and Rollup.

This project is based on buble-react-rollup-starter and provides a basic boilerplate to get started with Riot using ES2015/16 which is then bundled with Rollup and compiled by Bublé into ES5 code.

Installation

Clone this repository:

git clone https://github.com/nerdstep/buble-riot-rollup-starter
cd buble-riot-rollup-starter
npm install

Or install from npm:

npm i buble-riot-rollup-starter

Usage

Development

A basic workflow involving Browsersync is already implemented. Running the following command will open your default browser pointing to the html/index-dev.html file. Any modification of one of the files included in the src directory will trigger a new development build and refresh your browser:

npm start

You can also generate a development build by running the following command:

npm run build:dev

Production

First run the following command:

npm run build

Then open the html/index.html file in your browser.

The Rollup production configuration file switch the NodeJS environment to production and minify the code with UglifyJS.

Linting

The code quality is checked by the JavaScript Standard Style.

License

Released under the MIT license by Justin Williams.