You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer
I expect to update GOV.UK frontend frequently
To pick up fixes and improvements to the design system components
Value / Purpose
Currently we haven't automated frontend builds, so when dependabot detects there are new versions, it's not enough to merge the PR, we also need to perform some steps manually:
Run an npm install
Copy the javascript from node modules to the assets directory
Run npm sass to recompile CSS from SASS
This could be simplified if we
Adopt a build tool
Build the asset as part of our docker build
This would mean we can merge updates to GOV.UK frontend as they come in and they would be tested in CI and reflected in the next deployment.
Useful Contacts
Mat
User Types
Developers
Hypothesis
If we make it easier to update our Javascript and CSS dependencies
Then we will do a better job at keeping them up to date
Proposal
Pick a build tool and integrate it into the repo.
The build tool could be a frontend focused tool like webpack, something simple like a Makefile, or something more geared towards Django development.
Have a look at some of our other django repos and see how this is done there.
Additional Information
No response
Definition of Done
There is one command to build all frontend assets (pull in dependencies, stick them somewhere Django's asset pipeline can pull from)
The command is documented in our readme
The command is run as part of building the docker image
The command is run as part of CI
The text was updated successfully, but these errors were encountered:
User Story
As a developer
I expect to update GOV.UK frontend frequently
To pick up fixes and improvements to the design system components
Value / Purpose
Currently we haven't automated frontend builds, so when dependabot detects there are new versions, it's not enough to merge the PR, we also need to perform some steps manually:
This could be simplified if we
This would mean we can merge updates to GOV.UK frontend as they come in and they would be tested in CI and reflected in the next deployment.
Useful Contacts
Mat
User Types
Developers
Hypothesis
If we make it easier to update our Javascript and CSS dependencies
Then we will do a better job at keeping them up to date
Proposal
Pick a build tool and integrate it into the repo.
The build tool could be a frontend focused tool like webpack, something simple like a Makefile, or something more geared towards Django development.
Have a look at some of our other django repos and see how this is done there.
Additional Information
No response
Definition of Done
The text was updated successfully, but these errors were encountered: