Skip to content

Release 4.1.5#31

Merged
LoveDoLove merged 11 commits intomainfrom
lovedolove
Jun 21, 2025
Merged

Release 4.1.5#31
LoveDoLove merged 11 commits intomainfrom
lovedolove

Conversation

@LoveDoLove
Copy link
Copy Markdown
Owner

This pull request introduces updates to the LaravelController in the EasyKit project, simplifying the codebase and improving usability. Key changes include the removal of redundant methods, consolidation of PHP and Composer command handling, and enhanced process execution for better user experience. Additionally, licensing information was added to relevant files.

Codebase Simplification:

  • Removed redundant methods such as GetPhpPath, FindComposerCommand, and GetComposerPath, consolidating logic for PHP and Composer command execution. ([[1]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L154-L299), [[2]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L349-R253))
  • Replaced direct calls to ProcessService methods with streamlined implementations for running PHP, Composer, and Artisan commands, improving clarity and maintainability. ([[1]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L42-R70), [[2]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546R92-R145), [[3]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L424-R303))
  • Simplified diagnostic and setup workflows by removing detailed PHP version and extension checks, focusing on essential recommendations. ([[1]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L60-R80), [[2]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L324-R219))

Usability Enhancements:

  • Updated processes to run Composer commands and Laravel Artisan commands in new terminal windows for better visibility and user experience. ([[1]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L324-R219), [[2]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L349-R253), [[3]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546L455-L474))
  • Improved error handling and messaging for PHP installation and compatibility checks. ([EasyKit/Controllers/LaravelController.csR92-R145](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546R92-R145))

Licensing Updates:

  • Added MIT License headers to EasyKit/ConfigureService.cs and EasyKit/Controllers/LaravelController.cs to ensure proper attribution and open-source compliance. ([[1]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-50902cdcde61a794d629f5ec189e4e9658874a4d3e0f98e7d94fb38e0bad2ac1R1-R22), [[2]](https://github.com/LoveDoLove/EasyKit/pull/31/files#diff-1ebf7585cad88bc0d73dfaca413865c9144803d8fd2734c0115e270889fbf546R1-L2))

Removed redundant Node.js installation checks and related menu options. Now, if npm is not installed, the controller immediately opens the Node.js website and exits, streamlining the user experience. Also added an MIT license header to the file.
Updated the wrangler devDependency from 4.20.0 to 4.20.5 in package.json and package-lock.json. This also updates related dependencies such as workerd, miniflare, and @cloudflare packages to their latest compatible versions.
Advanced the CommonUtilities submodule pointer from 0e06b1d to 3456570 to incorporate the latest changes from the submodule.
Replaces the previous complex ProcessService with a minimal implementation focused on running external commands using system PATH. Removes configuration, diagnostics, and tool-specific logic, leaving only basic process execution and output streaming methods.
Introduced a function to handle and validate user input, improving the robustness of the input processing workflow.
Updated process execution methods to use '/c' instead of '/k', disable shell execution, and capture standard output and error streams. Deprecated RunProcessInNewCmdWindow in favor of RunProcess, and improved error handling and logging for better diagnostics.
Updated controllers to use RunProcessInNewCmdWindow for long-running or interactive commands (Composer, NPM, Artisan, Git), improving user experience by opening new terminal windows where appropriate. Switched to RunProcessWithStreaming for commands where immediate output is useful. Simplified error handling and removed deprecated or redundant logic. Updated ProcessService to properly open new cmd windows and removed obsolete attribute.
Advanced the CommonUtilities submodule reference from 3456570 to e492dcb to incorporate the latest changes and improvements from the submodule.
Replaced all process execution logic in ProcessService with calls to ProcessExecutionHelper methods. This centralizes process handling and reduces code duplication by delegating process management to CommonUtilities.Helpers.Processes.
Updated AssemblyVersion and FileVersion in EasyKit.csproj from 4.1.4 to 4.1.5 to reflect a new release.
Updated the MyAppVersion definition from 4.1.4 to 4.1.5 in Common.iss, Release-win-x64.iss, and Release-win-x86.iss to prepare for a new release.
@LoveDoLove LoveDoLove self-assigned this Jun 21, 2025
@LoveDoLove LoveDoLove merged commit d54fecb into main Jun 21, 2025
@LoveDoLove LoveDoLove deleted the lovedolove branch June 21, 2025 17: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.

1 participant