This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have coffeescript files in an mvc3 project structured like this:
I added a "Compiled.js" file, and in the options set it to minify, and open the 'Imports' page. However, none of the files in the folders above appears as options. How can I add these to the minified compiled script? |
|
|
We don't show output files in the Imports list because we assume that you will be combining or minifying them at the source level. The build you have may not offer CoffeeScript combining; if not, just grab the latest nightly build and you will be able to combine your CoffeeScript files at source, i.e. create a |
|
|
I just bumped into this issue as well (tested on latest nightly). I have a project that's a mix of javascript (old) and coffeescript (new). I want to make an "all.js" that minifies everything. I did notice that some of the generated .js files are appearing in the import dialog. 3 old coffeescript files generate .js files recognized as importable via my "all.js" placeholder. Recently added .coffee files compiled to .js do not show up, however. |
|
|
Ah, we hadn't thought of needing to merge standalone JavaScript files with CoffeeScript files. I've added an option to the file import dialog to 'show generated files.' This will allow you to select files that were generated by Web Workbench and include them for minification. So now if you have an 'all.js' or 'compiled.js' file you will be able to select both 'standalone' JavaScript files (as you can currently do) and the .js files created by Web Workbench from .coffee files. This will be included in the next nightly build, available from about 1200 GMT (see the FAQ sticky for info about downloading and installing nightly builds). |
|
|
I came looking for this question and there it was right at the top of the list! The reason this is super helpful is that I have all my custom site code in CoffeeScript and then jQuery and a whole bunch of random plugins in standard JavaScript and I'd like to merge them all together. I'll check out the latest daily. I have bootstrap building and merging with all my site CSS now - great work on that guys! |
|