-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (21 loc) · 834 Bytes
/
Makefile
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
# As for wp-env details, see https://developer.wordpress.org/block-editor/packages/packages-env/.
help: ## Display help.
@grep -E '^[/a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
archive: script/deps script/format script/build ## Archive WordPress plugin inti ./dist directory.
node bin/archive.js
script/deps: ## Install dependended packages.
yarn install
script/build: ## Build scripts.
yarn run build
script/start: ## Build scripts lively.
yarn run start
script/format: ## Format scripts.
yarn run format:js
env/start: ## Run local enviroment.
yarn run wp-env start
env/stop: ## Stop local enviroment.
yarn run wp-env stop
env/format: ## Formatting js files.
yarn run format:js
env/logs: ## Display logs on local envroment.
yarn run wp-env logs