tempest-framework
tempest-framework copied to clipboard
Improvements for/issues noted in composer create-project tempest/app
Tempest version
1.6
PHP version
8.4
Operating system
macOS
Description
Just doing a fresh project on my MacBook for a clean environment and noted a few bits with the composer create-project tempest-app that could be improved
- Wrong path in autoload-dev tests, and also hardcoded to show Brent as the author
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/",
"Tests\\Tempest\\": "vendor/brendt/tempest/tests/" // << issue here
}
},
"authors": [
{
"name": "Brent Roose",
"email": "[email protected]"
}
- (Improvement) Perhaps a good idea to have the create project flow ask a couple of questions i.e.
What is the name of your project? (mytempest/app):
What is the Author name? (An Author):
What is the Author email? ([email protected]):
- Error message due to missing root-version attribute, granted it's explained on the composer site for newbies and I haven't created my local git repo yet, hence the error. Perhaps the create project flow should also offer to git init? Just thinking about new-to-Tempest onboarding.
Composer could not detect the root package (tempest/app) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
- The default require in the composer.json is ^1.2
"require": {
"tempest/framework": "^1.2"
},
Could CI/CD update this to the newest package automatically?
- The included
.env/.env.examplesets the defaultbase_uritohttp://localhostbutphp tempest serveserves on:8000by default.
Steps to reproduce
composer create-project tempest-app and inspect composer.json