diff --git a/resources/boost/guidelines/core.blade.php b/resources/boost/guidelines/core.blade.php index 69a13c8..a07d118 100644 --- a/resources/boost/guidelines/core.blade.php +++ b/resources/boost/guidelines/core.blade.php @@ -1,4 +1,4 @@ ## Modular -- This a modular application. Each module is located in its own directory inside of `app-modules`. +- This a modular application. Each module is located in its own directory inside of `{{ config('app-modules.modules_directory') }}`. - IMPORTANT: Activate `modular` every time you're working with or creating a new module. diff --git a/resources/boost/skills/modular/SKILL.md b/resources/boost/skills/modular/SKILL.blade.php similarity index 91% rename from resources/boost/skills/modular/SKILL.md rename to resources/boost/skills/modular/SKILL.blade.php index 6734ac8..fee0b98 100644 --- a/resources/boost/skills/modular/SKILL.md +++ b/resources/boost/skills/modular/SKILL.blade.php @@ -1,19 +1,22 @@ +@php +$modules_directory = config('app-modules.modules_directory'); +@endphp --- name: modular -description: Create or modify Laravel modules using `internachi/modular`. Use when the user asks to create a module, add components to a module, scaffold module structure, or work on files in an `app-modules` directory. +description: Create or modify Laravel modules using `internachi/modular`. Use when the user asks to create a module, add components to a module, scaffold module structure, or work on files in an `{{ $modules_directory }}` directory. argument-hint: [component-type] --- # Laravel Modular Development -You are helping with a Laravel application that uses `internachi/modular` for modular architecture. Modules live in `app-modules/` and follow Laravel package conventions. +You are helping with a Laravel application that uses `internachi/modular` for modular architecture. Modules live in `{{ $modules_directory }}/` and follow Laravel package conventions. ## Module Structure -The structure of `app-modules` mimics a standard Laravel application, where what typically would be found in `app` is found in `src`: +The structure of `{{ $modules_directory }}` mimics a standard Laravel application, where what typically would be found in `app` is found in `src`: ``` -app-modules/ +{{ $modules_directory }}/ {module-name}/ composer.json # PSR-4 autoload, Laravel provider discovery src/ @@ -137,7 +140,7 @@ ### Tests - Place in `tests/Feature/` and `tests/Unit/` -- Run module tests: `php artisan test app-modules/{module-name}/tests` +- Run module tests: `php artisan test {{ $modules_directory }}/{module-name}/tests` - All module tests can be run using the `Modules` testsuite configuration that is auto-generated by the `modules:sync` command ### Cross-Module Dependencies