grunt-riot
grunt plugin for riot
This plugin compile riot's .tag
files.
Getting Started
This plugin requires Grunt.
npm install grunt-riot --save-dev
Once that's done, add this line to your project's Gruntfile Or use load-grunt-tasks
grunt;
Usage Examples
grunt
if you want concat to a single file , take care not to set expand: true
,eg:
grunt
if you want concat to a single file with AMD and CommonJS support including dependencies , eg:
grunt
Options
- compact:
Boolean
- expr:
Boolean
- expressions trough parser
- default :
true
- type:
String
- javaScript parser type
- default :
null
- template:
String
- template parser
- default :
null
- parser:
Function
- custom javascript parser method
- default :
null
- fileConfig:
Function
- you can set single file compile option in callback
- default :
null
- concat:
Boolean
- you can concat multiple tag file to a single file
- default :
false
- modular:
Boolean
or modularization options:- type:
amd
orcommon
orumd
- modularization type
- default :
umd
- deps:
Array
- modularization dependencies
- default :
['riot']
- default :
false
- type:
if you want use typescript , coffee or es , you should install compile module
- typescript : typescript-simple
- coffeescript : coffee-script
- es6 : Babel
- jade : jade
See more: https://muut.com/riotjs/compiler.html
Release History
2015-01-26 0.0.1
License
Copyright (c) 2015 . Licensed under the MIT license.