-
Notifications
You must be signed in to change notification settings - Fork 6
/
makefile
66 lines (51 loc) · 2.16 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
SHELL := /bin/bash
#
# Makefile
#
.PHONY: help
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: ## Installs all production dependencies
@composer validate
@composer install --no-dev
cd ./src/Resources/app/administration && npm install --production
cd ./src/Resources/app/storefront && npm install --production
dev: ## Installs all dev dependencies
@composer validate
@composer install
cd ./src/Resources/app/administration && npm install
cd ./src/Resources/app/storefront && npm install
clean: ## Cleans all dependencies
rm -rf vendor
rm -rf ./src/Resources/app/administration/node_modules/*
rm -rf ./src/Resources/app/storefront/node_modules/*
build: ## Installs the plugin, and builds
cd /var/www/html && php bin/console plugin:refresh
cd /var/www/html && php bin/console plugin:install ShopwareEsd --activate | true
cd /var/www/html && php bin/console plugin:refresh
cd /var/www/html && php bin/console theme:dump
cd /var/www/html && PUPPETEER_SKIP_DOWNLOAD=1 ./bin/build-js.sh
cd /var/www/html && php bin/console theme:refresh
cd /var/www/html && php bin/console theme:compile
cd /var/www/html && php bin/console theme:refresh
phpunit: ## Starts all PHPUnit Tests
php ./vendor/bin/phpunit --configuration=./phpunit.xml
stan: ## Starts the PHPStan Analyser
php ./vendor/bin/phpstan --memory-limit=1G analyse -c ./.phpstan.neon
ecs: ## Starts the ESC checker
php ./vendor/bin/ecs check . --config easy-coding-standard.php
csfix: ## Starts the PHP CS Fixer, set [mode=fix] to auto fix
php ./vendor/bin/ecs check src tests --config easy-coding-standard.php --fix
eslint: ## Starts the ESLinter
cd ./src/Resources/app/administration && ./node_modules/.bin/eslint --config ./.eslintrc.js ./src --ext .js,.ts,.vue,.html.twig
lint-fix: ## Starts the ESLint Fixer
cd ./src/Resources/app/administration && ./node_modules/.bin/eslint --config ./.eslintrc.js ./src --ext .js,.ts,.vue,.html.twig --fix
fix: ## Starts the PHP CS Fixer and ESLint Fixer
@make csfix -B
@make lint-fix -B
review: ## Review
make stan -B
make ecs -B
make phpunit -B
make eslint -B