wilr / grunt-shopify

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

Suggestion: Ignore settings_data.json setting #67

Closed QuintinS closed 7 years ago

QuintinS commented 7 years ago

A suggestion: A setting in the gruntfile that ignores the settings_data.json and doesn't upload it to the site if changes to it are detected.

I see there is an option for this on the upload command, but don't see a similar setting for the watch command.

wilr commented 7 years ago

You can use the upload_patterns filter to exclude this. Haven't tested it myself but using globbing patterns in grunt you can exclude the file.

upload_patterns: ['assets/*.*','config/*.*','layout/*.*','locales/*.*','snippets/*.*','templates/*.*','templates/customers/*.*', '!settings_data.json']

Let me know if that doesn't work any I'll set a flag but I'd prefer this approach.