Skip to content

Commit

Permalink
Use transformers instead of consolidate-build
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay committed Feb 3, 2013
1 parent c1be019 commit 084e49b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions commands/compile.js
@@ -1,7 +1,7 @@
var fs = require('fs');
var q = require('q');
var pathLib = require('path');
var build = require('consolidate-build');
var build = require('transformers');
var utils = require('../lib/utils');

// files with these extensions need to be compiled;
Expand Down Expand Up @@ -234,7 +234,7 @@ function generateCompileFn(fileNameSansExtension, extension, compilerOptions,
// simply use the file extension as a key
return utils.mkdirRecursive(pathLib.dirname(directory + '/' + fileDisplay))
.then(function() {
return q.ncall(build[extension], build[extension], fileName, options);
return build[extension].renderFile(fileName, options);
})
.then(function(output) {
var newExtension = compiledExtensions[extension];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -14,7 +14,7 @@
"coffee-script": ">= 1.3.2",
"commander": "1.0.x",
"commander-config": "0.x.x",
"consolidate-build": "1.x.x",
"transformers": "1.x.x",
"jade": ">= 0.26.3",
"mime": "1.2.x",
"nconf": "0.6.x",
Expand Down

0 comments on commit 084e49b

Please sign in to comment.