This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
Releases: surgiie/blade-cli
Releases · surgiie/blade-cli
v3.0.0
v3.0.0 - 2022-11-08
Changed
- CLI application has been migrated to laravel-zero/laravel-zero by @surgiie in #10
- Blade classes/componens have been extracted to standalone surgiie/blade package and direct use of the class is no longer part of this package by @surgiie in #10
- Validation of path is now handled by
rules
validation via the surgiie/console package by @surgiie in #10 --save-dir
and--save-as
have been removed in favor of a single--save-to
option by @surgiie in #10
Added
-
Application now utilizes surgiie/console package which includes surgiie/transformer and laravel validation functionality by @surgiie in #10
-
--dry-run
now supported on directory rendering by @surgiie in #10
Prettier Dry Run
- Output --dry-run content in a table for clearer output/readability.
Minor Restructures.
- Move/rename
Surgiie\BladeCLI\Support\ConsoleApplication
toSurgiie\BladeCLI\Application
- Minor polishes/typo fixes, including removing doc block annotations.
Use Application for static container instance.
- Change class that manages the static container instance from the base command to application class.
Prettier Output
- Utilize
Illuminate\Console\View
Components for output. - Minor polishes.
Rework save
- Remove
--save-directory
in place of two new options for saving:--save-as
for files and--save-dir
for directory. - Enforce
--save-dir
for directory rendering. - Testing/faking improvements
- Add support to use
.env
files for variable data with new--from-env
option. - Aesthetics/typehints
Allow file path to be set later.
- Allow file path to be set later by adding default argument of null
- Add test for new exception thrown if no filepath is set when render is attempted.
New methods/tags
- Add new
filename
option - Add
getRenderContents
toBlade
class for getting raw rendered content for custom handling.
Bug Fix Incorrect Version
- Fix bug with incorrect CLI version not incremented in last tag.
Initial 1.0 Release
- [Breaking Change] - Updates namespace to
Surgiie\BladeCLI
- Fix bug where render directory was not being called.