Skip to content

Commit

Permalink
rename jsbundle export to createDevCdn
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Baumgart committed May 24, 2012
1 parent 1d4d575 commit cf207aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/devcdn
Expand Up @@ -4,7 +4,7 @@ var argv = require('optimist').argv;
var connect = require('connect');
var fs = require('fs');
var util = require('util');
var makeDevCdn = require('../jsbundle').devCdn;
var jsbundle = require('../jsbundle');

if (argv.help) {
util.puts('usage:\n\
Expand All @@ -19,7 +19,7 @@ if (argv.help) {
} else if (argv.version) {
util.puts(JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf-8')).version);
} else {
var devCdn = makeDevCdn(process.env.JSBUNDLE_ENV);
var devCdn = jsbundle.createDevCdn(process.env.JSBUNDLE_ENV);
var port = argv._[0] || 8081;
connect().use(devCdn).listen(port);
}
Expand Down
2 changes: 1 addition & 1 deletion jsbundle.js
Expand Up @@ -19,7 +19,7 @@ function compilePackage(configOrPackageDir, env, bundleUrl) {
}
}

exports.devCdn = require('./lib/dev-cdn');
exports.createDevCdn = require('./lib/dev-cdn');
exports.parseConfig = parseConfig;
exports.Bundle = Bundle;
exports.compilePackage = compilePackage;
Expand Down

0 comments on commit cf207aa

Please sign in to comment.