Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coffeebar

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeebar - npm Package Compare versions

Comparing version 0.3.3 to 0.4.0

11

History.md

@@ -1,6 +0,11 @@

11/4/2014 - 0.3.2
3/7/2014 - 0.4.0
=================
* Updated CoffeeScript to 1.7.1
* Updated Beholder to 0.2.0 to fix an issue with file watch on latest Node version
11/4/2013 - 0.3.2
=================
* All input paths are now normalized to fix an issue on Windows systems.
11/3/2014 - 0.3.1
11/3/2013 - 0.3.1
=================

@@ -29,2 +34,2 @@ * Updated coffee-script, commander, uglify-js, glob, and source-map dependencies.

==================
* Initial release.
* Initial release.

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.6.2
var Coffeebar, Source, beholder, coffee, exts, fs, glob, mkdirp, path, sourcemap, xcolor;

@@ -26,16 +26,17 @@

function Coffeebar(inputPaths, options) {
var _base, _base1, _base2, _base3, _base4, _base5;
var _base, _base1, _base2, _base3, _base4, _base5, _ref, _ref1, _ref2, _ref3, _ref4, _ref5;
this.inputPaths = inputPaths;
this.options = options != null ? options : {};
this.sources = [];
if ((_base = this.options).watch == null) {
if ((_ref = (_base = this.options).watch) == null) {
_base.watch = false;
}
if ((_base1 = this.options).silent == null) {
if ((_ref1 = (_base1 = this.options).silent) == null) {
_base1.silent = true;
}
if ((_base2 = this.options).minify == null) {
if ((_ref2 = (_base2 = this.options).minify) == null) {
_base2.minify = false;
}
if ((_base3 = this.options).sourceMap == null) {
if ((_ref3 = (_base3 = this.options).sourceMap) == null) {
_base3.sourceMap = false;

@@ -49,6 +50,6 @@ }

}
if ((_base4 = this.options).bare == null) {
if ((_ref4 = (_base4 = this.options).bare) == null) {
_base4.bare = false;
}
if ((_base5 = this.options).header == null) {
if ((_ref5 = (_base5 = this.options).header) == null) {
_base5.header = true;

@@ -63,2 +64,3 @@ }

var i, inputPath, _i, _len, _ref, _results;
if (!Array.isArray(this.inputPaths)) {

@@ -83,2 +85,3 @@ this.inputPaths = [this.inputPaths];

var file, files, inputPath, _i, _len, _ref, _results;
_ref = this.inputPaths;

@@ -91,2 +94,3 @@ _results = [];

var _j, _len1, _results1;
_results1 = [];

@@ -105,2 +109,3 @@ for (_j = 0, _len1 = files.length; _j < _len1; _j++) {

var i, _i, _len, _ref, _results;
this.addSources();

@@ -137,2 +142,3 @@ this.build();

var source, _i, _len, _ref, _results;
this.outputs = this.options.join ? this.joinSources() : this.sources;

@@ -152,2 +158,3 @@ _ref = this.outputs;

var source, _i, _len, _ref, _results;
_ref = this.outputs;

@@ -167,2 +174,3 @@ _results = [];

_this = this;
if (!this.options.join) {

@@ -192,2 +200,3 @@ _ref = this.sources;

var source, _i, _len, _ref, _results;
if (this.options.join && this.outputs[0].error) {

@@ -211,2 +220,3 @@ source = this.getOriginalSource(this.outputs[0].errorLine);

var source, _i, _len, _ref, _results;
_ref = this.outputs;

@@ -225,2 +235,3 @@ _results = [];

var outputPath, source, _i, _len, _ref, _results;
outputPath = path.join(path.dirname(this.options.output), "" + (path.basename(this.options.output, '.js')) + "_mapsrc");

@@ -241,5 +252,7 @@ _ref = this.sources;

_this = this;
watcher = beholder(inputPath);
watcher.on('change', function(file) {
var source;
source = _this.getSource(file);

@@ -255,4 +268,6 @@ source.read();

var i;
_this.sources = (function() {
var _i, _len, _ref, _results;
_ref = this.sources;

@@ -276,2 +291,3 @@ _results = [];

var offset, source, _i, _len, _ref, _results;
offset = 0;

@@ -290,2 +306,3 @@ _ref = this.sources;

var source, _i, _len, _ref;
_ref = this.sources;

@@ -302,2 +319,3 @@ for (_i = 0, _len = _ref.length; _i < _len; _i++) {

var newMap, source;
source = this.getOriginalSource(map.originalLine - 1);

@@ -319,2 +337,3 @@ return newMap = {

var i, joinSource, joinSrc, _i, _len, _ref;
joinSrc = "";

@@ -334,2 +353,3 @@ _ref = this.sources;

var i, _i, _len, _ref;
_ref = this.sources;

@@ -336,0 +356,0 @@ for (_i = 0, _len = _ref.length; _i < _len; _i++) {

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.6.2
var coffeebar, program;

@@ -10,2 +10,3 @@

var options;
program.version('0.3.2').usage('[options] [path ...]').option('-b, --bare', 'compile without a top-level function wrapper').option('-m, --minify', 'minify output files').option('-M, --map', 'create source maps').option('-o, --output <path>', 'output path').option('-s, --silent', 'suppress console output').option('-w, --watch', 'watch files for changes');

@@ -12,0 +13,0 @@ program.parse(process.argv);

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.6.2
var Source, coffee, fs, mkdirp, path, sourcemap, uglify, xcolor;

@@ -42,2 +42,3 @@

var err;
try {

@@ -61,2 +62,3 @@ this.error = false;

var result;
result = uglify.minify(this.compiled, {

@@ -83,2 +85,3 @@ fromString: true

var outputPath;
outputPath = path.join(base, this.file);

@@ -91,2 +94,3 @@ mkdirp.sync(path.dirname(outputPath));

var mapOutput;
mapOutput = this.outputPath.replace('.js', '.coffee');

@@ -98,2 +102,3 @@ return fs.writeFileSync(mapOutput, this.src, 'utf8');

var commentMap;
map || (map = JSON.stringify(this.sourceMap));

@@ -127,2 +132,3 @@ commentMap = new Buffer(map).toString('base64');

var base, baseDir, baseFragment, baseInputDir, baseOutputDir, dir, fileName;
if (this.outputPath) {

@@ -129,0 +135,0 @@ return;

{
"name": "coffeebar",
"version": "0.3.3",
"version": "0.4.0",
"author": "Charles Moncrief",

@@ -35,6 +35,6 @@ "description": "Simplified CoffeeScript build tool.",

"dependencies": {
"commander": "~2.0.0",
"beholder": "0.1.3",
"commander": "~2.1.0",
"beholder": "0.2.0",
"xcolor": "~0.1.0",
"coffee-script": "~1.6.3",
"coffee-script": "1.7.1",
"uglify-js": "~2.4.2",

@@ -46,6 +46,6 @@ "mkdirp": "~0.3.5",

"devDependencies": {
"mocha": "~1.14.0",
"coffee-script": "1.6.3",
"mocha": "~1.17.1",
"coffee-script": "1.7.1",
"rimraf": "~2.2.2"
}
}

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var i, letters, letters2, numbers, _i, _j, _k, _len, _len1, _len2;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var letters;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var numbers;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -14,2 +14,2 @@ var i, numbers, _i, _len;

//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0L251bWJlcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJudW1iZXJzLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0E7Q0FBQSxLQUFBLGNBQUE7O0NBQUEsQ0FBQSxDQUFVLElBQVY7O0FBRUEsQ0FBQSxNQUFBLHVDQUFBO3FCQUFBO0NBQUEsRUFBQSxDQUFBLEdBQU87Q0FBUCxFQUZBO0NBQUEifQ==
//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0L251bWJlcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJudW1iZXJzLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0E7QUFBQSxNQUFBLG9CQUFBOztBQUFBLEVBQUEsT0FBQSxHQUFVLENBQUMsQ0FBRCxFQUFHLENBQUgsRUFBSyxDQUFMLEVBQU8sQ0FBUCxDQUFWLENBQUE7O0FBRUEsT0FBQSw4Q0FBQTtvQkFBQTtBQUFBLElBQUEsT0FBTyxDQUFDLEdBQVIsQ0FBWSxDQUFaLENBQUEsQ0FBQTtBQUFBLEdBRkE7QUFBQSJ9

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -14,2 +14,2 @@ var i, letters, _i, _len;

//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0L3N1Yi9sZXR0ZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibGV0dGVycy5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0NBQUEsS0FBQSxjQUFBOztDQUFBLENBQUEsQ0FBVSxJQUFWOztBQUVBLENBQUEsTUFBQSx1Q0FBQTtxQkFBQTtDQUFBLEVBQUEsQ0FBQSxHQUFPO0NBQVAsRUFGQTtDQUFBIn0=
//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0L3N1Yi9sZXR0ZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibGV0dGVycy5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQUEsTUFBQSxvQkFBQTs7QUFBQSxFQUFBLE9BQUEsR0FBVSxDQUFDLEdBQUQsRUFBSyxHQUFMLEVBQVMsR0FBVCxFQUFhLEdBQWIsRUFBaUIsR0FBakIsRUFBc0IsR0FBdEIsQ0FBVixDQUFBOztBQUVBLE9BQUEsOENBQUE7b0JBQUE7QUFBQSxJQUFBLE9BQU8sQ0FBQyxHQUFSLENBQVksQ0FBWixDQUFBLENBQUE7QUFBQSxHQUZBO0FBQUEifQ==

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -14,2 +14,2 @@ var i, letters2, _i, _len;

//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0L3N1Yi9zdWJzdWIvbGV0dGVyczIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsZXR0ZXJzMi5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0NBQUEsS0FBQSxlQUFBOztDQUFBLENBQUEsQ0FBVyxLQUFYOztBQUVBLENBQUEsTUFBQSx3Q0FBQTtzQkFBQTtDQUFBLEVBQUEsQ0FBQSxHQUFPO0NBQVAsRUFGQTtDQUFBIn0=
//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0L3N1Yi9zdWJzdWIvbGV0dGVyczIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsZXR0ZXJzMi5jb2ZmZWUiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBO0FBQUEsTUFBQSxxQkFBQTs7QUFBQSxFQUFBLFFBQUEsR0FBVyxDQUFDLEdBQUQsRUFBSyxHQUFMLEVBQVMsR0FBVCxDQUFYLENBQUE7O0FBRUEsT0FBQSwrQ0FBQTtxQkFBQTtBQUFBLElBQUEsT0FBTyxDQUFDLEdBQVIsQ0FBWSxDQUFaLENBQUEsQ0FBQTtBQUFBLEdBRkE7QUFBQSJ9

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -28,2 +28,2 @@ var i, letters, letters2, numbers, _i, _j, _k, _len, _len1, _len2;

//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiam9pbi5qcyIsInNvdXJjZXMiOlsiY29tcGlsZS9udW1iZXJzLmNvZmZlZSIsImNvbXBpbGUvc3ViL2xldHRlcnMuY29mZmVlIiwiY29tcGlsZS9zdWIvc3Vic3ViL2xldHRlcnMyLmNvZmZlZSJdLCJuYW1lcyI6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BQSxPQUFPLENBQUMsR0FBUixDQUFZLENBQVosQ0FBQSxDQUFBO0FBQUEsR0REQTs7QUFBQSxFRURBLFFBQUEsR0FBVyxDQUFDLEdBQUQsRUFBSyxHQUFMLEVBQVMsR0FBVCxDRkNYLENBQUE7O0FFQ0EsT0FBQSxpREFBQTtxQkFBQTtBQUFBLElBQUEsT0FBTyxDQUFDLEdBQVIsQ0FBWSxDQUFaLENBQUEsQ0FBQTtBQUFBLEdGREE7QUFBQSIsInNvdXJjZVJvb3QiOiJqb2luX21hcHNyYyJ9

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -14,2 +14,2 @@ var i, letters, _i, _len;

//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV0dGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxldHRlcnMuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtDQUFBLEtBQUEsY0FBQTs7Q0FBQSxDQUFBLENBQVUsSUFBVjs7QUFFQSxDQUFBLE1BQUEsdUNBQUE7cUJBQUE7Q0FBQSxFQUFBLENBQUEsR0FBTztDQUFQLEVBRkE7Q0FBQSJ9
//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV0dGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxldHRlcnMuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtBQUFBLE1BQUEsb0JBQUE7O0FBQUEsRUFBQSxPQUFBLEdBQVUsQ0FBQyxHQUFELEVBQUssR0FBTCxFQUFTLEdBQVQsRUFBYSxHQUFiLEVBQWlCLEdBQWpCLEVBQXNCLEdBQXRCLENBQVYsQ0FBQTs7QUFFQSxPQUFBLDhDQUFBO29CQUFBO0FBQUEsSUFBQSxPQUFPLENBQUMsR0FBUixDQUFZLENBQVosQ0FBQSxDQUFBO0FBQUEsR0FGQTtBQUFBIn0=

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var i, numbers, _i, _len;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var i, letters, _i, _len;

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -3,0 +3,0 @@ var i, letters2, _i, _len;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc