Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ BUNDLE_NAME := $(subst @patternslib/,,$(subst @plone/,,$(PACKAGE_NAME)))
pnpm-lock.yaml install: .git/hooks/commit-msg
$(PNPM) install

# Update dependencies
# Update pnpm version and project dependencies individually and create 3 separate commits.
# Don't fail if nothing needs a commit.
.PHONY: update
update:
@if ! git diff --quiet -- package.json || ! git diff --cached --quiet -- package.json; then \
echo "Warning: package.json has uncommitted changes. Commit or stash them before running make update." >&2; \
exit 1; \
fi
$(PNPM) self-update
-git commit package.json -m"maint: Update pnpm."
$(PNPM) update --latest --interactive
-git commit package.json -m"maint: Update dependencies."
-git commit pnpm-lock.yaml -m"pnpm-lock.yaml: Update." -n

.git/hooks/commit-msg:
echo "npx commitlint --edit" > .git/hooks/commit-msg
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This repository includes base files which are extended in Patternslib, Mockup or

It includes a Makefile which helps in installing and releasing packages.

## Updating dependencies

Run `make update` to update the dependencies in this or your dependent project.

## Upgrading

Run `make upgrade` in your project.
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@
"version": "4.3.0",
"description": "Development base files for working with Patternslib and add-ons.",
"license": "MIT",
"packageManager": "pnpm@12.3.4",
"packageManager": "pnpm@12.16.1",
"dependencies": {
"@babel/core": "^8.0.6",
"@babel/preset-env": "^8.0.6",
"@commitlint/cli": "^21.2.3",
"@commitlint/config-conventional": "^21.2.3",
"@babel/core": "^8.0.9",
"@babel/preset-env": "^8.0.7",
"@commitlint/cli": "^21.2.4",
"@commitlint/config-conventional": "^21.2.4",
"@eslint/js": "^10.0.1",
"@release-it/conventional-changelog": "^12.0.2",
"babel-loader": "^10.1.1",
"css-loader": "^7.1.5",
"eslint": "^10.11.0",
"eslint": "^10.13.0",
"eslint-config-prettier": "^10.1.8",
"globals": "^17.12.0",
"globals": "^17.13.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^30.5.2",
"jest-environment-jsdom": "^30.5.2",
"jest-watch-typeahead": "^3.0.1",
"prettier": "^3.9.8",
"prettier": "^3.9.10",
"regenerator-runtime": "^0.14.1",
"release-it": "^21.1.0",
"sass": "^1.104.1",
"sass-loader": "^17.0.1",
"release-it": "^21.1.1",
"sass": "^1.106.1",
"sass-loader": "^17.1.0",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "^5.6.1",
"timezone-mock": "^1.4.3",
"webpack": "^5.111.1",
"webpack": "^5.112.2",
"webpack-bundle-analyzer": "^5.4.0",
"webpack-cli": "^7.2.3",
"webpack-dev-server": "^6.0.0",
"webpack-dev-server": "^6.1.0",
"whybundled": "^2.0.0"
},
"engines": {
Expand Down
Loading
Loading