Skip to content

Issue-144: Remove files after install #168

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

Merged
merged 3 commits into from
Jun 5, 2025

Conversation

benpbolton
Copy link
Contributor

@benpbolton benpbolton commented May 28, 2025

Summary

Fixes #144

This pull request cleans up unnecessary files after running the configure script from the root of the repository, as well as from the plugin and theme folders.

Changes Made

  • Introduced a process to automatically remove unnecessary or development-related files after running the configure script.
  • Make will remove the following files from the root of the repository:
    • CONTRIBUTING.md
    • CONTRIBUTORS.md
  • ... and the following files from the plugin directory (if they exist):
    • .deployignore
    • .editorconfig
    • .eslintrc.json
    • .gitattributes
    • .gitignore
    • .nvmrc
    • .stylelintrc.json
    • CHANGELOG.md
    • src/class-example-plugin.php
    • composer.json
    • jest.config.js
    • package-lock.json
    • phpstan.neon
    • tsconfig.eslint.json
    • tsconfig.json
  • ...and the following files from the theme directory (if they exist):
    • .editorconfig
    • .eslintrc.json
    • .gitignore
    • .nvmrc
    • .stylelintrc.json
    • .github (folder)
    • CHANGELOG.md
    • composer.json
    • jest.config.js
    • package-lock.json
    • phpstan.neon
    • tsconfig.eslint.json
    • tsconfig.json

Tested

  • Ran the configure script.
  • Verified that the listed files are removed from the respective locations.
  • Confirmed there are no unintended side effects or errors.

CleanShot 2025-05-28 at 12 39 05

@benpbolton benpbolton added devops Tooling and workflow improvements enhancement New feature or request labels May 28, 2025
@benpbolton benpbolton marked this pull request as ready for review May 28, 2025 18:43
@benpbolton benpbolton requested a review from a team as a code owner May 28, 2025 18:43
Copy link

@dustinpaluch dustinpaluch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️

Copy link
Contributor

@mogmarsh mogmarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹

@benpbolton benpbolton merged commit e57596a into production Jun 5, 2025
1 check passed
@benpbolton benpbolton deleted the feature/issue-144/remove-files-after-install branch June 5, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Tooling and workflow improvements enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove files after install
3 participants