arboleya / coffee-toaster

Minimalist build system for CoffeeScript.
114 stars 23 forks source link

Feature Request: toaster via argument specified toaster file #22

Closed cif closed 12 years ago

cif commented 12 years ago

First of all, this is the best thing I've found in a long time. The expose approach is epic. Scoping has always been tough with ECMA languages and see no point to things like User = require('models/user') or template = require('views/templates/whatever.eco') found in frameworks like brunch.io and spine.js ... It's all in one file, just scope/namespace, looks like finally someone agrees.

Anyway, I'm integrating coffee-toaster into a client side development framework that also compiles stylus into a single application.css file as well as precompiles handlebars.js templates into a single templates.js via three watch commands executed at once.

My feature request is a command line argument to specify a different toaster.coffee file which I could use to concatenate different vendor files and change my export destination. For example, if I'm building a mobile version I would want to toast Zepto instead of jQuery, wouldn't need many web-only vendor libs, as well as output to mobile.js instead of application.js.

I won't be writing much of the mobile version of my current app until this fall, so no rush at all and of course I could alwasy not be lazy and work in another directory.

Thanks so much for all the hard work so far!

arboleya commented 12 years ago

Hi, good to know its being useful for a few ones. :)

I'm working on some changes, i'll let you know as soon as I release some fresh code.

Thank you for the words and suggestion.

arboleya commented 12 years ago

Hi, I just released the 0.6.0 version.

Check advanced usage and API possibilities:

https://github.com/serpentem/coffee-toaster#advanced-options https://github.com/serpentem/coffee-toaster#api

Introspection example: https://github.com/serpentem/coffee-toaster/tree/master/examples/introspection

Let me know if you find some problem.

cif commented 12 years ago

New features are awesome, keep up the great work! :)