Add @shopify/slate-snippets-plugin.#1015
Conversation
|
Thanks a lot Dan. Have you somehow manage to delete/ignore original snippets subfolders ending in the dist? Thanks again <3 |
|
Hey @cjayyy, I didn't find a solution for that, unfortunately. Ultimately, we ended up dropping this internally as it was actually a bit of a pain to use (besides the duplicated files and errors). For example when doing It's actually slightly counter-intuitive when trying to find the file. When searching for Happy for someone else to pick this up, and I can help contribute to that, but it's not something I will actively be continuing with, unfortunately. |
|
Thanks for the response @dan-gamble! So you adapted to the original Slate structure and you have all the snippets on one level or you found out another way? |
What are you trying to accomplish with this PR?
I will preface this by saying this is super super bare bones at the moment. No tests, no README.md just the working source code. I'm just wanting to get a feel to see if this would be wanted, if so i'll add all the relevant pieces (as well as i can) otherwise i'll just using it locally extending my slate.config.js.
This is a plugin heavily influenced by the Sections Plugin.
It's a pretty simple plugin that adds the ability to have folders within the snippets folder like:
They get turned in to
[folder-name]-[file-name].liquidon build.You can still use snippets as per normal not in folders.
Oustanding issues
I appreciate Slate is on Low Maintenance but any feedback on this would be highly appreciated. Even if it's just a +1 from anyone's Shopify's end to let me know to carry on and flesh this out 🤙
Please provide a link to the associated GitHub issue.
#781
Checklist
For contributors:
For maintainers: