Comparing version 1.0.0 to 1.0.1
11
index.js
@@ -39,3 +39,3 @@ var riot = require('riot') | ||
var riotPath = path.dirname(require.resolve('riot')) // lib/server/index.js | ||
var pattern = { | ||
files.unshift({ | ||
pattern: riotPath + '/../../riot.js', | ||
@@ -45,4 +45,9 @@ included: true, | ||
watched: false | ||
} | ||
files.unshift(pattern) | ||
}) | ||
files.unshift({ | ||
pattern: __dirname + '/polyfill.js', | ||
included: true, | ||
served: true, | ||
watched: false | ||
}) | ||
} | ||
@@ -49,0 +54,0 @@ initRiot.$inject = ['config.files'] |
{ | ||
"name": "karma-riot", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A Karma plugin. Compile and test HTML and JS in Riot tag files.", | ||
@@ -26,8 +26,8 @@ "main": "index.js", | ||
"expect.js": "^0.3.1", | ||
"karma": "^0.13.9", | ||
"karma": "^0.13.15", | ||
"karma-mocha": "^0.2.0", | ||
"karma-mocha-reporter": "^1.1.1", | ||
"karma-phantomjs-launcher": "^0.2.1", | ||
"riot": "^2.2.4" | ||
"riot": "^2.3.1" | ||
} | ||
} |
@@ -56,4 +56,16 @@ # karma-riot | ||
See [our example](https://github.com/riot/examples/karma-mocha) for Mocha spec config. | ||
## Options | ||
```js | ||
riotPreprocessor: { | ||
options: { | ||
type: 'es6' | ||
} | ||
} | ||
``` | ||
[Read the docs](http://riotjs.com/guide/compiler/#pre-processors) for more info on available options. | ||
See [our example](./test/specs.js) for Mocha spec config. | ||
---- | ||
@@ -60,0 +72,0 @@ |
6631
9
113
75