Skip to content

Commit

Permalink
Release 0.6.0 for GOV.UK Frontend v5.2.0 and GOV.UK Frontend Jinja 3.…
Browse files Browse the repository at this point in the history
…0.0 (#40)

* Update example project

* Bump version to 0.6.0

* Update the example project npm package

* Run upgrade-example-project on upgrade!

---------

Co-authored-by: Cameron Lamb <[email protected]>
  • Loading branch information
github-actions[bot] and CamLamb authored Jun 17, 2024
1 parent e199a59 commit 0008647
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Below is a list of the versions of this package and the versions of the GOV.UK F

| Package Version | GOV.UK Frontend Version |
| --------------- | ----------------------- |
| [0.6.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.6.0) - [0.6.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.6.0) | [v5.2.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.2.0) |
| [0.5.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.5.0) - [0.5.1](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.5.1) | [v5.1.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.1.0) |
| [0.4.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.4.0) - [0.4.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.4.0) | [v4.7.0](https://github.com/alphagov/govuk-frontend/releases/tag/v4.7.0) |
| [0.3.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.3.0) - [0.3.9](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.3.9) | [v4.6.0](https://github.com/alphagov/govuk-frontend/releases/tag/v4.6.0) |
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Below is a list of the versions of this package and the versions of the GOV.UK F

| Package Version | GOV.UK Frontend Version |
| --------------- | ----------------------- |
| [0.6.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.6.0) - [0.6.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.6.0) | [v5.2.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.2.0) |
| [0.5.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.5.0) - [0.5.1](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.5.1) | [v5.1.0](https://github.com/alphagov/govuk-frontend/releases/tag/v5.1.0) |
| [0.4.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.4.0) - [0.4.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.4.0) | [v4.7.0](https://github.com/alphagov/govuk-frontend/releases/tag/v4.7.0) |
| [0.3.0](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.3.0) - [0.3.9](https://github.com/uktrade/govuk-frontend-django/releases/tag/0.3.9) | [v4.6.0](https://github.com/alphagov/govuk-frontend/releases/tag/v4.6.0) |
Expand Down
8 changes: 4 additions & 4 deletions example_project/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example_project/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"dependencies": {
"govuk-frontend": "5.1.0",
"govuk-frontend": "^5.2.0",
"sass": "^1.63.6"
},
"scripts": {
"build": "sass --load-path=./ --quiet-deps --style=compressed static/css/styles.scss static/css/styles.css",
"watch": "sass --load-path=./ --quiet-deps --style=compressed static/css/styles.scss static/css/styles.css --watch"
}
}
}
2 changes: 1 addition & 1 deletion example_project/static/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example_project/static/css/styles.css.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ serve-docs:
get-latest-release-tag:
@gh release list -R $(REPO) | grep "Latest" | awk -F '\t' '{for(i=2; i<=NF; i++) {if($$i~/v?[0-9]+\.[0-9]+\.[0-9]+/) {print $$i; exit}}}'

GOVUK_FRONTEND_VERSION = "v4.7.0"
GOVUK_FRONTEND_JINJA_VERSION = "2.7.0"
GOVUK_FRONTEND_VERSION = "v5.2.0"
GOVUK_FRONTEND_JINJA_VERSION = "3.0.0"

generate-components:
poetry run python scripts/generate_components.py $(GOVUK_FRONTEND_VERSION)
Expand All @@ -17,6 +17,9 @@ generate-components:
clear-generated-components:
find govuk_frontend_django/components ! -name '__init__.py' ! -name 'base.py' -type f -exec rm -rf {} +

upgrade-example-project:
cd example_project && npm install govuk-frontend@$(GOVUK_FRONTEND_VERSION)

upgrade-components:
echo "Upgrading components with"
echo "GOV.UK Frontend: $(GOVUK_FRONTEND_VERSION)"
Expand All @@ -25,6 +28,7 @@ upgrade-components:
poetry add govuk_frontend_jinja==$(GOVUK_FRONTEND_JINJA_VERSION)
make clear-generated-components
make generate-components GOVUK_FRONTEND_VERSION=$(GOVUK_FRONTEND_VERSION)
make upgrade-example-project GOVUK_FRONTEND_VERSION=$(GOVUK_FRONTEND_VERSION)

# Example project

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "govuk-frontend-django"
version = "0.5.1"
version = "0.6.0"
description = "Django functionality to help when building a GOV.UK website."
authors = [
"DBT Live Service Team <[email protected]>",
Expand Down

0 comments on commit 0008647

Please sign in to comment.