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

Add Installer Script #7

Closed
kevinfodness opened this issue Jun 23, 2023 · 1 comment · Fixed by #46
Closed

Add Installer Script #7

kevinfodness opened this issue Jun 23, 2023 · 1 comment · Fixed by #46
Assignees
Labels
enhancement New feature or request shell Requires understanding shell scripting

Comments

@kevinfodness
Copy link
Member

kevinfodness commented Jun 23, 2023

User Story

As a developer, I want to be able to initialize a new project based on create-wordpress-project by running a script and answering questions, which results in preconfiguration of the repo based on my preferences.

Acceptance Criteria

  • Add an installer script similar to the one used on create-wordpress-plugin which asks the user questions, such as whether this project will be run on VIP or Pantheon, what the project namespace and name should be, who the author is, and then performs an automated installation that will:
    • Perform an automatic installation of create-wordpress-plugin without the need for further user input (all option values pre-configured), error out if the chosen directory name already exists
    • Perform an automatic installation of create-wordpress-theme, error out if the chosen directory name already exists
    • Run a find-replace for strings relating to create-wordpress-project, create-wordpress-plugin, create-wordpress-theme and update them as necessary
    • Run composer setup to install PHP and JS dependencies and run an initial build
    • Ask about what CI systems are being used and only preserve files necessary for those CI systems (GitHub Actions vs. Buddy, taking into account the chosen hosting platform, e.g., if Pantheon and GitHub Actions, include autodeploy action for Pantheon)
    • Clean up after itself (delete CI config files that aren't part of what was requested to be preserved, remove the installer script itself)
@kevinfodness kevinfodness added the enhancement New feature or request label Jun 23, 2023
@jakewrfoster jakewrfoster self-assigned this Sep 6, 2023
@benpbolton
Copy link
Member

See related: #23

@kevinfodness kevinfodness added the shell Requires understanding shell scripting label Oct 18, 2023
@srtfisher srtfisher self-assigned this Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request shell Requires understanding shell scripting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants