Wrap all CoffeScript files in a JQuery document ready function after concatenation?
问题 I have a number of CoffeeScript files which I concatenate using a Cakefile before converting to Javascript. How do I wrap the concatenated CoffeScript file with a JQuery on document ready function? For example: I have the following CoffeScript files each containing a Class: foo.coffee bar.coffee tea.coffee To produce the JS file I use the following Cake command to concatente the coffee and produce the JS: task 'build', 'Build single application file from source files', -> appContents = new