Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* update Coffee compiller to current and rebuild lib

  • Loading branch information...
commit a020c57d7102fd21b2d89894770488ac1900f97f 1 parent ffde88a
@Meettya authored
View
28 lib/app.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.4.0
+// Generated by CoffeeScript 1.6.1
/*
This is main entry point for Clinch - API and setting here
@@ -22,8 +22,8 @@ This is main entry point for Clinch - API and setting here
}
/*
- This method create browser package with given configuration
- actually its just proxy all to packer
+ This method create browser package with given configuration
+ actually its just proxy all to packer
*/
@@ -34,7 +34,7 @@ This is main entry point for Clinch - API and setting here
};
/*
- This method force flush cache
+ This method force flush cache
*/
@@ -45,7 +45,7 @@ This is main entry point for Clinch - API and setting here
};
/*
- This method add third party file processor to Clinch
+ This method add third party file processor to Clinch
*/
@@ -63,7 +63,7 @@ This is main entry point for Clinch - API and setting here
};
/*
- This internal method used to configure components in DiC
+ This internal method used to configure components in DiC
*/
@@ -71,11 +71,11 @@ This is main entry point for Clinch - API and setting here
var jade, log, packer_settings, setting_name, _i, _len, _ref;
log = !!this._options_.log;
/*
- set jade compiler settings for jade.compile()
- jade =
- pretty : on
- self : on
- compileDebug : off
+ set jade compiler settings for jade.compile()
+ jade =
+ pretty : on
+ self : on
+ compileDebug : off
*/
if (jade = this._options_.jade) {
@@ -87,9 +87,9 @@ This is main entry point for Clinch - API and setting here
});
}
/*
- set packer settings
- strict : on
- inject : on
+ set packer settings
+ strict : on
+ inject : on
*/
packer_settings = {
View
34 lib/bundle_processor.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.4.0
+// Generated by CoffeeScript 1.6.1
/*
This class process raw data parts from Gatherer:
@@ -30,7 +30,7 @@ This class process raw data parts from Gatherer:
}
/*
- This META-method bulid package and process it in one touch
+ This META-method bulid package and process it in one touch
*/
@@ -45,14 +45,14 @@ This class process raw data parts from Gatherer:
};
/*
- BENCHMARK IMPROVE!!!
- On simply test data I got about 97% of time in this method and 3% at all other
- So, to speed up all process we are need to cache THIS part - buldRawPackageData
+ BENCHMARK IMPROVE!!!
+ On simply test data I got about 97% of time in this method and 3% at all other
+ So, to speed up all process we are need to cache THIS part - buldRawPackageData
*/
/*
- This method will build raw package data
+ This method will build raw package data
*/
@@ -79,8 +79,8 @@ This class process raw data parts from Gatherer:
};
/*
- This method replace filtered dependencies in raw data to 'replacement' content
- Yes, sync - nothing async here
+ This method replace filtered dependencies in raw data to 'replacement' content
+ Yes, sync - nothing async here
*/
@@ -118,7 +118,7 @@ This class process raw data parts from Gatherer:
};
/*
- This method join bundle sets to flat structure
+ This method join bundle sets to flat structure
*/
@@ -152,10 +152,10 @@ This class process raw data parts from Gatherer:
};
/*
- This method will change all filepaths to it hashes.
- Its for squize names AND may reduce some items in sources,
- in case one code placed in diffenrent places - it may happened
- for modules in node_modules folders - they have theyown dependencies
+ This method will change all filepaths to it hashes.
+ Its for squize names AND may reduce some items in sources,
+ in case one code placed in diffenrent places - it may happened
+ for modules in node_modules folders - they have theyown dependencies
*/
@@ -189,7 +189,7 @@ This class process raw data parts from Gatherer:
};
/*
- This method compile raw 'bundle' set with source, dep_trees and names
+ This method compile raw 'bundle' set with source, dep_trees and names
*/
@@ -215,9 +215,9 @@ This class process raw data parts from Gatherer:
};
/*
- This method build two pre-fired Gatherers:
- strict (for bundle and environment) and liberal (for replacement)
- Just shorten call + now we are may have ONE gather for all
+ This method build two pre-fired Gatherers:
+ strict (for bundle and environment) and liberal (for replacement)
+ Just shorten call + now we are may have ONE gather for all
*/
View
30 lib/di_container.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.4.0
+// Generated by CoffeeScript 1.6.1
/*
This is DI Container for Clinch - its make available DI and simplify configuration.
@@ -31,9 +31,9 @@ This is DI Container for Clinch - its make available DI and simplify configurati
}
/*
- This method simple setter for components settings
- its wipe out old values
- chainable
+ This method simple setter for components settings
+ its wipe out old values
+ chainable
*/
@@ -53,9 +53,9 @@ This is DI Container for Clinch - its make available DI and simplify configurati
};
/*
- This method add some deep settings to components settings
- only overwrite old deep settings, but not all key
- chainable
+ This method add some deep settings to components settings
+ only overwrite old deep settings, but not all key
+ chainable
*/
@@ -88,8 +88,8 @@ This is DI Container for Clinch - its make available DI and simplify configurati
};
/*
- This method return component by it name
- may recursive resolve dependencies
+ This method return component by it name
+ may recursive resolve dependencies
*/
@@ -112,9 +112,9 @@ This is DI Container for Clinch - its make available DI and simplify configurati
};
/*
- This internal method to flush all objects cache
- used if settings changed
- YES, its copy-paste, but we are MUST to declare all object properties in constructor
+ This internal method to flush all objects cache
+ used if settings changed
+ YES, its copy-paste, but we are MUST to declare all object properties in constructor
*/
@@ -127,8 +127,8 @@ This is DI Container for Clinch - its make available DI and simplify configurati
};
/*
- This internal method to check is uppercased name exists in @_component_settings_
- return uppercased name or throw error
+ This internal method to check is uppercased name exists in @_component_settings_
+ return uppercased name or throw error
*/
@@ -142,7 +142,7 @@ This is DI Container for Clinch - its make available DI and simplify configurati
};
/*
- Internal initor to reduce constructor
+ Internal initor to reduce constructor
*/
View
22 lib/file_processor.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.4.0
+// Generated by CoffeeScript 1.6.1
/*
This class compile and load files
@@ -50,7 +50,7 @@ This class compile and load files
}
/*
- This method load one file and, if it needed, compile it
+ This method load one file and, if it needed, compile it
*/
@@ -78,7 +78,7 @@ This class compile and load files
});
/*
- This method generate digest for file content
+ This method generate digest for file content
*/
@@ -98,7 +98,7 @@ This class compile and load files
});
/*
- This method return supported extentions
+ This method return supported extentions
*/
@@ -107,10 +107,10 @@ This class compile and load files
};
/*
- This method from node.js lib/module
- // Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
- // because the buffer-to-string conversion in `fs.readFileSync()`
- // translates it to FEFF, the UTF-16 BOM.
+ This method from node.js lib/module
+ // Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
+ // because the buffer-to-string conversion in `fs.readFileSync()`
+ // translates it to FEFF, the UTF-16 BOM.
*/
@@ -123,7 +123,7 @@ This class compile and load files
};
/*
- This internal method for Jade settings
+ This internal method for Jade settings
*/
@@ -141,8 +141,8 @@ This class compile and load files
};
/*
- This is Async compilers list.
- @return - error, data, isRealCode (ie. may have 'require' and should to be processed)
+ This is Async compilers list.
+ @return - error, data, isRealCode (ie. may have 'require' and should to be processed)
*/
View
74 lib/gatherer.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.4.0
+// Generated by CoffeeScript 1.6.1
/*
This class build whole codebase for path
@@ -15,7 +15,7 @@ This class build whole codebase for path
(function() {
var AsyncCache, Gatherer, LRU, Resolver, async, detective, fs, path, util, _,
- __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
+ _this = this,
__slice = [].slice;
fs = require('fs');
@@ -42,15 +42,25 @@ This class build whole codebase for path
MAX_AGE = 1000 * 60 * 60 * 10;
function Gatherer(_file_processor_, _options_) {
- var _ref;
+ var _ref,
+ _this = this;
this._file_processor_ = _file_processor_;
this._options_ = _options_ != null ? _options_ : {};
- this._dependenciesTreeSaver = __bind(this._dependenciesTreeSaver, this);
-
- this._findRequiresAndAddToQueue = __bind(this._findRequiresAndAddToQueue, this);
-
- this._queueFn = __bind(this._queueFn, this);
-
+ this._dependenciesTreeSaver = function(_arg) {
+ var pack_cache, parent, path_name, real_file_name;
+ path_name = _arg.path_name, parent = _arg.parent, real_file_name = _arg.real_file_name, pack_cache = _arg.pack_cache;
+ return Gatherer.prototype._dependenciesTreeSaver.apply(_this, arguments);
+ };
+ this._findRequiresAndAddToQueue = function(_arg) {
+ var data, may_have_reqire, pack_cache, path_name, real_file_name;
+ may_have_reqire = _arg.may_have_reqire, data = _arg.data, real_file_name = _arg.real_file_name, path_name = _arg.path_name, pack_cache = _arg.pack_cache;
+ return Gatherer.prototype._findRequiresAndAddToQueue.apply(_this, arguments);
+ };
+ this._queueFn = function(_arg, queue_cb) {
+ var pack_cache, parent, path_name;
+ path_name = _arg.path_name, parent = _arg.parent, pack_cache = _arg.pack_cache;
+ return Gatherer.prototype._queueFn.apply(_this, arguments);
+ };
this._pathfinder_ = new Resolver();
(_ref = this._pathfinder_).addExtensions.apply(_ref, this._file_processor_.getSupportedFileExtentions());
this._loader_cache_ = this._buildLoaderCache();
@@ -61,7 +71,7 @@ This class build whole codebase for path
}
/*
- This method reset all caches
+ This method reset all caches
*/
@@ -72,7 +82,7 @@ This class build whole codebase for path
};
/*
- This is Async version of packer
+ This is Async version of packer
*/
@@ -118,8 +128,8 @@ This class build whole codebase for path
};
/*
- Oh!
- Many things here, but its price of async code
+ Oh!
+ Many things here, but its price of async code
*/
@@ -173,8 +183,8 @@ This class build whole codebase for path
};
/*
- This internal method for loaders cache, to slow get it from disk
- YES, it will be needed to implement cache invalidator :(
+ This internal method for loaders cache, to slow get it from disk
+ YES, it will be needed to implement cache invalidator :(
*/
@@ -190,8 +200,8 @@ This class build whole codebase for path
};
/*
- This is converter for ensure filter is Array
- @arg may be one value or Array
+ This is converter for ensure filter is Array
+ @arg may be one value or Array
*/
@@ -202,8 +212,8 @@ This class build whole codebase for path
};
/*
- This method get data and meta from cache with cache validation
- At now try to use re-calculated file hash
+ This method get data and meta from cache with cache validation
+ At now try to use re-calculated file hash
*/
@@ -230,9 +240,9 @@ This class build whole codebase for path
};
/*
- This method searching for requires, its just stub.
- later I re-write it to class
- to substitute detective with my own logic and acorn
+ This method searching for requires, its just stub.
+ later I re-write it to class
+ to substitute detective with my own logic and acorn
*/
@@ -241,8 +251,8 @@ This class build whole codebase for path
};
/*
- This method find requires in files, if they need it and
- add to queue new files for recurse working
+ This method find requires in files, if they need it and
+ add to queue new files for recurse working
*/
@@ -267,7 +277,7 @@ This class build whole codebase for path
};
/*
- This method get content and meta for filename
+ This method get content and meta for filename
*/
@@ -284,8 +294,8 @@ This class build whole codebase for path
};
/*
- This part-method handle save to tree
- if file exists or unnided - return false
+ This part-method handle save to tree
+ if file exists or unnided - return false
*/
@@ -309,8 +319,8 @@ This class build whole codebase for path
};
/*
- This method save data
- void return
+ This method save data
+ void return
*/
@@ -325,9 +335,9 @@ This class build whole codebase for path
};
/*
- This is proceed filter
- return 'true' if file MUST be processed,
- ie it filename NOT in list - it will be processed
+ This is proceed filter
+ return 'true' if file MUST be processed,
+ ie it filename NOT in list - it will be processed
*/
View
14 lib/packer.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.4.0
+// Generated by CoffeeScript 1.6.1
/*
This class pack all together with layout
@@ -30,7 +30,7 @@ This class pack all together with layout
}
/*
- This method create browser package with given cofiguration
+ This method create browser package with given cofiguration
*/
@@ -45,7 +45,7 @@ This class pack all together with layout
};
/*
- This method assemble result .js file from bundleset
+ This method assemble result .js file from bundleset
*/
@@ -81,8 +81,8 @@ This class pack all together with layout
};
/*
- This method build "environment" - local for package variables
- They immitate node.js internal gobal things (like process.nextTick, f.e.)
+ This method build "environment" - local for package variables
+ They immitate node.js internal gobal things (like process.nextTick, f.e.)
*/
@@ -99,7 +99,7 @@ This class pack all together with layout
};
/*
- This is header for our browser package
+ This is header for our browser package
*/
@@ -108,7 +108,7 @@ This class pack all together with layout
};
/*
- This is footer of code wrapper
+ This is footer of code wrapper
*/
View
2  package.json
@@ -21,7 +21,7 @@
"author": "Dmitrii Karpich <meettya@gmail.com>",
"license": "MIT",
"dependencies": {
- "coffee-script": ">=1.3.3",
+ "coffee-script": "*",
"lodash": "*",
"async-resolve": "*",
"eco": "*",

0 comments on commit a020c57

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