wilr / grunt-shopify

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

added a way to selectively upload and delete files from shopify #40

Closed marius-cojocariu closed 10 years ago

marius-cojocariu commented 10 years ago

The upload/delete functionality relies on the watch event and does not integrate well with other tasks (such as copying files from another directory to the shopify theme (through grunt-contrib-copy), less compiling, image compressions and other).

I have added the shopifyupload and shopifydelete multi tasks that take as src config parameter the lists of files for upload/deletion. This config can further be changed on the watch event, which is triggered before tasks are being executed (this is the recommended way of tinkering with the watch tasks, as per grunt-contrib-watch documentation). This setup is more compatible and integrates better (although not ideal) with other tasks.

marius-cojocariu commented 10 years ago

I implemented the workflow a different way and I'm using the default now. These things are nice to have anyway, maybe I'll have the time to fix the issues.

Sorry for the noise.