Skip to content

Commit b31d70b

Browse files
author
Rafael Grigorian
committed
Updated Makefile to support variable installations
1 parent 7f9c3d9 commit b31d70b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
VENDOR=JetRails
22
MODULE=Cloudflare
3+
MAGENTO_VERSION=2.4.3
4+
MAGENTO_EDITION=community
35
NAMESPACE=$(VENDOR)"_"$(MODULE)
46
NAMESPACE_PATH=$(VENDOR)"/"$(MODULE)
57
VERSION=$(shell git describe --tags `git rev-list --tags --max-count=1`)
@@ -38,9 +40,12 @@ clean: ## Remove generated files and folders
3840
nuke: clean ## Remove generated & deployment data
3941
rm -rf ./node_modules ./public_html
4042

43+
install-from-magento: ## Install module from official Magento repo (for testing)
44+
docker-compose -f ./public_html/docker-compose.yml run --rm build composer require --no-ansi jetrails/magento2-cloudflare:1.3.6
45+
4146
dev-create: ## Create development environment
4247
composer global config repositories.magento composer https://repo.magento.com/
43-
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.2 ./public_html
48+
composer create-project --repository-url=https://repo.magento.com/ magento/project-$(MAGENTO_EDITION)-edition=$(MAGENTO_VERSION) ./public_html
4449
cp .magento.docker.yml .magento.setup.params ./public_html
4550
cd public_html && composer require magento/ece-tools -w
4651
cd public_html && ./vendor/bin/ece-docker build:compose --with-test --with-selenium --no-varnish --mode developer

0 commit comments

Comments
 (0)