fly-riot

2.1.0 • Public • Published

fly-riot npm package

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

Package Sidebar

Install

npm i fly-riot

Weekly Downloads

1

Version

2.1.0

License

MIT

Last publish

Collaborators

  • lukeed