-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
37 lines (28 loc) · 1.31 KB
/
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
32
33
34
35
36
37
.DEFAULT_GOAL := help
filter := "default"
dirname := $(notdir $(CURDIR))
envprefix := $(shell echo "$(dirname)" | tr A-Z a-z)
envname := $(envprefix)test
debug := "false"
help:
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: help
install-plugin: .refresh-plugin-list ## Install and activate the plugin
@echo "Install the plugin"
php ./../../../../../../bin/console sw:plugin:install $(dirname) --activate
php ./../../../../../../bin/console sw:cache:clear
.refresh-plugin-list:
@echo "Refresh the plugin list"
php ./../../../../../../bin/console sw:plugin:refresh
CS_FIXER_RUN=
fix-cs: ## Run the code style fixer
php ./../../../../../../vendor/bin/php-cs-fixer fix --config=./php-cs-fixer.php -v $(CS_FIXER_RUN)
fix-cs-dry: CS_FIXER_RUN= --dry-run
fix-cs-dry: fix-cs ## Run the code style fixer in dry mode
check-js-code: check-eslint-backend ## Run esLint
fix-js-code: fix-eslint-backend fix-eslint-e2e fix-eslint-jest-tests ## Fix js code
ESLINT_FIX=
check-eslint-backend:
./../../../../../../themes/node_modules/eslint/bin/eslint.js --ignore-path .eslintignore -c ./../../../../../../themes/Backend/.eslintrc.js Views/backend $(ESLINT_FIX)
fix-eslint-backend: ESLINT_FIX= --fix
fix-eslint-backend: check-eslint-backend