0.0.1 • Published 10 years ago
gulp-riotts v0.0.1
A gulp plugin for RiotTS
Usage
This plugin allows to precompile riot tags that are compatible with RiotTS.
Example
var gulp = require('gulp');
var riotts = require('gulp-riotts');
gulp.task('some-task', function() {
return gulp.src('*.html')
.pipe(riotts())
.pipe(gulp.dest('tags.js'));
});Compile options
This plugin supports riot's compile options.
g.pipe(riotts({ compact: true }));Available options
- indexByTagName:
Boolean* If set totruewill index compiled tags by tag name rather than file path. - rootDir:
String* Allows to override the root directory of file names ifindexByTagNameis nottrue - compact:
Boolean* Minify</p> <p>to</p><p> - whitespace:
Boolean* Escape\nto\\n - expr:
Boolean* Run expressions through parser defined with--type - type:
String, coffeescript | typescript | cs | es6 | livescript | none* JavaScript parser - template:
String, jadeTemplate parser See more: https://muut.com/riotjs/compiler.html - modular:
BooleanFor AMD and CommonJS option See more: http://riotjs.com/guide/compiler/#pre-compilation - parsers:
ObjectDefine custom parsers css:FunctionSee more: http://riotjs.com/api/compiler/#css-parser js:FunctionSee more: http://riotjs.com/api/compiler/#js-parser html:Function* See more: http://riotjs.com/api/compiler/#html-parser
Installation
% npm install gulp-riottsRequirements
- Node.js
- gulp
0.0.1
10 years ago