Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert sidecar data files from JSON to YAML #5

Open
EvanLovely opened this issue May 11, 2016 · 2 comments
Open

Convert sidecar data files from JSON to YAML #5

EvanLovely opened this issue May 11, 2016 · 2 comments
Assignees

Comments

@EvanLovely
Copy link
Contributor

Let's move over to this format!

@EvanLovely
Copy link
Contributor Author

This npm utility would be very helpful and we could use this command to convert:

json2yaml --recursive --save --depth 4 source/_patterns/

Give special attention to patterns using the Data Transform plugin, perhaps leaving them in JSON if needed. The goal isn't total conversion, just highlighting a different way we can do the data files.

Also, the extension .yml doesn't work, only .yaml does. I've made an issue for that: pattern-lab/patternlab-php-core#25

@EvanLovely
Copy link
Contributor Author

OK, that PR's been merged and we can now use yml instead of yaml! Let's use the shorter as that's what Drupal uses and also PL's own config/config.yml.

Relevant PR: #15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants