wilr / grunt-shopify

Grunt plug-in for publishing Shopify theme assets
BSD 3-Clause "New" or "Revised" License
107 stars 32 forks source link

Wait until other processing is done #2

Closed linssen closed 11 years ago

linssen commented 11 years ago

Works really well until you need to compile some CoffeeScript or SASS. The problem then is that it only uploads the original file that was altered not the eventually compiled version.

Something you're thinking about?

wilr commented 11 years ago

True. Hadn't tested or documented behaviour with other tasks but could you configure the shopify regarde watcher to watch your output CSS files changes (rather than the source scss files..) Something like..

regarde: { coffee: { files: ['coffeescript/.coffee'], tasks: 'coffee' } shopify: { files: ["js/.js"], tasks: ["shopify"], events: true, spawn: true }

linssen commented 11 years ago

We'll put this one down to me being a damned fool. Works perfectly. I've left the old watch command intact and regarded the results of that.

:blush:

wilr commented 11 years ago

Documented how to set it up in 5c457dd.