juzaweb / dev-tool
Develop Tool for Juzaweb CMS
Requires
- php: ^8.2
Requires (Dev)
- juzaweb/core: dev-master
- laravel/framework: ^11.34
- laravel/pint: ^1.13
- mockery/mockery: ^1.6
- orchestra/testbench: ^9.0
- phpunit/phpunit: ^11.0
- roave/security-advisories: dev-latest
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Develop Tool for Juzaweb CMS. This package provides a set of Artisan commands to help you develop modules and themes for Juzaweb CMS.
Installation
You can install the package via composer:
composer require --dev juzaweb/dev-tool
Requirements
- PHP ^8.2
- juzaweb/core ^5.0
Usage
Module Commands
| Command | Description |
|---|---|
php artisan module:make |
Create a new module. |
php artisan module:delete |
Delete a module. |
php artisan module:use |
Use a module. |
php artisan module:unuse |
Un-use a module. |
php artisan module:publish |
Publish module assets. |
php artisan module:publish-config |
Publish module configuration. |
php artisan module:publish-migration |
Publish module migrations. |
php artisan module:publish-translation |
Publish module translations. |
Theme Commands
| Command | Description |
|---|---|
php artisan theme:make |
Create a new theme. |
php artisan theme:download-style |
Download style template. |
php artisan theme:download-template |
Download a template. |
php artisan theme:make-block |
Create a page block for a theme. |
php artisan theme:make-template |
Create a template for a theme. |
php artisan theme:make-view |
Create a view for a theme. |
php artisan theme:make-widget |
Create a widget for a theme. |
php artisan theme:make-controller |
Create a controller for a theme. |
php artisan theme:seed |
Seed theme data. |
Generator Commands
This package provides various generator commands to speed up your development:
php artisan module:make-command[module] php artisan module:make-controller[module] php artisan module:make-event[module] php artisan module:make-job[module] php artisan module:make-listener[module] php artisan module:make-mail[module] php artisan module:make-middleware[module] php artisan module:make-model[module] php artisan module:make-notification[module] php artisan module:make-policy[module] php artisan module:make-provider[module] php artisan module:make-request[module] php artisan module:make-resource[module] php artisan module:make-rule[module] php artisan module:make-test[module] php artisan module:route-provider [module]
CRUD Generator
Generate CRUD (Create, Read, Update, Delete) operations for a model in a module.
php artisan module:make-crud <model> [module]
Options:
--api: Generate API CRUD.
GitHub Release
You can release your module to GitHub using the following command:
php artisan github:release <path>
Configuration
Add your GitHub token to your .env file:
JW_RELEASE_GITHUB_TOKEN=your_github_token
Options for github:release:
--ver: Version to release. Auto increment version if not set.--changelog: Write to changelog.md. Default: true.--target: Target branch to release. Default: master.
Example:
php artisan github:release modules/my-module --ver=1.0.1 --target=main
Agents Publishing
Publish dev-tool agents to the .agent directory for development assistance:
php artisan agents:publish
Options:
--force: Overwrite existing files without confirmation--skills: Publish only the skills folder--rules: Publish only the rules folder
This command copies agent configuration files from the dev-tool package to your project's .agent directory, enabling AI-powered development assistance.
Examples:
# Publish all agents php artisan agents:publish # Publish only skills folder php artisan agents:publish --skills # Publish only rules folder php artisan agents:publish --rules # Force overwrite existing files php artisan agents:publish --force