Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

rename jsbundle export to createDevCdn

  • Loading branch information...
commit cf207aa84d88ee74489646cb3dff9ddc37084431 1 parent 1d4d575
Paul Baumgart authored May 23, 2012

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 4  bin/devcdn
  2. 2  jsbundle.js
4  bin/devcdn
@@ -4,7 +4,7 @@ var argv = require('optimist').argv;
4 4
 var connect = require('connect');
5 5
 var fs = require('fs');
6 6
 var util = require('util');
7  
-var makeDevCdn = require('../jsbundle').devCdn;
  7
+var jsbundle = require('../jsbundle');
8 8
 
9 9
 if (argv.help) {
10 10
   util.puts('usage:\n\
@@ -19,7 +19,7 @@ if (argv.help) {
19 19
 } else if (argv.version) {
20 20
   util.puts(JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf-8')).version);
21 21
 } else {
22  
-  var devCdn = makeDevCdn(process.env.JSBUNDLE_ENV);
  22
+  var devCdn = jsbundle.createDevCdn(process.env.JSBUNDLE_ENV);
23 23
   var port = argv._[0] || 8081;
24 24
   connect().use(devCdn).listen(port);
25 25
 }
2  jsbundle.js
@@ -19,7 +19,7 @@ function compilePackage(configOrPackageDir, env, bundleUrl) {
19 19
   }
20 20
 }
21 21
 
22  
-exports.devCdn = require('./lib/dev-cdn');
  22
+exports.createDevCdn = require('./lib/dev-cdn');
23 23
 exports.parseConfig = parseConfig;
24 24
 exports.Bundle = Bundle;
25 25
 exports.compilePackage = compilePackage;

0 notes on commit cf207aa

Please sign in to comment.
Something went wrong with that request. Please try again.