grunt-riot v0.1.8
grunt-riot
grunt plugin for riot
This plugin compile riot's .tag files.
Getting Started
This plugin requires Grunt.
npm install grunt-riot --save-devOnce that's done, add this line to your project's Gruntfile Or use load-grunt-tasks
grunt.loadNpmTasks('grunt-riot');Usage Examples
grunt.initConfig({
  riot: {
    options:{
        template : 'jade',
        type : 'coffeescript'
    },
    dist: {
        expand: true,
        cwd: '<%= app %>/scripts',
        src: '**/*.tag',
        dest: '<%= app %>/scripts',
        ext: '.js'
    }
  },
})if you want concat to a single file  , take care not to set expand: true ,eg:
grunt.initConfig({
  riot: {
    options: {
        concat : true
    },
    src: 'script/*.tag',
    dest: '.tmp/tag.js'
  },
})if you want concat to a single file with AMD and CommonJS support including dependencies , eg:
grunt.initConfig({
  riot: {
    options: {
      concat : true,
      modular: {
        type: 'umd',
        deps: [
          'riot',
          {'jquery': '$'},
          {'lib/my_module': 'MyModule'}
        ]
      }
    },
    src: 'script/*.tag',
    dest: '.tmp/tag.js'
  },
})Options
- compact: Booleanno whitespace between tags . eg : ' ' to '' default :true
- expr: Booleanexpressions trough parser default :true
- type: StringjavaScript parser type default :null
- template: Stringtemplate parser default :null
- parser: Functioncustom javascript parser method default :null
- fileConfig: Functionyou can set single file compile option in callback default :null
- concat: Booleanyou can concat multiple tag file to a single file default :false
- modular: Booleanor modularization options:- type: amdorcommonorumdmodularization type default :umd
- deps: Arraymodularization 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.
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago