diff --git a/README.md b/README.md index 29140ea..2976d3a 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,8 @@ gulp.task 'riot', -> * Run expressions trough parser defined with `--type` * type: `String, coffeescript | cs | es6 | none` * JavaScript parser +* template: `String, jade` + * Template parser * See more: https://muut.com/riotjs/compiler.html # Installation diff --git a/build/index.js b/build/index.js index 6c522c6..4e09beb 100644 --- a/build/index.js +++ b/build/index.js @@ -5,7 +5,7 @@ through = require('through2'); - compile = require('riot/compiler/compiler').compile; + compile = require('riot').compile; module.exports = function(opts) { var transform; diff --git a/package.json b/package.json index 1dea5c2..15b7fc7 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "license": "MIT", "dependencies": { "gulp-util": "3.0.2", - "riot": "2.0.5", + "riot": "2.0.7", "through2": "0.6.3" }, "devDependencies": { diff --git a/src/index.coffee b/src/index.coffee index 119834c..3c4e3cf 100644 --- a/src/index.coffee +++ b/src/index.coffee @@ -1,6 +1,6 @@ gutil = require 'gulp-util' through = require 'through2' -{compile} = require 'riot/compiler/compiler' +{compile} = require 'riot' module.exports = (opts)-> transform = (file, encoding, callback)->