-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (41 loc) · 932 Bytes
/
Makefile
File metadata and controls
46 lines (41 loc) · 932 Bytes
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
plugin_name = mega-forms-local-captcha
help:
@echo "Usage make <upload-to-dev|download-from-dev|pot>"
download-from-dev:
rsync \
-avz \
--exclude .git \
-e ssh gpmaster@gpmaster.qbus.dev:dev/public/wp-content/plugins/$(plugin_name)/ ./
upload-to-dev:
rsync \
-avz \
--delete \
--delete-excluded \
--exclude .git \
--exclude .github \
--exclude .idea \
--exclude='/node_modules/*' \
--exclude='*.zip' \
-e ssh ./ gpmaster@gpmaster.qbus.dev:dev/public/wp-content/plugins/$(plugin_name)/
pot:
./vendor/bin/wp i18n make-pot \
--domain=$(plugin_name) . languages/$(plugin_name).pot
release:
rm -f $(plugin_name).zip; \
zip \
-r9 $(plugin_name).zip . \
-x \
*.git* \
node_modules/\* \
scss/\* \
package*.json \
composer.* \
Makefile \
Readme.md \
.idea/\* \
.nvmrc \
.editorconfig \
eslint.config.js \
.stylelintrc.* \
phpcs.xml \
.pre-commit-config.yaml