arboleya / coffee-toaster

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

Changing order of import directives #53

Closed kraftwer1 closed 11 years ago

kraftwer1 commented 11 years ago

First of all, thanks for that great tool!

Question: Could it be that changing the order of directives requires a restart of coffee-toaster?

arboleya commented 11 years ago

Hi, I'm afraid I didn't understand what you mean.

You're having a problem? With what?

Please, can you clarify the situation a little bit?

Thanks

kraftwer1 commented 11 years ago

Okay, let's make an example. I have two import directives: # << models/* # << controllers/*

But the result is: document.write('<scri'+'pt src="/toaster/controllers/application_controller.js"></scr'+'ipt>') document.write('<scri'+'pt src="/toaster/controllers/post_controller.js"></scr'+'ipt>') document.write('<scri'+'pt src="/toaster/model/application_controller.js"></scr'+'ipt>')

What's wrong?

arboleya commented 11 years ago

Hi, you need to use #<< desired/path or #<< models/* in your example. :)

More info here: https://github.com/serpentem/coffee-toaster#import-directive

kraftwer1 commented 11 years ago

I had one whitespace too much. Thank you!

arboleya commented 11 years ago

You're welcome.