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 post-install commands #12

Merged
merged 3 commits into from
Dec 1, 2023
Merged

Add post-install commands #12

merged 3 commits into from
Dec 1, 2023

Conversation

erikyo
Copy link
Collaborator

@erikyo erikyo commented Dec 1, 2023

Added functionality to handle and run post-install commands after the packages installation. This includes the extraction of 'postInstall' from the config data, running post-install commands concurrently after plugins and themes installation, and a new method 'runPostInstallCommands' for executing these commands. This allows users to perform necessary actions automatically after the package installation process.

close #5

Added functionality to handle and run post-install commands after the packages installation. This includes the extraction of 'postInstall' from the config data, running post-install commands concurrently after plugins and themes installation, and a new method 'runPostInstallCommands' for executing these commands. This allows users to perform necessary actions automatically after the package installation process.

close #5
Added a function `isWPCLIAvailable` in `utils.js` to check if WP-CLI (WordPress Command Line Interface) is available on the system. This function is then used in `install.js` before running post-install commands. This prevents errors and provides a better user experience if WP-CLI is not installed and a post-install command depends on it.
@erikyo erikyo requested a review from gardenboi December 1, 2023 19:56
@erikyo erikyo merged commit 2f3355f into master Dec 1, 2023
2 checks passed
@erikyo erikyo deleted the enhancement/post-install branch December 1, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance wp-package.json to Support Post-Installation Actions
2 participants