Skip to content

Releases: miftah704/nodejs-artisan

V2.2.0

28 Dec 08:16
e556fdb
Compare
Choose a tag to compare

FIXED

  1. generate name
  2. delete static table name in model integrate with sutando js
  3. change generate script for validator integrate with vine js

NEW FEATURES

  1. generate route

V2.0.2

09 Dec 03:27
8fbec41
Compare
Choose a tag to compare

Fix Bugs

  1. not found cli artisan

V2.0.0

08 Dec 10:14
2a2ee9f
Compare
Choose a tag to compare

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

  1. Command Options for make:model and make: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.
  2. 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 and make:controller to the command list description for better user understanding.
  3. Dynamic Folder and Path Handling:

    • Adjusted make:model and make:controller to create files within nested paths based on user input (e.g., v1/User generates files in models/v1 and controllers/v1).
  4. 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.

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

  1. Command Output:
    • Enhanced the user feedback with clearer summaries and options descriptions after executing commands.
  2. Codebase Refactoring:
    • Organized utility functions and shared logic for reuse across commands, improving maintainability.
  3. Compatibility Fixes:
    • Ensured compatibility with the latest Node.js versions.

How to Test

  1. Pull the dev branch and run npm install.
  2. Test the following commands:
    • node artisan make:model User -c
    • node artisan make:model v1/User -a
    • node artisan make:controller v1/User -s
  3. Check the list command:
    • Run node artisan list and verify that the table displays all commands and their options clearly.

Screenshots

  • Added screenshots to README showcasing the new options and enhanced CLI behavior.

V1.2.0

07 Dec 14:43
Compare
Choose a tag to compare

Release Notes: Node Artisan v1.2.0

What's New in This Version

Features

  1. New Artisan Commands: Added support for generating:
    • type
    • validator
    • enum
    • util
    • helper

Improvements

  1. Centralized Logging: Moved all logging functionalities to a centralized utility under utils for better organization and reuse.

Enhancements

  1. Documentation: Updated the README file to reflect the latest features and improvements.
  2. TypeScript Support: Added type definitions for seamless TypeScript integration.

Additional Updates

  1. 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.

V1.1.0

05 Dec 09:45
Compare
Choose a tag to compare
miscellaneous

1. fix bugs
2. new comman artisan init
3. update Readme