Themekit: Prevent specific files from being removed

Solved
marm_alex
Tourist
11 1 5

Hello everyone,

 

I'm currently working on a project where multiple shops will use the same theme. Now, as I'm working on that theme I just discovered that the Themekit does the following, according to the documentation :

Any files that are in the connected Shopify store, but aren't on your local disk, will be removed from Shopify. 

I understand the idea behind that but it causes me some trouble. The reason: In these shops custom templates for collections will be used a lot. So the clients create new collection templates using the Shopify page editor. Then these custom files for the templates will be put into the `templates` folder.

 

As I don't have these files in my theme, after every deployment command they are removed. Unless I don't put these files into my theme (which would be a mess because, as I mentioned, lots of shops will use this theme) I don't see how I can work on the theme, deploy changes into the shops and prevent the custom template files from being removed.

 

Am I overseeing something here or does someone has an idea how I can achieve this?

Accepted Solution (1)
marm_alex
Tourist
11 1 5

This is an accepted solution.

This topic can be closed. The solution was to use the `ignore_files` option of the Themekit.

View solution in original post

Reply 1 (1)
marm_alex
Tourist
11 1 5

This is an accepted solution.

This topic can be closed. The solution was to use the `ignore_files` option of the Themekit.