fly-riot
v2.1.0
Published
Riot compiler plugin for Fly.
Downloads
13
Readme
fly-riot
Riot compiler plugin for Fly.
Install
npm install --save-dev fly-riot
Usage
exports.tags = function * (fly) {
yield fly.source('src/**/*.tag')
.riot()
.concat('templates.js') // requires fly-concat!
.target('dist/js');
}
API
.riot()
All matching files will be compiled to JavaScript & be converted to a .js
file type.
Recommended: You should concatenate all your compiled tags, as seen in the example above. To achieve this, you must install the
fly-concat
plugin.
There are no options for this plugin.
License
MIT © Luke Edwards