-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
26 lines (20 loc) · 1.47 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
.DEFAULT_GOAL := help
## Variable definition
BASE_URL?=http://docker.vm:8000
PLUGIN_ROOT=$(shell cd -P -- '$(shell dirname -- "$0")' && pwd -P)
PROJECT_ROOT=$(PLUGIN_ROOT)/../../../
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: help
administration-fix: ## Run eslint on the administration files
node_modules/.bin/eslint --config .eslintrc-administration.js --ext .js,.vue src/Resources/app/administration --resolve-plugins-relative-to ../../../vendor/shopware/administration/Resources/app/administration --fix
.PHONY: administration-fix
storefront-fix: ## Run eslint on the storefront files
node_modules/.bin/eslint --config .eslintrc-storefront.js --ext .js,.vue src/Resources/app/storefront --resolve-plugins-relative-to ../../../vendor/shopware/storefront/Resources/app/storefront --fix
.PHONY: storefront-fix
administration-lint: ## Run eslint on the administration files
node_modules/.bin/eslint --config .eslintrc-administration.js --ext .js,.vue src/Resources/app/administration --resolve-plugins-relative-to ../../../vendor/shopware/administration/Resources/app/administration
.PHONY: administration-lint
storefront-lint: ## Run eslint on the storefront files
node_modules/.bin/eslint --config .eslintrc-storefront.js --ext .js,.vue src/Resources/app/storefront --resolve-plugins-relative-to ../../../vendor/shopware/storefront/Resources/app/storefront
.PHONY: storefront-lint