Browse files

Remove lib from gitignore.

  • Loading branch information...
1 parent 361a872 commit b0a5ad0399062f6c634b9d19b2888f15de41fd83 @paulmillr paulmillr committed Apr 7, 2013
Showing with 55 additions and 1 deletion.
  1. +0 −1 .gitignore
  2. +55 −0 lib/index.js
View
1 .gitignore
@@ -2,5 +2,4 @@
*.bak
.DS_Store
npm-debug.log
-lib/
node_modules/
View
55 lib/index.js
@@ -0,0 +1,55 @@
+// Generated by CoffeeScript 1.6.2
+(function() {
+ var CoffeeScriptCompiler, coffeescript, normalizeChecker;
+
+ coffeescript = require('coffee-script');
+
+ normalizeChecker = function(item) {
+ switch (toString.call(item)) {
+ case '[object RegExp]':
+ return function(string) {
+ return item.test(string);
+ };
+ case '[object Function]':
+ return item;
+ default:
+ return function() {
+ return false;
+ };
+ }
+ };
+
+ module.exports = CoffeeScriptCompiler = (function() {
+ CoffeeScriptCompiler.prototype.brunchPlugin = true;
+
+ CoffeeScriptCompiler.prototype.type = 'javascript';
+
+ CoffeeScriptCompiler.prototype.extension = 'coffee';
+
+ function CoffeeScriptCompiler(config) {
+ this.config = config;
+ return;
+ }
+
+ CoffeeScriptCompiler.prototype.compile = function(data, path, callback) {
+ var bare, err, error, normalizedVendor, result, _ref, _ref1;
+
+ try {
+ normalizedVendor = normalizeChecker((_ref = this.config) != null ? (_ref1 = _ref.conventions) != null ? _ref1.vendor : void 0 : void 0);
+ bare = !normalizedVendor(path);
+ return result = coffeescript.compile(data, {
+ bare: bare
+ });
+ } catch (_error) {
+ err = _error;
+ return error = err;
+ } finally {
+ callback(error, result);
+ }
+ };
+
+ return CoffeeScriptCompiler;
+
+ })();
+
+}).call(this);

0 comments on commit b0a5ad0

Please sign in to comment.