Skip to content

Commit

Permalink
Modifying files to work with jam.js (Partially fixes SlexAxton/requir…
Browse files Browse the repository at this point in the history
…e-handlebars-plugin#79 although there's no way to configure it for jam compile at the moment - see caolan/jam#127 ). This commit keeps the dependencies included in the package, although we could update it to use jam-provided coppies of underscore and json2 (and possibly handlebars)
  • Loading branch information
nfriedly committed Jan 24, 2013
1 parent c9588f6 commit 6a2cf64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
define: false, process: false, window: false */
define([
//>>excludeStart('excludeHbs', pragmas.excludeHbs)
'handlebars', 'underscore', 'i18nprecompile', 'json2'
'./handlebars', './hbs/underscore', './hbs/i18nprecompile', './hbs/json2'
//>>excludeEnd('excludeHbs')
], function (
//>>excludeStart('excludeHbs', pragmas.excludeHbs)
Expand Down
2 changes: 1 addition & 1 deletion hbs/i18nprecompile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//>>excludeStart('excludeAfterBuild', pragmas.excludeAfterBuild)
define(['handlebars', "underscore"], function ( Handlebars, _ ) {
define(['../handlebars', "./underscore"], function ( Handlebars, _ ) {

function replaceLocaleStrings ( ast, mapping, options ) {
options = options || {};
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
"dependencies": {
"Handlebars": "https://raw.github.com/SlexAxton/require-handlebars-plugin/master/Handlebars.js"
}
},
"jam": {
"name": "hbs"
}
}

0 comments on commit 6a2cf64

Please sign in to comment.