Skip to content

Commit 73a7a85

Browse files
NiclasNorinsebastianthulinSebastian Thulin
authored
refactor: municipio as dependency (#53)
* refactor: municipio as dependency * refactor: only get component-library * refactor: municipio as dependency * refactor: only get component-library --------- Co-authored-by: Sebastian Thulin <[email protected]> Co-authored-by: Sebastian Thulin <[email protected]>
1 parent f62acc8 commit 73a7a85

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed

algolia-index-js-searchpage.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
* Domain Path: /languages
1414
*/
1515

16-
use ComponentLibrary\Init as ComponentLibraryInit;
1716
use AlgoliaIndexJsSearchpage\Blade\Blade;
1817
use AlgoliaIndexJsSearchpage\UI\Render;
18+
use ComponentLibrary\Init as ComponentLibraryInit;
1919
use WpService\Implementations\NativeWpService;
2020
use WpUtilService\WpUtilService;
2121

22-
if (! defined('WPINC')) {
23-
die;
22+
if (!defined('WPINC')) {
23+
die();
2424
}
2525

2626
define('ALGOLIAINDEXJSSEARCHPAGE_PATH', plugin_dir_path(__FILE__));
@@ -42,6 +42,5 @@
4242
$wpService = new NativeWpService();
4343
$wpUtilService = new WpUtilService($wpService);
4444

45-
4645
// Start application
47-
new AlgoliaIndexJsSearchpage\App($wpUtilService->enqueue(__DIR__),new Render(new Blade(new ComponentLibraryInit([]))));
46+
new AlgoliaIndexJsSearchpage\App($wpUtilService->enqueue(__DIR__), new Render(new Blade(new ComponentLibraryInit([]))));

composer.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"description": "https://github.com/helsingborg-stad/algolia-index-js-searchpage-addon",
44
"type": "wordpress-plugin",
55
"license": "MIT",
6+
"minimum-stability": "dev",
7+
"prefer-stable": true,
68
"authors": [
79
{
810
"name": "Sebastian Thulin",
911
"email": "[email protected]"
1012
}
1113
],
12-
"minimum-stability": "stable",
1314
"repositories": [
1415
{
1516
"type": "composer",
@@ -22,7 +23,13 @@
2223
],
2324
"require": {
2425
"helsingborg-stad/wputilservice": "^0.2.44",
25-
"helsingborg-stad/wpservice": "^2.0"
26+
"helsingborg-stad/wpservice": "^2.0",
27+
"helsingborg-stad/municipio": "^6.0.0",
28+
"helsingborg-stad/component-library": "^4.0.0"
29+
},
30+
"require-dev": {
31+
"phpunit/phpunit": "^11.5",
32+
"carthage-software/mago": "^1.0.0-rc.1"
2633
},
2734
"scripts": {
2835
"test": "vendor/bin/phpunit",
@@ -38,13 +45,20 @@
3845
}
3946
},
4047
"version": "3.4.0",
41-
"require-dev": {
42-
"phpunit/phpunit": "^11.5",
43-
"carthage-software/mago": "^1.0.0-rc.1"
44-
},
4548
"config": {
4649
"allow-plugins": {
50+
"composer/installers": true,
4751
"carthage-software/mago": true
4852
}
53+
},
54+
"extra": {
55+
"installer-paths": {
56+
"vendor/{$vendor}/{$name}": [
57+
"type:wordpress-muplugin",
58+
"type:wordpress-theme",
59+
"type:wordpress-plugin",
60+
"type:acf-plugin"
61+
]
62+
}
4963
}
50-
}
64+
}

0 commit comments

Comments
 (0)