Skip to content

Commit

Permalink
merging jcoglan's splat declaration patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Mar 12, 2011
2 parents b785585 + b9343b4 commit 963adb5
Show file tree
Hide file tree
Showing 22 changed files with 485 additions and 214 deletions.
7 changes: 4 additions & 3 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,16 @@ task 'build:browser', 'rebuild the merged script for inclusion in the browser',
#{fs.readFileSync "lib/#{name}.js"}
};
"""
{parser, uglify} = require 'uglify-js'
ast = parser.parse """
code = """
this.CoffeeScript = function() {
function require(path){ return require[path]; }
#{code}
return require['./coffee-script']
}()
"""
code = uglify.gen_code uglify.ast_squeeze uglify.ast_mangle ast, extra: yes
unless process.env.MINIFY is 'false'
{parser, uglify} = require 'uglify-js'
code = uglify.gen_code uglify.ast_squeeze uglify.ast_mangle parser.parse code
fs.writeFileSync 'extras/coffee-script.js', header + '\n' + code
console.log "built ... running browser tests:"
invoke 'test:browser'
Expand Down
2 changes: 1 addition & 1 deletion lib/coffee-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
return compile(content);
});
}
exports.VERSION = '1.0.2-pre';
exports.VERSION = '1.1.0-pre';
exports.RESERVED = RESERVED;
exports.helpers = require('./helpers');
exports.compile = compile = function(code, options) {
Expand Down
2 changes: 1 addition & 1 deletion lib/command.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 16 additions & 11 deletions lib/grammar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 14 additions & 9 deletions lib/lexer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 61 additions & 17 deletions lib/nodes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 963adb5

Please sign in to comment.