broccoli-coffee
Advanced tools
Comparing version 0.2.0 to 0.3.0
# master | ||
# 0.3.0 | ||
* Add support for literate CoffeeScript (`.litcoffee` and `.coffee.md`) | ||
# 0.2.0 | ||
@@ -4,0 +8,0 @@ |
10
index.js
@@ -14,7 +14,11 @@ var Filter = require('broccoli-filter') | ||
CoffeeScriptFilter.prototype.extensions = ['coffee'] | ||
CoffeeScriptFilter.prototype.extensions = ['coffee', 'litcoffee', 'coffee.md'] | ||
CoffeeScriptFilter.prototype.targetExtension = 'js' | ||
CoffeeScriptFilter.prototype.processString = function (string) { | ||
var coffeeScriptOptions = { bare: this.bare } | ||
CoffeeScriptFilter.prototype.processString = function (string, srcFile) { | ||
var coffeeScriptOptions = { | ||
bare: this.bare, | ||
literate: coffeeScript.helpers.isLiterate(srcFile) | ||
} | ||
try { | ||
@@ -21,0 +25,0 @@ return coffeeScript.compile(string, coffeeScriptOptions) |
{ | ||
"name": "broccoli-coffee", | ||
"description": "CoffeeScript filter for Broccoli", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -18,2 +18,5 @@ # broccoli-coffee | ||
All `.coffee` files (as well as `.litcoffee` and `.coffee.md`) will be | ||
replaced with compiled `.js` files. | ||
### Options | ||
@@ -20,0 +23,0 @@ |
4621
26
37