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.
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
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
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.
The code quality is checked by the JavaScript Standard Style.
Released under the MIT license by Justin Williams.