justinwickenheiser / lion-cli
A CLI to quickly spin up boiler-plate packages for gvsu-webteam development.
v0.1.1
2023-04-03 18:33 UTC
Requires
- php: ^8.1
- illuminate/database: ^10.5
- nunomaduro/termwind: ^1.15
Requires (Dev)
- laravel-zero/framework: ^10.0
- laravel/pint: ^1.5
- mockery/mockery: ^1.5.1
- pestphp/pest: ^1.22.3
This package is auto-updated.
Last update: 2024-05-03 20:47:46 UTC
README
Lion CLI was created to quickly spin up boiler-plate packages for gvsu-webteam development. It was built on Laravel-Zero.
Install
composer global require justinwickenheiser/lion-cli
Make sure your composer's global bin directory is in your PATH by adding the following line to your .bash_profile
:
export PATH=$(composer global config bin-dir --absolute --quiet):$PATH
Check to see if the install worked. You may have to close and reopen the terminal.
lion -v
Local Build
If you wish to clone the repo and do a local build, then you can run the following commands:
php lion app:build --build-version=0.0.0 ln -s ./builds/lion /usr/local/lib/lion-cli/bin/lion sudo ln -s ../lib/lion-cli/bin/lion /usr/local/bin/lion
Usage
- Create a new package
lion new <name>
- Use the artisan
make:<xyz>
commands that you are familiar with.
lion make:model Hotel -cr lion make:migration create_hotels_table
Package Structure
The structure of packages generated with lion mirrors that of Laravel projects. The exception is Laravel projects have /app, where the package will use /src.
package/
|
+-- config/
|
+-- database/
| |
| +-- migrations/
|
+-- resources/
| |
| +-- views/
|
+-- routes/
| web.php
|
+-- src/
| |
| +-- Facades/
| |
| +-- Http/
| | |
| | +-- Controllers/
| |
| +-- Models/
| |
| +-- Providers/
|
+-- tests/