arboleya / coffee-toaster

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

Add dependencies for vendor scripts #40

Closed BernhardPosselt closed 12 years ago

BernhardPosselt commented 12 years ago

Some vendorscripts like http://alexgorbatchev.com/SyntaxHighlighter/ provide multiple scripts (yea i know theres the autoloader script :)) that depend on chronological inclusion. It would be great if there was a way to define these dependencies or at least order concat the vendors in numerical order.

arboleya commented 12 years ago

Hi,

The vendors array inside the toaster.coffee file are always ordered and you can have as much vendors as you want.

It's not dependencies as you said in the title, but just an ordered list with your vendors code. So in case your vender file is composed of more than one file, you'll have to specify them all.

Let me know if you're still having issues with this workflow.

toast 'srcfolder''
  vendors: ['js/vendor1/a.js', 'js/vendor1/b.js', 'js/vendor1/c.js']