1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Moving the 'generated by coffeescript version X' comment to the bottom, to get it out of the way

This commit is contained in:
Jeremy Ashkenas 2013-02-02 10:42:46 +11:00
parent 78891a0ccc
commit b31cc70235
15 changed files with 32 additions and 19 deletions

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var CoffeeScript, runScripts;
@ -90,3 +89,5 @@
}
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var CoffeeScript, cakefileDirectory, existsSync, fatalError, fs, helpers, missingTask, oparse, options, optparse, path, printTasks, switches, tasks;
@ -111,3 +110,5 @@
};
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var Lexer, compile, ext, extensions, fs, lexer, loadFile, parser, path, vm, _i, _len,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
@ -37,7 +36,7 @@
exports.helpers = require('./helpers');
exports.compile = compile = function(code, options) {
var header, js, merge;
var footer, js, merge;
if (options == null) {
options = {};
}
@ -53,8 +52,8 @@
}
throw err;
}
header = "Generated by CoffeeScript " + this.VERSION;
return "// " + header + "\n" + js;
footer = "Generated by CoffeeScript " + this.VERSION;
return "" + js + "\n// " + footer + "\n";
};
exports.tokens = function(code, options) {
@ -168,3 +167,5 @@
parser.yy = require('./nodes');
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var BANNER, CoffeeScript, EventEmitter, SWITCHES, coffee_exts, compileJoin, compileOptions, compilePath, compileScript, compileStdio, exec, exists, forkNode, fs, helpers, hidden, joinTimeout, lint, notSources, optionParser, optparse, opts, outputPath, parseOptions, path, printLine, printTokens, printWarn, removeSource, sourceCode, sources, spawn, timeLog, unwatchDir, usage, version, wait, watch, watchDir, watchers, writeJs, _ref,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
@ -492,3 +491,5 @@
};
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var Parser, alt, alternatives, grammar, name, o, operators, token, tokens, unwrap;
@ -610,3 +609,5 @@
});
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var extend, flatten, _ref;
@ -86,3 +85,5 @@
};
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var key, val, _ref;
@ -9,3 +8,5 @@
}
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var BOM, BOOL, CALLABLE, CODE, COFFEE_ALIASES, COFFEE_ALIAS_MAP, COFFEE_KEYWORDS, COMMENT, COMPARE, COMPOUND_ASSIGN, HEREDOC, HEREDOC_ILLEGAL, HEREDOC_INDENT, HEREGEX, HEREGEX_OMIT, IDENTIFIER, INDEXABLE, INVERSES, JSTOKEN, JS_FORBIDDEN, JS_KEYWORDS, LINE_BREAK, LINE_CONTINUER, LITERATE, LOGIC, Lexer, MATH, MULTILINER, MULTI_DENT, NOT_REGEX, NOT_SPACED_REGEX, NUMBER, OPERATOR, REGEX, RELATION, RESERVED, Rewriter, SHIFT, SIMPLESTR, STRICT_PROSCRIBED, TRAILING_SPACES, UNARY, WHITESPACE, compact, count, key, last, starts, _ref, _ref1,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
@ -816,3 +815,5 @@
LINE_BREAK = ['INDENT', 'OUTDENT', 'TERMINATOR'];
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var Access, Arr, Assign, Base, Block, Call, Class, Closure, Code, Comment, Existence, Extends, For, IDENTIFIER, IDENTIFIER_STR, IS_STRING, If, In, Index, LEVEL_ACCESS, LEVEL_COND, LEVEL_LIST, LEVEL_OP, LEVEL_PAREN, LEVEL_TOP, Literal, METHOD_DEF, NEGATE, NO, Obj, Op, Param, Parens, RESERVED, Range, Return, SIMPLENUM, STRICT_PROSCRIBED, Scope, Slice, Splat, Switch, TAB, THIS, Throw, Try, UTILITIES, Value, While, YES, compact, del, ends, extend, flatten, last, merge, multident, some, starts, unfoldSoak, utility, _ref, _ref1,
__hasProp = {}.hasOwnProperty,
@ -2990,3 +2989,5 @@
};
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var LONG_FLAG, MULTI_FLAG, OPTIONAL, OptionParser, SHORT_FLAG, buildRule, buildRules, normalizeArguments;
@ -136,3 +135,5 @@
};
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var CoffeeScript, addMultilineHandler, merge, nodeREPL, replDefaults, vm;
@ -102,3 +101,5 @@
};
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var BALANCED_PAIRS, EXPRESSION_CLOSE, EXPRESSION_END, EXPRESSION_START, IMPLICIT_BLOCK, IMPLICIT_CALL, IMPLICIT_END, IMPLICIT_FUNC, IMPLICIT_UNSPACED_CALL, INVERSES, LINEBREAKS, SINGLE_CLOSERS, SINGLE_LINERS, left, rite, _i, _len, _ref,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },
@ -349,3 +348,5 @@
LINEBREAKS = ['TERMINATOR', 'INDENT', 'OUTDENT'];
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -1,4 +1,3 @@
// Generated by CoffeeScript 1.5.0-pre
(function() {
var Scope, extend, last, _ref;
@ -144,3 +143,5 @@
})();
}).call(this);
// Generated by CoffeeScript 1.5.0-pre

View file

@ -41,8 +41,8 @@ exports.compile = compile = (code, options = {}) ->
catch err
err.message = "In #{options.filename}, #{err.message}" if options.filename
throw err
header = "Generated by CoffeeScript #{@VERSION}"
"// #{header}\n#{js}"
footer = "Generated by CoffeeScript #{@VERSION}"
"#{js}\n// #{footer}\n"
# Tokenize a string of CoffeeScript code, and return the array of tokens.
exports.tokens = (code, options) ->

View file

@ -15,7 +15,7 @@ test "--bare", ->
test "header (#1778)", ->
header = "// Generated by CoffeeScript #{CoffeeScript.VERSION}\n"
eq 0, CoffeeScript.compile('x = y', header: on).indexOf header
ok CoffeeScript.compile('x = y', header: on).indexOf(header) >= 0
test "header is disabled by default", ->
header = "// Generated by CoffeeScript #{CoffeeScript.VERSION}\n"