Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
Remove the data/shopify_liquid/(tags|filters|objects).yml files (#674)
Browse files Browse the repository at this point in the history
### WHY are these changes introduced?

Fixes #656 

### WHAT is this pull request doing?

- Removes the usage of `data/shopify_liquid/tags.yml`, `data/shopify_liquid/filters.yml`, `data/shopify_liquid/objects.yml` in favor of the `SourceIndex`, which holds the most updated values for objects, filters, and tags.
- Transforms remaining `.yml` files to `.json` files, so that we only have 1 format.
- Adds some logic for existing objects, filters, tags, so that it resembles the existing `.yml` files content.
  • Loading branch information
Julien Poitrin authored Dec 15, 2022
1 parent 2328269 commit 0cf59c8
Show file tree
Hide file tree
Showing 20 changed files with 156 additions and 381 deletions.
22 changes: 22 additions & 0 deletions data/shopify_liquid/deprecated_filters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"Liquid::ColorFilter": {
"hex_to_rgba": [
"color_to_rgb",
"color_modify"
]
},
"Liquid::UrlFilter": {
"img_url": [
"image_url"
],
"img_tag": [
"image_tag"
],
"collection_img_url": [
"img_url"
],
"product_img_url": [
"img_url"
]
}
}
14 changes: 0 additions & 14 deletions data/shopify_liquid/deprecated_filters.yml

This file was deleted.

211 changes: 0 additions & 211 deletions data/shopify_liquid/filters.yml

This file was deleted.

84 changes: 0 additions & 84 deletions data/shopify_liquid/objects.yml

This file was deleted.

15 changes: 15 additions & 0 deletions data/shopify_liquid/plus_labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
"alternative_payment_methods",
"breadcrumb",
"checkout_html_classes",
"checkout_scripts",
"checkout_stylesheets",
"content_for_footer",
"content_for_logo",
"content_for_order_summary",
"direction",
"locale",
"order_summary_toggle",
"skip_to_content_link",
"tracking_code"
]
15 changes: 0 additions & 15 deletions data/shopify_liquid/plus_objects.yml

This file was deleted.

30 changes: 0 additions & 30 deletions data/shopify_liquid/tags.yml

This file was deleted.

Loading

0 comments on commit 0cf59c8

Please sign in to comment.