Open ahosgood opened 2 years ago
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.
macro-options.json
fixtures.json
YAML: https://github.com/alphagov/govuk-frontend/blob/v4.3.1/src/govuk/components/header/header.yaml
Resultant files:
Maybe use something like https://www.npmjs.com/package/yaml to parse the YAML as part of a Node script?
GOV.UK frontend uses YAML files to detail their components and then generate the necessary
macro-options.json
andfixtures.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: