diff options
author | kpdecker <kpdecker@gmail.com> | 2013-09-02 16:44:17 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-09-02 18:19:37 -0500 |
commit | a2687fdf501a878df264d9cbefd31c0601a077e7 (patch) | |
tree | 8a9a3444e591e69db7524837c2377f978b6c2d22 | |
parent | cb0c45b29fa9df0b912d843e3a695293f1d10cad (diff) | |
download | handlebars.js-a2687fdf501a878df264d9cbefd31c0601a077e7.zip handlebars.js-a2687fdf501a878df264d9cbefd31c0601a077e7.tar.gz handlebars.js-a2687fdf501a878df264d9cbefd31c0601a077e7.tar.bz2 |
Fix cjs output and testing
-rw-r--r-- | configurations/transpile.js | 8 | ||||
-rw-r--r-- | spec/env/node.js | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/configurations/transpile.js b/configurations/transpile.js index 679fbf2..61a2ea5 100644 --- a/configurations/transpile.js +++ b/configurations/transpile.js @@ -11,8 +11,12 @@ module.exports = { cjs: { type: 'cjs', - src: ["lib/<%= pkg.barename %>.js", "lib/*/**/*.js"], - dest: "tmp/<%= pkg.barename %>.cjs.js" + files: [{ + expand: true, + cwd: 'lib/', + src: '**/*.js', + dest: 'dist/cjs/' + }] }, globals: { diff --git a/spec/env/node.js b/spec/env/node.js index 3517479..0faf45d 100644 --- a/spec/env/node.js +++ b/spec/env/node.js @@ -1,6 +1,6 @@ require('./common'); -global.Handlebars = require('../../zomg/lib/handlebars'); +global.Handlebars = require('../../dist/cjs/handlebars'); global.CompilerContext = { compile: function(template, options, env) { |