From 10e75c117c3ca92e9bab0cd68ec2ab3b5600fa8a Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Fri, 28 Jul 2023 16:51:49 +0100 Subject: [PATCH 1/2] Add README for stats package --- shared/stats/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 shared/stats/README.md diff --git a/shared/stats/README.md b/shared/stats/README.md new file mode 100644 index 0000000000..0de9c0b294 --- /dev/null +++ b/shared/stats/README.md @@ -0,0 +1,9 @@ +# GOV.UK Frontend stats + +This package is used to generate Rollup visualizer stats for built GOV.UK Frontend modules. + +```shell +npm run build:stats --workspace govuk-frontend +``` + +Stats are shown in the review app [deployed to Heroku](https://govuk-frontend-review.herokuapp.com) or when run locally using `npm start`. From 70aede2d08c81945eee7588c4e0af533ba4dd310 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Fri, 28 Jul 2023 16:52:25 +0100 Subject: [PATCH 2/2] Add instructions for installing a previous version --- shared/stats/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shared/stats/README.md b/shared/stats/README.md index 0de9c0b294..c134fa6966 100644 --- a/shared/stats/README.md +++ b/shared/stats/README.md @@ -7,3 +7,11 @@ npm run build:stats --workspace govuk-frontend ``` Stats are shown in the review app [deployed to Heroku](https://govuk-frontend-review.herokuapp.com) or when run locally using `npm start`. + +## Stats for previous version + +GOV.UK Frontend is resolved from [./packages/govuk-frontend](../../packages/govuk-frontend/) unless a previous version is installed locally: + +```shell +npm install govuk-frontend@4.7.0 --save --workspace govuk-frontend-stats +```