-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
86 lines (86 loc) · 2.03 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"name": "wearenolte/lean-theme",
"description": "Barebones modular WordPress theme",
"type": "wordpress-theme",
"require": {
"wearenolte/wp-cpt": "1.0.*",
"moxie-lean/assets": "2.*",
"moxie-lean/wp-widgets": "^1.0",
"moxie-lean/loader": "^1.3",
"wearenolte/buster": "^0.1.1",
"nolte/wp-endpoint": "3.0.*",
"moxie-lean/wp-taxonomy": "1.0.5",
"nolte/lean-styleguide": "^1.1.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.5.6",
"wp-coding-standards/wpcs": "^2.3.0",
"phpmd/phpmd" : "@stable"
},
"authors": [
{
"name": "Nolte",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"Lean\\": "backend/"
}
},
"scripts": {
"post-install-cmd": [
"@set-up-php-lint",
"@build"
],
"post-update-cmd": [
"@set-up-php-lint",
"@build"
],
"build-deps": [
"cd frontend && yarn"
],
"build-app": [
"cd frontend && yarn build"
],
"build": [
"@build-deps",
"@build-app",
"@update-version"
],
"set-up-php-lint": [
"phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs/",
"phpcs --config-set default_standard ./phpcs.xml",
"phpcs --config-set show_progress 1",
"phpcs --config-set colors 1",
"phpcs --config-set show_warnings 1",
"phpcs --config-set ignore_warnings_on_exit 1"
],
"update-version": [
"version"
],
"lint": [
"@php-lint",
"cd frontend && yarn lint"
],
"fix": [
"php vendor/bin/phpcbf . --extensions=php"
],
"php-lint": [
"phpcs . --extensions=php",
"phpmd . text phpmd.xml --suffixes php --exclude vendor,frontend/components/atoms/icons"
],
"php-fix": [
"phpcbf . backend/**.php phpmd.xml"
],
"organism": [
"cd frontend && bash createPattern.sh organisms "
],
"molecule": [
"cd frontend && bash createPattern.sh molecules "
],
"atom": [
"cd frontend && bash createPattern.sh atoms "
]
}
}