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

Rename annotations.js to annotations.json #836

Closed
henk23 opened this issue Apr 3, 2018 · 2 comments
Closed

Rename annotations.js to annotations.json #836

henk23 opened this issue Apr 3, 2018 · 2 comments

Comments

@henk23
Copy link

henk23 commented Apr 3, 2018

It's a json file, so why does it have a js file ending?
My IDE complains about corrupted js syntax and I think it is right about it.
What am I not seeing here?

@bmuenzenmeyer
Copy link
Member

bmuenzenmeyer commented Apr 3, 2018

@henk23 it's a good question!

what you aren't seeing is the support for the legacy Pattern Lab annotations file - which was a js file WITH js in it, instead of simpler JSON/YML. Seems it's undergone half the needed changes, but was perhaps never finished due to concern for cross-platform support. Since core is in 3.0 alpha anyways, it'd be smart to fix this once and for all, which will make the code simpler too!

@bmuenzenmeyer
Copy link
Member

fixed

mfranzke added a commit to mfranzke/patternlab-node that referenced this issue Jan 2, 2022
JosefBredereck added a commit that referenced this issue Jan 29, 2022
* refactor: corrected annotations.js to annotations.json

* refactor(annotations): allow .json extension on annotations file #836

* refactor: corrected annotations.js to annotations.json

* feat(annotations): added at least annotation to the sample content

* chore: added another annotations example

* refactor(docs): corrected the filetype in the docs as well

* docs(annotations): added further details

* refactor: removed this file again for the moment

* refactor: renamed this file (after the latest merge)

* refactor: migrated that file as well

Co-authored-by: Josef Bredreck <13408112+JosefBredereck@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants