batchMode will force stream() to return the Gulp stream immediately.
In this mode you can subscribe to done and error to be notified when all tasks have ended.
Passing theme_id is optional if you have already passed it to the instance's configuration on init(). However if used it will override the pre-exisiting theme_id. If no theme_id is present an error is thrown.
shopifytheme.purge()
This will delete all theme files from Shopify. Equivalent to going to the Shopify Admin and deleting each file by hand (eww!).
Use with caution, of course.
.purge() honours a blacklist of _un_deletable files (e.g. layout/theme.liquid)
The plugin instance emits two events done and error at the end of a sync task queue.
On done the event handler receives the list of files that have successfully synced.
On error the handler is passed whatever error was thrown in the process.
请发表评论