Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rowellx68/spike-govuk-to-nhsuk-transformer
https://github.com/rowellx68/spike-govuk-to-nhsuk-transformer
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rowellx68/spike-govuk-to-nhsuk-transformer
- Owner: rowellx68
- Created: 2024-06-15T10:55:15.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-15T20:26:11.000Z (7 months ago)
- Last Synced: 2024-12-06T22:21:22.659Z (21 days ago)
- Language: TypeScript
- Size: 304 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GOVUK to NHSUK Frontend
This is a quick spike to show how you can use code transformers to convert GOVUK frontend.
It is using `postcss` to convert the SCSS files into its Abstract Syntax Tree (AST) and then updating and adding values.
## Assumptions
- we are copying the GOVUK frontend and replacing all occurrences of `govuk` with `nhsuk`
## How to run
```bash
pnpm installpnpm build
```The script should output the processed files in the `nhsuk-frontend` directory. You should be able to restore the dependencies of the `nhsuk-frontend` and run the project.
Here's a preview of what the button will look like:
![Button](./assets/button.png)