-
Notifications
You must be signed in to change notification settings - Fork 0
/
monorepo-builder.php
54 lines (50 loc) · 1.5 KB
/
monorepo-builder.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
declare(strict_types=1);
use Symplify\MonorepoBuilder\ComposerJsonManipulator\ValueObject\ComposerJsonSection;
use Symplify\MonorepoBuilder\Config\MBConfig;
return static function ( MBConfig $config ): void {
$config->packageDirectories( [ __DIR__ . '/packages' ] );
$config->packageDirectoriesExcludes( [ __DIR__ . '/packages/vendor' ] );
$config->dataToAppend([
ComposerJsonSection::AUTHORS => [
[
'name' => 'BoxUK',
'email' => '[email protected]'
],
],
ComposerJsonSection::REPOSITORIES => [
[
'type' => 'composer',
'url' => 'https://wpackagist.org',
'only' => ['wpackagist-plugin/*', 'wpackagist-theme/*'],
],
],
ComposerJsonSection::REQUIRE_DEV => [
'automattic/vipwpcs' => '^3.0',
'permafrost-dev/coverage-check' => '^2.0',
'phpcompatibility/phpcompatibility-wp' => '^2.1',
'symplify/monorepo-builder' => '^11.2',
'szepeviktor/phpstan-wordpress' => '^1.3',
'wpackagist-plugin/sqlite-database-integration' => '^2.0',
'wpackagist-theme/twentytwentyfour' => '^1.0',
],
ComposerJsonSection::CONFIG => [
'vendor-dir' => 'packages/vendor',
'allow-plugins' => [
'dealerdirect/phpcodesniffer-composer-installer' => true,
'composer/installers' => true,
],
],
ComposerJsonSection::EXTRA => [
'installer-paths' => [
"docker/wordpress/mu-plugins/{\$name}" => [
"type:wordpress-plugin",
"type:wordpress-muplugin"
],
"docker/wordpress/themes/{\$name}" => [
"type:wordpress-theme"
]
]
]
]);
};