Comparing version
@@ -1,4 +0,4 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.8.0 | ||
(function() { | ||
var bundle, fs, funclet, loglet, path, run; | ||
var bundle, fs, funclet, isAbsolute, loglet, path, pathToSpec, relative, run; | ||
@@ -15,5 +15,25 @@ bundle = require('./bundle'); | ||
isAbsolute = function(filePath) { | ||
return filePath.indexOf('/') === 0; | ||
}; | ||
relative = function(filePath) { | ||
if (filePath.indexOf('.') === 0) { | ||
return filePath; | ||
} else { | ||
return './' + filePath; | ||
} | ||
}; | ||
pathToSpec = function(filePath) { | ||
if (isAbsolute(filePath)) { | ||
return filePath; | ||
} else { | ||
return relative(filePath); | ||
} | ||
}; | ||
run = function(argv) { | ||
return bundle.bundle(argv._[0], argv, function(err, res) { | ||
var destPath, item, _i, _len, _results; | ||
return bundle.bundle(pathToSpec(argv._[0]), argv, function(err, res) { | ||
var destPath, e, item, _i, _len, _results; | ||
if (err) { | ||
@@ -38,3 +58,4 @@ return loglet.croak(err); | ||
return _results; | ||
} catch (e) { | ||
} catch (_error) { | ||
e = _error; | ||
return loglet.croak(e); | ||
@@ -41,0 +62,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "client-side Javascript packager.", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
141383
0.51%4123
0.44%