Skip to content

Commit 8edf086

Browse files
committed
Packages concept
1 parent 6ea45c8 commit 8edf086

File tree

2 files changed

+62
-9
lines changed

2 files changed

+62
-9
lines changed

packages/core/composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,43 @@
3434
"providers": [
3535
"Moox\\Core\\CoreServiceProvider"
3636
]
37+
},
38+
"moox": {
39+
"require": {
40+
"spatie/laravel-medialibrary": {
41+
"auto_publish": "spatie-media-config"
42+
},
43+
"filament/spatie-media-library-plugin": {}
44+
},
45+
"install": {
46+
"auto_migrate": "database/migrations",
47+
"seed": "database/seeders/MediaSeeder.php",
48+
"auto_publish": "moox-media-config",
49+
"auto_entities": {
50+
"Some Resource": true,
51+
"Another Resource": null
52+
},
53+
"auto_class": {
54+
"Some Class": "Moox\\Core\\SomeClass",
55+
"Another Class": "Moox\\Core\\AnotherClass"
56+
},
57+
"auto_run": {
58+
"Run this": "php artisan run:this",
59+
"Build the frontend": "npm run build",
60+
"Clear the cache": "php artisan cache:clear"
61+
},
62+
"auto_runhere": {
63+
"Build the frontend": "npm run build"
64+
}
65+
},
66+
"update": {
67+
"migrate": "database/migrations",
68+
"merge": "moox-media-config"
69+
},
70+
"uninstall": {
71+
"migrate": "database/migrations",
72+
"remove": "moox-media-config"
73+
}
3774
}
3875
},
3976
"minimum-stability": "stable",

packages/packages/docs/IDEA.md

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ Tracks whether a package is up-to-date or not.
3333

3434
Which kind of package are we dealing with.
3535

36-
| Type | Meaning |
37-
| ------------------ | ---------------------------------------------------------- |
38-
| `moox_package` | The package is officially made by Moox. |
39-
| `moox_compatible` | The package is compatible with Moox package API. |
40-
| `moox_dependency` | The package is directly required by Moox. |
41-
| `filament_plugin` | The package is a Filament plugin. |
42-
| `laravel_package` | The package has a Laravel Service Provider. |
43-
| `php_package` | The package is a PHP package. |
36+
| Type | Meaning |
37+
| ----------------- | ------------------------------------------------ |
38+
| `moox_package` | The package is officially made by Moox. |
39+
| `moox_compatible` | The package is compatible with Moox package API. |
40+
| `moox_dependency` | The package is directly required by Moox. |
41+
| `filament_plugin` | The package is a Filament plugin. |
42+
| `laravel_package` | The package has a Laravel Service Provider. |
43+
| `php_package` | The package is a PHP package. |
4444

4545
---
4646

@@ -89,7 +89,7 @@ Which kind of package are we dealing with.
8989

9090
- `belongsTo` **Category**
9191
- `belongsToMany` **Tags**
92-
**later**
92+
**later**
9393
- `hasMany` **Entities**, **Panels**, **Jobs**, **Mails**
9494
- `hasMany` **Relations**
9595
- `hasMany` **Taxonomies**
@@ -185,3 +185,19 @@ Configuration Includes:
185185
- Add GitHub and release management on moox.org
186186
- Allow to create packages, entites and panels ... fields, tabs, wire
187187
- Allow updating without compromising code, allow publishing
188+
189+
## Composer.json
190+
191+
In Moox Core there is an extra example.
192+
193+
## Bundles
194+
195+
There could be bundles like CMS, Shop, DevOps, Commerce, Blog, Press (included in Press package).
196+
197+
Bundles combine requirements and a Panel blueprint.
198+
199+
## Installer
200+
201+
moox:install will do the rest. Compare DB and Composer status. Care for installation, activation, de-install and update.
202+
203+
When asking for the Panel, it could suggest to create one from a Bundle.

0 commit comments

Comments
 (0)