Permalink
Browse files

Adding in full dependency chain, updated output style.

  • Loading branch information...
SlexAxton committed Sep 2, 2011
1 parent 902622b commit 4ac663e170aa1e3ab65fa138c86b42bebdd86307
Showing with 5 additions and 3 deletions.
  1. +2 −2 bin/sc-handlebars
  2. +3 −1 package.json
View
@@ -79,7 +79,7 @@ if (argv.known) {
var output = [];
if (!argv.simple) {
- output.push('(function() {\n var template = Handlebars.template, templates = SC.TEMPLATES;\n');
+ output.push('(function( SC, Handlebars ) {\n var template = Handlebars.template, templates = SC.TEMPLATES;\n');
}
function processTemplate(template, root) {
var path = template,
@@ -122,7 +122,7 @@ argv._.forEach(function(template) {
// Output the content
if (!argv.simple) {
- output.push('})()');
+ output.push('})( window.SC, window.Handlebars );');
}
output = output.join('');
View
@@ -11,7 +11,9 @@
}
, "main" : "./lib/main"
, "dependencies": {
- "handlebars": "1.0.x"
+ "handlebars": "1.0.x",
+ "optimist": "~0.2",
+ "uglify-js": "~1.0"
}
, "bin" : {
"sc-handlebars" : "bin/sc-handlebars"

0 comments on commit 4ac663e

Please sign in to comment.