A CLI to quickly spin up boiler-plate packages for gvsu-webteam development.

v0.1.1 2023-04-03 18:33 UTC

This package is auto-updated.

Last update: 2024-05-03 20:47:46 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

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

  1. Create a new package
lion new <name>
  1. 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/