Comparing version 0.1.4 to 0.1.6
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
@@ -14,1 +14,5 @@ var _this = this; | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=index.map | ||
*/ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
@@ -35,3 +35,2 @@ var Builder, exec, existsSync, fs, glob, path, run, | ||
Builder = (function() { | ||
function Builder(projectRoot) { | ||
@@ -59,2 +58,7 @@ this._projectRoot = projectRoot; | ||
Builder.prototype.sourceMap = function(_enableSourceMaps) { | ||
this._enableSourceMaps = _enableSourceMaps != null ? _enableSourceMaps : true; | ||
return this; | ||
}; | ||
Builder.prototype.outputDir = function(_outputDir) { | ||
@@ -69,2 +73,3 @@ this._outputDir = _outputDir; | ||
_this = this; | ||
dirs = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -86,2 +91,3 @@ this._absoluteInputDirs = []; | ||
_this = this; | ||
if (!this._libName) { | ||
@@ -95,4 +101,6 @@ throw new Error("Library name required!"); | ||
var coffeeSourceDir, dir, srcDirsToInclude, _i, _len, _results; | ||
srcDirsToInclude = (function() { | ||
var _i, _len, _ref, _results; | ||
_ref = this._absoluteInputDirs; | ||
@@ -114,5 +122,12 @@ _results = []; | ||
_results.push((function(coffeeSourceDir) { | ||
console.log("coffee -o " + libraryOutputDir + " -c " + coffeeSourceDir); | ||
return run("coffee -o " + libraryOutputDir + " -c " + coffeeSourceDir, function(err, stdout, stderr) { | ||
var args; | ||
args = ['-o', libraryOutputDir, '-c', coffeeSourceDir]; | ||
if (_this._enableSourceMaps) { | ||
args.unshift('-m'); | ||
} | ||
console.log("coffee " + (args.join(' '))); | ||
return run("coffee " + (args.join(' ')), function(err, stdout, stderr) { | ||
var _j, _len1, _ref, _results1; | ||
_ref = _this._inputDirs; | ||
@@ -125,2 +140,3 @@ _results1 = []; | ||
var file, _k, _len2, _results2; | ||
_results2 = []; | ||
@@ -131,2 +147,3 @@ for (_k = 0, _len2 = files.length; _k < _len2; _k++) { | ||
var filePathSansInputDir, pathToCreate, reg; | ||
reg = RegExp("^" + dir + "\\/"); | ||
@@ -164,1 +181,5 @@ filePathSansInputDir = path.relative(_this._projectRoot, file).replace(reg, ""); | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=sourceBuilder.map | ||
*/ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
@@ -11,2 +11,3 @@ var Canvas, dom, extend, jsdom; | ||
var k, v, _results; | ||
_results = []; | ||
@@ -23,2 +24,3 @@ for (k in obj2) { | ||
var doc, _ce, _document, _window; | ||
doc = window.document; | ||
@@ -29,2 +31,3 @@ _document = global.document; | ||
var el; | ||
el = _ce.call(doc, tagName); | ||
@@ -48,1 +51,5 @@ if (tagName === 'canvas') { | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=dom.map | ||
*/ |
@@ -1,6 +0,6 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
exports.group = function(groupName, ex, fun) { | ||
var t; | ||
t = function(name, test) { | ||
@@ -15,1 +15,5 @@ console.log("Prepping test: test " + name); | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=group.map | ||
*/ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
@@ -6,3 +6,2 @@ var Image; | ||
Image = (function() { | ||
function Image() {} | ||
@@ -22,1 +21,5 @@ | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=image.map | ||
*/ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
@@ -7,2 +7,3 @@ var __slice = [].slice; | ||
var key, mod, mods, module, namespace, obj, _i, _len, _results; | ||
namespace = arguments[0], mods = 2 <= arguments.length ? __slice.call(arguments, 1) : []; | ||
@@ -15,2 +16,3 @@ _results = []; | ||
var _results1; | ||
_results1 = []; | ||
@@ -28,1 +30,5 @@ for (key in module) { | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=import.map | ||
*/ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
@@ -15,2 +15,3 @@ var path, server, servers, spawn; | ||
var completed, connected, endpoint, serverProc, started, testPort; | ||
if (servers[port]) { | ||
@@ -73,1 +74,5 @@ return servers[port]; | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=server.map | ||
*/ |
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.4.0 | ||
// Generated by CoffeeScript 1.6.2 | ||
(function() { | ||
@@ -17,3 +17,2 @@ var TestBuilder, exec, fs, glob, path, util, | ||
TestBuilder = (function() { | ||
function TestBuilder() { | ||
@@ -43,2 +42,3 @@ this._includePaths = []; | ||
var p; | ||
if (this._preRequire) { | ||
@@ -67,2 +67,3 @@ return this._preRequire; | ||
var p, paths, _i, _len; | ||
paths = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -78,2 +79,3 @@ for (_i = 0, _len = paths.length; _i < _len; _i++) { | ||
var g, globals, _i, _len; | ||
globals = 1 <= arguments.length ? __slice.call(arguments, 0) : []; | ||
@@ -95,5 +97,5 @@ for (_i = 0, _len = globals.length; _i < _len; _i++) { | ||
_this = this; | ||
if (!this._task) { | ||
"TestBuilder requires task function to define tasks."; | ||
} | ||
@@ -107,2 +109,3 @@ _ref = this._testDefinitions; | ||
var t, _results; | ||
process.on('exit', function() { | ||
@@ -129,2 +132,3 @@ return process.reallyExit(_this.retVal()); | ||
_this = this; | ||
childEnv = {}; | ||
@@ -141,2 +145,3 @@ _ref = process.env; | ||
var child, file, outFile, _i, _len, _results; | ||
_results = []; | ||
@@ -174,2 +179,3 @@ for (_i = 0, _len = files.length; _i < _len; _i++) { | ||
_this = this; | ||
taskName = "test:" + name; | ||
@@ -192,1 +198,5 @@ return this._task("" + taskName, "Run units on " + name, function() { | ||
}).call(this); | ||
/* | ||
//@ sourceMappingURL=testBuilder.map | ||
*/ |
{ | ||
"name": "mf-tools", | ||
"description": "Build and test tools.", | ||
"version": "0.1.4", | ||
"version": "0.1.6", | ||
"author": "Mason Browne <mason@massivelyfun.com>", | ||
@@ -25,3 +25,3 @@ "contributors": [ | ||
"devDependencies": { | ||
"coffee-script": "~ 1.4.0", | ||
"coffee-script": "~ 1.6.2", | ||
"mocha": "~ 1.6.0", | ||
@@ -28,0 +28,0 @@ "chai": "~ 1.3.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59059
34
1003