buble-riot-rollup-starter v2.0.1
buble-riot-rollup-starter
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 installOr install from npm:
npm i buble-riot-rollup-starterUsage
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 startYou can also generate a development build by running the following command:
npm run build:devProduction
First run the following command:
npm run buildThen 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.