-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
30 lines (30 loc) · 1.07 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
{
"name": "pressx/custom-codes",
"description": "Your custom SASS, CSS, JS, PHP and HTML customizations in same directory.",
"require": {
},
"require-dev": {
"wp-coding-standards/wpcs": "^2.3"
},
"scripts": {
"post-install-cmd": [
"phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs",
"phpcs --config-set default_standard WordPress"
],
"test": [
"phpcs --extensions=php --ignore=./vendor,./freemius,./node_modules ./lib"
],
"fix": [
"phpcbf --extensions=php --ignore=./vendor,./freemius,./node_modules ./lib"
],
"lang-update": [
"wp-env run cli wp i18n make-pot wp-content/plugins/custom-codes/ wp-content/plugins/custom-codes/languages/custom-codes.pot --exclude='wp-content/plugins/custom-codes/assets, wp-content/plugins/custom-codes/node_modules, wp-content/plugins/custom-codes/vendor'"
],
"prepare": [
"cp -rf ./ ~/Desktop/custom-codes",
"git -C ~/Desktop/custom-codes clean -dfx",
"rm -rf ~/Desktop/custom-codes/.git",
"cd ~/Desktop/custom-codes/ && zip -r -X ~/Desktop/custom-codes.zip ./"
]
}
}