-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
64 lines (64 loc) · 2.28 KB
/
composer.json
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
55
56
57
58
59
60
61
62
63
64
{
"name": "zaherg/litepress",
"description": "A wordpress scaffolding with sqlite out of the box using composer.",
"license": "MIT",
"type": "project",
"require": {
"roots/wordpress-core-installer": "dev-master",
"roots/wordpress-full": "^6.7",
"vlucas/phpdotenv": "*",
"wp-cli/wp-cli-bundle": "*",
"wpackagist-plugin/sqlite-database-integration": "^2.1.11",
"wpackagist-theme/extendable": "^2.0.9"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.31"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"config": {
"allow-plugins": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"installer-paths": {
"public/content/plugins/{$name}/": [
"type:wordpress-plugin"
],
"public/content/themes/{$name}/": [
"type:wordpress-theme"
]
},
"wordpress-install-dir": {
"roots/wordpress-full": "public/wp"
}
},
"scripts": {
"post-update-cmd": [
"@php composer run install:clear"
],
"post-root-package-install": [
"@php composer run install:clear"
],
"post-create-project-cmd": [
"@php composer install",
"@php composer run install:clear",
"@php composer run install:env",
"@php composer run install:db",
"@php composer run install:core",
"@php composer run install:theme"
],
"install:clear": "@php -r \"is_dir('public/wp/wp-content') && system('rm -fr public/wp/wp-content');\"",
"install:core": "./vendor/bin/wp core install --admin_user=admin --admin_password=password [email protected] --skip-email --url=http://litepress.test --title=WordPress",
"install:db": "@php -r \"file_exists('public/content/db.php') || copy('public/content/plugins/sqlite-database-integration/db.copy','public/content/db.php');\"",
"install:env": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"install:theme": "./vendor/bin/wp theme activate extendable"
}
}