A gulp plugin for RiotTS
Usage
This plugin allows to precompile riot tags that are compatible with RiotTS.
Example
var gulp = ; var riotts = ; gulp;
Compile options
This plugin supports riot's compile options.
g;
Available options
- indexByTagName:
Boolean
- If set to
true
will index compiled tags by tag name rather than file path.
- If set to
- rootDir:
String
- Allows to override the root directory of file names if
indexByTagName
is nottrue
- Allows to override the root directory of file names if
- compact:
Boolean
- Minify
</p> <p>
to</p><p>
- Minify
- whitespace:
Boolean
- Escape
\n
to\\n
- Escape
- expr:
Boolean
- Run expressions through parser defined with
--type
- Run expressions through parser defined with
- type:
String, coffeescript | typescript | cs | es6 | livescript | none
- JavaScript parser
- template:
String, jade
- Template parser
- See more: https://muut.com/riotjs/compiler.html
- modular:
Boolean
- For AMD and CommonJS option
- See more: http://riotjs.com/guide/compiler/#pre-compilation
- parsers:
Object
- Define custom parsers
- css:
Function
- js:
Function
- html:
Function
Installation
% npm install gulp-riotts
Requirements
- Node.js
- gulp