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

Generate macro-options.json and fixtures.json from YAML #4

Open
ahosgood opened this issue Sep 1, 2022 · 1 comment
Open

Generate macro-options.json and fixtures.json from YAML #4

ahosgood opened this issue Sep 1, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ahosgood
Copy link
Contributor

ahosgood commented Sep 1, 2022

GOV.UK frontend uses YAML files to detail their components and then generate the necessary macro-options.json and fixtures.json for each component from those files.

YAML: https://github.com/alphagov/govuk-frontend/blob/v4.3.1/src/govuk/components/header/header.yaml

Resultant files:

@ahosgood
Copy link
Contributor Author

Maybe use something like https://www.npmjs.com/package/yaml to parse the YAML as part of a Node script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant