Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Project generation from build file #13

Open
eliashaeussler opened this issue Jun 27, 2022 · 1 comment
Open

[FEATURE] Project generation from build file #13

eliashaeussler opened this issue Jun 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@eliashaeussler
Copy link
Member

eliashaeussler commented Jun 27, 2022

Is your feature request related to a problem?

Sometimes it's not possible to interactively walk through the project build process, e.g. when creating projects as part of an automatic build process.

Describe the solution you'd like

It should be made possible to walk through the project build process by using a preconfigured build configuration. This can be

  • a file identified by a fixed filename
  • or a file identified with an environment variable.

This file must contain the pre-evaluated user-interactions, configured for each (interactive) step. Additionally, all properties must be pre-configured.

Example configuration:

template: typo3-cms-bundle

steps:
  # mirrorProcessedFiles
  4:
    interactions:
      confirmOverwrite: true

properties:
  project:
    customer_name: 'My fancy customer'
    project_name: 'My fancy project'
  packages:
    typo3_cms: '11.5'
    # ...

Example execution:

export PROJECT_BUILDER_RUN_CONFIG=/path/to/run-config.yaml
composer create-project cpsit/project-builder /path/to/target/dir

Describe alternatives you've considered

No response

Additional context

Side note: Non-interactive project builds are currently forbidden, see https://github.com/CPS-IT/project-builder/blob/0.1.7/src/Bootstrap.php#L189-L193.

@eliashaeussler eliashaeussler added the enhancement New feature or request label Jun 27, 2022
@eliashaeussler eliashaeussler self-assigned this Jun 27, 2022
@eliashaeussler eliashaeussler removed their assignment Feb 3, 2023
@eliashaeussler
Copy link
Member Author

A similar feature is available within https://github.com/ramsey/php-library-starter-kit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant