diff --git a/CHANGELOG.md b/CHANGELOG.md index 589ef83..23a1d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Twigpack Changelog +## 1.2.18 - UNRELEASED +### Added +* Add `phpstan` and `ecs` code linting +* Add `code-analysis.yaml` GitHub action + +### Changed +* Updated docs to use node 20 & a new sitemap plugin +* PHPstan code cleanup +* ECS code cleanup + ## 1.2.17 - 2022.04.26 ### Changed * Don't log the full exception on a Guzzle error, just log the message diff --git a/composer.json b/composer.json index b2035a4..f19d8cd 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "nystudio107/craft-twigpack", "description": "Twigpack is a bridge between Twig and webpack, with manifest.json & webpack-dev-server HMR support", "type": "craft-plugin", - "version": "1.2.17", + "version": "1.2.18", "keywords": [ "craftcms", "craft-plugin", @@ -26,6 +26,24 @@ "require": { "craftcms/cms": "^3.0.0" }, + "require-dev": { + "craftcms/ecs": "dev-main", + "craftcms/phpstan": "dev-main", + "craftcms/rector": "dev-main" + }, + "scripts": { + "phpstan": "phpstan --ansi --memory-limit=1G", + "check-cs": "ecs check --ansi", + "fix-cs": "ecs check --fix --ansi" + }, + "config": { + "allow-plugins": { + "craftcms/plugin-installer": true, + "yiisoft/yii2-composer": true + }, + "optimize-autoloader": true, + "sort-packages": true + }, "autoload": { "psr-4": { "nystudio107\\twigpack\\": "src/"