From c1dde16b199498b3a2c10ac92c288485e084e71d Mon Sep 17 00:00:00 2001 From: Justus Perlwitz Date: Thu, 6 Mar 2025 09:26:01 +0900 Subject: [PATCH 1/3] Add release helper script --- bin/prepare-release | 54 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100755 bin/prepare-release diff --git a/bin/prepare-release b/bin/prepare-release new file mode 100755 index 000000000..50ca81ebe --- /dev/null +++ b/bin/prepare-release @@ -0,0 +1,54 @@ +#!/usr/bin/env sh +# SPDX-FileCopyrightText: 2025 JWP Consulting GK +# +# SPDX-License-Identifier: AGPL-3.0-or-later +# Prepare a new version to be release +set -e +version="$(date "+%Y.%-m.%-d")" +echo "Version: $version" + +BACKEND_PYPROJECT_TOML="backend/pyproject.toml" +FRONTEND_DIR="frontend" +FRONTEND_PACKAGE_JSON="$FRONTEND_DIR/package.json" +FRONTEND_LOCK_FILE="$FRONTEND_DIR/package-lock.json" + +next_cmd=$(printf 'sed -E -i -e "s/^version = ".+"$/version = \\"%s\\"/" "%s"' \ + "$version" \ + "$BACKEND_PYPROJECT_TOML" +) +printf "About to run %s\nContinue? (c-c to exit)" "$next_cmd" +read -r _ +eval "$next_cmd" + +tmp_package="$(mktemp)" +next_cmd=$(printf 'jq --indent 4 ".version = \\"%s\\"" "%s" > "%s" && mv "%s" "%s"' \ + "$version" \ + "$FRONTEND_PACKAGE_JSON" \ + "$tmp_package" \ + "$tmp_package" \ + "$FRONTEND_PACKAGE_JSON" +) +printf "About to update run %s\nContinue? (c-c to exit)" "$next_cmd" +read -r _ +eval "$next_cmd" + +echo "Updating lock file for $FRONTEND_PACKAGE_JSON" +prevd="$PWD" +cd "$FRONTEND_DIR" +npm install +cd "$prevd" + +next_cmd=$(printf "git add %s %s %s" "$BACKEND_PYPROJECT_TOML" "$FRONTEND_PACKAGE_JSON" "$FRONTEND_LOCK_FILE") +printf "about to run %s\nContinue? (c-c to exit)" "$next_cmd" +read -r _ +eval "$next_cmd" + +next_cmd=$(printf 'git commit -m \"Set Projectify version to %s\"' "$version") +printf "about to run %s\nContinue? (c-c to exit)" "$next_cmd" +read -r _ +eval "$next_cmd" + +next_cmd=$(printf 'git tag %s' "$version") +printf "about to run %s\nContinue? (c-c to exit)" "$next_cmd" +read -r _ +eval "$next_cmd" From e13a1d10efc2794149acce3e029842739fd8c0bd Mon Sep 17 00:00:00 2001 From: Justus Perlwitz Date: Thu, 6 Mar 2025 09:29:53 +0900 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d61d2de2..565ea81f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,21 @@ # Changelog +## 2025.3.6 + +### Fixed + +- Updated outdated dependencies in frontend and backend + +### Internal + +- Started frontend rewrite in Django + ## 2024.8.20 ### Fixed From adf3b8cc0aa11869a7709b4880a31f8de036bfdd Mon Sep 17 00:00:00 2001 From: Justus Perlwitz Date: Thu, 6 Mar 2025 09:30:26 +0900 Subject: [PATCH 3/3] Set Projectify version to 2025.3.6 --- backend/pyproject.toml | 2 +- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 4a747f8dd..28bda8ec2 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -4,7 +4,7 @@ [tool.poetry] name = "projectify" -version = "2024.8.20" +version = "2025.3.6" description = "Projectify Backend" maintainers = ["Justus Perlwitz "] authors = ["The Projectify Authors"] diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 122cf759e..ac29040f0 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "projectify-frontend", - "version": "2024.8.20", + "version": "2025.3.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "projectify-frontend", - "version": "2024.8.20", + "version": "2025.3.6", "dependencies": { "@anephenix/sarus": "~0.5", "@poppanator/sveltekit-svg": "~4.2.1", diff --git a/frontend/package.json b/frontend/package.json index 70e825bc1..d63641d9e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "projectify-frontend", - "version": "2024.8.20", + "version": "2025.3.6", "scripts": { "build": "vite build", "check": "run-p --max-parallel 4 check:*",