Skip to content

Commit 2cb9e78

Browse files
authored
Move rector to tools (#5)
1 parent 9cd7f79 commit 2cb9e78

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

files/tools/rector/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"rector/rector": "^2.3.4"
4+
}
5+
}

src/changes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
$new['config']['allow-plugins']['bamarni/composer-bin-plugin'] = true;
6363

6464
// Rector
65-
$new['require-dev']['rector/rector'] ??= '^2.3.0';
6665
$new['scripts']['rector'] = 'rector';
6766

6867
// PHP CS Fixer
@@ -105,6 +104,7 @@
105104
new Bsd3ClauseLicense('Sergei Predvoditelev'),
106105
),
107106
new CopyFile($files . '/.editorconfig', '.editorconfig'),
107+
new CopyFileIfNotExists($files . '/tools/rector/composer.json', 'tools/rector/composer.json'),
108108
new PrepareRectorConfiguration(),
109109
'readme' => [
110110
new PrepareReadme(),

tools/rector/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require-dev": {
3+
"rector/rector": "^2.3.4"
4+
}
5+
}

0 commit comments

Comments
 (0)