-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from eliashaeussler/task/separate-cgl
[TASK] Separate CGL tools from root composer.json
- Loading branch information
Showing
24 changed files
with
8,826 additions
and
3,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
## Description: Run CGL script for the package files | ||
## Usage: cgl [command] [options] | ||
## Example: ddev cgl lint\nddev cgl fix\nddev cgl migration\nddev cgl sca\nddev cgl lint:composer\nddev cgl fix:composer | ||
|
||
composer -d /var/www/html/Tests/CGL "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
## Description: Run tests for the package files | ||
## Usage: test [command] [options] | ||
## Example: ddev test\nddev test functional\nddev test unit | ||
|
||
if [ $# -ge 1 ]; then | ||
script="test:${1}" | ||
shift | ||
else | ||
script="test" | ||
fi | ||
|
||
composer -d /var/www/html "${script}" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/vendor | ||
/.php-cs-fixer.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ | |
; | ||
|
||
$finder = $config->getFinder() | ||
->in(__DIR__) | ||
->in(dirname(__DIR__, 2)) | ||
->ignoreVCSignored(true) | ||
; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"require-dev": { | ||
"armin/editorconfig-cli": "^1.5 || ^2.0", | ||
"eliashaeussler/phpstan-config": "^2.0", | ||
"eliashaeussler/rector-config": "^3.0", | ||
"ergebnis/composer-normalize": "^2.29", | ||
"phpstan/extension-installer": "^1.2", | ||
"phpstan/phpstan-symfony": "^1.2", | ||
"saschaegerer/phpstan-typo3": "^1.8", | ||
"typo3/coding-standards": "^0.8.0@dev" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"ergebnis/composer-normalize": true, | ||
"phpstan/extension-installer": true, | ||
"typo3/class-alias-loader": false, | ||
"typo3/cms-composer-installers": false | ||
}, | ||
"sort-packages": true | ||
}, | ||
"scripts": { | ||
"fix": [ | ||
"@fix:composer", | ||
"@fix:editorconfig", | ||
"@fix:php" | ||
], | ||
"fix:composer": [ | ||
"@composer normalize", | ||
"@composer normalize ../../composer.json", | ||
"@composer normalize ../../Resources/Private/Libs/Build/composer.json", | ||
"@composer normalize ../Functional/Fixtures/Extensions/middleware_bridge/composer.json" | ||
], | ||
"fix:editorconfig": "@lint:editorconfig --fix", | ||
"fix:php": "php-cs-fixer fix", | ||
"lint": [ | ||
"@lint:composer", | ||
"@lint:editorconfig", | ||
"@lint:php" | ||
], | ||
"lint:composer": "@fix:composer --dry-run", | ||
"lint:editorconfig": "ec --finder-config .editorconfig-lint.php", | ||
"lint:php": "@fix:php --dry-run", | ||
"migration": [ | ||
"@migration:rector" | ||
], | ||
"migration:rector": "rector process", | ||
"sca": [ | ||
"@sca:php" | ||
], | ||
"sca:php": "phpstan analyse -c phpstan.php" | ||
} | ||
} |
Oops, something went wrong.