Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Themekit: Prevent specific files from being removed

Solved

Themekit: Prevent specific files from being removed

marm_alex
Tourist
11 1 6

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 6

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 6

This is an accepted solution.

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