Skip to content

Commit

Permalink
refactor(core-parser): replace nikic/PHP-Parser with PhpToken class
Browse files Browse the repository at this point in the history
- discard nikic/PHP-Parser to prevent dependency conflicts with other tools
- create PhpParser class using PhpToken::tokenize() method
- update releaserc to trigger releases for refactoring
- upgrade all dependencies to latest
  • Loading branch information
yassinedoghri committed Oct 7, 2024
1 parent 22b2e44 commit 04a3254
Show file tree
Hide file tree
Showing 8 changed files with 671 additions and 538 deletions.
71 changes: 69 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,75 @@
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "docs",
"scope": "README",
"release": "patch"
},
{
"type": "refactor",
"scope": "core-*",
"release": "minor"
},
{
"type": "refactor",
"release": "patch"
}
],
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
}
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
},
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Internal",
"hidden": false
},
{
"type": "refactor",
"section": "Internal",
"hidden": false
},
{
"type": "perf",
"section": "Internal",
"hidden": false
}
]
}
}
],
"@semantic-release/changelog",
[
"@semantic-release/exec",
Expand Down
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,16 @@
"require": {
"php": ">=8.1",
"composer-runtime-api": "^2.2",
"adhocore/cli": "^1.7.2",
"nikic/php-parser": "^4.19.2"
"adhocore/cli": "^1.7.2"
},
"require-dev": {
"kint-php/kint": "^5.1.1",
"phpstan/phpstan": "^1.12.4",
"rector/rector": "^1.2.5",
"phpstan/phpstan": "^1.12.6",
"rector/rector": "^1.2.6",
"symplify/coding-standard": "^12.2.3",
"symplify/easy-coding-standard": "^12.3.5",
"pestphp/pest": "^2.35.1",
"pestphp/pest-plugin-type-coverage": "^2.8.6"
"symplify/easy-coding-standard": "^12.3.6",
"pestphp/pest": "^3.3.0",
"pestphp/pest-plugin-type-coverage": "^3.1.0"
},
"autoload": {
"files": [
Expand Down
Loading

0 comments on commit 04a3254

Please sign in to comment.