Lion CLI was created to quickly spin up boiler-plate packages for gvsu-webteam development. It was built on Laravel-Zero.
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
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
- 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
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/