Skip to content

Commit d48319b

Browse files
committed
👍 Install plugin by composer support
1 parent de40faf commit d48319b

File tree

3 files changed

+2191
-1854
lines changed

3 files changed

+2191
-1854
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/node_modules
22
/public/hot
33
/public/storage
4+
/public/vendor
45
/public/mix-manifest.json
56
/storage/*.key
67
/vendor

composer.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@
2222
"ext-pdo": "*",
2323
"ext-simplexml": "*",
2424
"ext-zip": "*",
25+
"composer/installers": "^2.2",
2526
"guzzlehttp/guzzle": "^7.2",
2627
"inertiajs/inertia-laravel": "^0.6.9",
2728
"intervention/imagecache": "^2.5",
2829
"juzaweb/packages": "^1.2",
2930
"laravel/breeze": "^1.14",
3031
"laravel/framework": "^9.2",
31-
"laravel/tinker": "^2.7"
32+
"laravel/tinker": "^2.7",
33+
"oomphinc/composer-installers-extender": "^2.0"
3234
},
3335
"require-dev": {
3436
"barryvdh/laravel-debugbar": "^3.6",
@@ -72,14 +74,21 @@
7274
"extra": {
7375
"laravel": {
7476
"dont-discover": []
77+
},
78+
"installer-types": ["juzaweb-plugin", "juzaweb-theme"],
79+
"installer-paths": {
80+
"plugins/{$name}/": ["type:juzaweb-plugin"],
81+
"themes/{$name}/": ["type:juzaweb-theme"]
7582
}
7683
},
7784
"config": {
7885
"optimize-autoloader": true,
7986
"preferred-install": "dist",
8087
"sort-packages": true,
8188
"allow-plugins": {
82-
"phpstan/extension-installer": true
89+
"phpstan/extension-installer": true,
90+
"composer/installers": true,
91+
"oomphinc/composer-installers-extender": true
8392
}
8493
},
8594
"minimum-stability": "dev",

0 commit comments

Comments
 (0)