Releases: miftah704/nodejs-artisan
Releases · miftah704/nodejs-artisan
V2.2.0
V2.0.2
V2.0.0
Pull Request Description
Enhance Node Artisan CLI with New Features and Fixes
Summary
This pull request introduces significant enhancements and fixes to the Node Artisan CLI, improving functionality, usability, and documentation. Below is a summary of the key changes made:
Features Added
-
Command Options for
make:model
andmake:controller
:- Added options for
make:model
:--controller
(-c
): Automatically generate a controller for the model.--all
(-a
): Automatically generate a controller, service, and repository for the model.
- Added options for
make:controller
:--service
(-s
): Automatically generate a service for the controller.--repository
(-r
): Automatically generate a repository for the controller.--all
(-a
): Generate both service and repository.
- Added options for
-
Unified and Enhanced Command Listing (
list
):- Improved the
list
command to display all commands in a single table, categorized with proper spacing. - Added options for
make:model
andmake:controller
to the command list description for better user understanding.
- Improved the
-
Dynamic Folder and Path Handling:
- Adjusted
make:model
andmake:controller
to create files within nested paths based on user input (e.g.,v1/User
generates files inmodels/v1
andcontrollers/v1
).
- Adjusted
-
Improved Documentation:
- Enhanced README with:
- Detailed descriptions for new features.
- Instructions on using options like
--controller
and--all
. - Screenshots showcasing commands with options.
- Updated the command table to include all commands and their descriptions.
- Enhanced README with:
Fixes
- Fixed issues with command options where generated files didn't align with the nested path structure.
- Resolved inconsistencies in table width for the
list
command to ensure full descriptions are displayed.
Improvements
- Command Output:
- Enhanced the user feedback with clearer summaries and options descriptions after executing commands.
- Codebase Refactoring:
- Organized utility functions and shared logic for reuse across commands, improving maintainability.
- Compatibility Fixes:
- Ensured compatibility with the latest Node.js versions.
How to Test
- Pull the
dev
branch and runnpm install
. - Test the following commands:
node artisan make:model User -c
node artisan make:model v1/User -a
node artisan make:controller v1/User -s
- Check the
list
command:- Run
node artisan list
and verify that the table displays all commands and their options clearly.
- Run
Screenshots
- Added screenshots to README showcasing the new options and enhanced CLI behavior.
V1.2.0
Release Notes: Node Artisan v1.2.0
What's New in This Version
Features
- New Artisan Commands: Added support for generating:
type
validator
enum
util
helper
Improvements
- Centralized Logging: Moved all logging functionalities to a centralized utility under
utils
for better organization and reuse.
Enhancements
- Documentation: Updated the README file to reflect the latest features and improvements.
- TypeScript Support: Added type definitions for seamless TypeScript integration.
Additional Updates
- Code Comments: Added comprehensive comments across the codebase for improved readability and maintainability.
How to Update
To update your project to the latest version of Node Artisan, run the following command:
npm install nodejs-artisan@latest
Ensure you have updated your README file and leveraged the new centralized logging feature for better code management.