tempest-framework icon indicating copy to clipboard operation
tempest-framework copied to clipboard

Improvements for/issues noted in composer create-project tempest/app

Open iamdadmin opened this issue 5 months ago • 0 comments

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

  1. 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]"
        }
  1. (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]):
  1. 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
  1. 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?

  1. The included .env/.env.example sets the default base_uri to http://localhost but php tempest serve serves on :8000 by default.

Steps to reproduce

composer create-project tempest-app and inspect composer.json

iamdadmin avatar Aug 09 '25 07:08 iamdadmin