Skip to content

Latest commit

 

History

History

_custom

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 


Moox Logo


PEST Tests Laravel PINT PHP Code Style PHPStan Level 5

TailwindCSS 3 AlpineJS 3 Laravel 10 Laravel Livewire 2

Codacy Code Quality Codacy Coverage Code Climate Maintainability Snyk Security

Renovate Translation status License Slack

Moox Custom

To develop your own packages, public or private, while contributing to TAllUI, we included a second composer.json. This composer-file can be edited without overwriting the main composer.json.

Custom composer.json

cp _custom/composer.json-example _custom/composer.json

If you want to include custom packages you can clone one or more packages as subrepos into _custom and add them to _custom/composer.json like so:

    "repositories": [
        {
            "type": "path",
            "url": "./_custom/package"
        }
    ],
    "require": {
        "custom/package": "dev-main"
    },

Do a composer update afterwards.

Custom views and routes

Then you can use following environment variables in .env to create custom views and custom routes without touching existing blade views or routes/web.php:

CUSTOM_VIEWS="one, two"
CUSTOM_ROUTES="one, two"

The last step is to

cp resources/views/custom/example.blade.php resources/views/custom/one.blade.php

and / or

cp routes/custom_example.php routes/custom_two.php

and use them as custom views or custom routes. You may route into the gitignored subfolders of /resources/views/custom or your custom package.

Share custom repos

Keep all files together in "your-repo" (yep, you can call it whatever you want) and share it with other people that develop with TallUI while contributing to the Monorepo.

Execute

_custom/publish.sh your_repo

to copy all

  • php-files prefixed with custom_ from /_custom/your_repo/custom/routes to /routes
  • blade-views from /_custom/your_repo/custom/views to /resources/views/custom

Reminder

Don't forget .env