Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
match/app/composer.json
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
85 lines (80 sloc)
3.87 KB
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
{ | |
"name": "cakephp/app", | |
"description": "CakePHP skeleton app", | |
"homepage": "https://cakephp.org", | |
"type": "project", | |
"license": "MIT", | |
"require": { | |
"php": ">=7.3", | |
"cakephp/cakephp": "^4.4", | |
"cakephp/migrations": "^3.2", | |
"cakephp/plugin-installer": "^1.3", | |
"components/jquery": "~3.7", | |
"doctrine/dbal": "^3.3", | |
"mobiledetect/mobiledetectlib": "^2.8", | |
"twbs/bootstrap": "^5.1" | |
}, | |
"require-dev": { | |
"cakephp/bake": "^2.6", | |
"cakephp/repl": "^0.1", | |
"cakephp/cakephp-codesniffer": "^4.5", | |
"cakephp/debug_kit": "^4.5", | |
"josegonzalez/dotenv": "^3.2", | |
"phpstan/phpstan": "^0.12.99", | |
"phpunit/phpunit": "~8.5.0 || ^9.3" | |
}, | |
"suggest": { | |
"markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.", | |
"dereuromark/cakephp-ide-helper": "After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan/Psalm compatibility.", | |
"phpstan/phpstan": "PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code." | |
}, | |
"autoload": { | |
"psr-4": { | |
"App\\": "src/" | |
} | |
}, | |
"autoload-dev": { | |
"psr-4": { | |
"App\\Test\\": "tests/", | |
"Cake\\Test\\": "vendor/cakephp/cakephp/tests/" | |
} | |
}, | |
"scripts": { | |
"post-install-cmd": [ | |
"App\\Console\\Installer::postInstall", | |
"php -r \"if(!is_dir('webroot/js/jquery/')) { mkdir('webroot/js/jquery/', 0755, true); }\"", | |
"php -r \"if(!is_dir('webroot/js/bootstrap/')) { mkdir('webroot/js/bootstrap/', 0755, true); }\"", | |
"php -r \"if(!is_dir('webroot/css/bootstrap/')) { mkdir('webroot/css/bootstrap/', 0755, true); }\"", | |
"php -r \"copy('vendor/components/jquery/jquery.min.js', 'webroot/js/jquery/jquery.min.js');\"", | |
"php -r \"copy('vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js', 'webroot/js/bootstrap/bootstrap.bundle.min.js');\"", | |
"php -r \"copy('vendor/twbs/bootstrap/dist/css/bootstrap.min.css', 'webroot/css/bootstrap/bootstrap.min.css');\"", | |
"php -r \"copy('vendor/twbs/bootstrap/dist/css/bootstrap.min.css.map', 'webroot/css/bootstrap/bootstrap.min.css.map');\"" | |
], | |
"post-update-cmd": [ | |
"php -r \"if(!is_dir('webroot/js/jquery/')) { mkdir('webroot/js/jquery/', 0755, true); }\"", | |
"php -r \"if(!is_dir('webroot/js/bootstrap/')) { mkdir('webroot/js/bootstrap/', 0755, true); }\"", | |
"php -r \"if(!is_dir('webroot/css/bootstrap/')) { mkdir('webroot/css/bootstrap/', 0755, true); }\"", | |
"php -r \"copy('vendor/components/jquery/jquery.min.js', 'webroot/js/jquery/jquery.min.js');\"", | |
"php -r \"copy('vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js', 'webroot/js/bootstrap/bootstrap.bundle.min.js');\"", | |
"php -r \"copy('vendor/twbs/bootstrap/dist/css/bootstrap.min.css', 'webroot/css/bootstrap/bootstrap.min.css');\"", | |
"php -r \"copy('vendor/twbs/bootstrap/dist/css/bootstrap.min.css.map', 'webroot/css/bootstrap/bootstrap.min.css.map');\"" | |
], | |
"post-create-project-cmd": "App\\Console\\Installer::postInstall", | |
"check": [ | |
"@test", | |
"@cs-check" | |
], | |
"cs-check": "phpcs --colors -p src/ tests/", | |
"cs-fix": "phpcbf --colors -p src/ tests/", | |
"stan": "phpstan analyse", | |
"test": "phpunit --colors=always" | |
}, | |
"prefer-stable": true, | |
"config": { | |
"sort-packages": true, | |
"allow-plugins": { | |
"dealerdirect/phpcodesniffer-composer-installer": true, | |
"cakephp/plugin-installer": true | |
} | |
} | |
} |