backports murph-skeleton

This commit is contained in:
Simon Vieille 2022-02-21 19:51:22 +01:00
parent f8a471d11f
commit 136803d5aa

View file

@ -1,37 +1,31 @@
COMPOSER ?= composer
PHP ?= php8.1
SSH ?= ssh
WEBPACK ?= webpack
YARN ?= yarn
NPM_BIN ?= npm
all: dep asset clean
.ONESHELL:
dep:
$(COMPOSER) update --ignore-platform-reqs
$(COMPOSER) install --ignore-platform-reqs
$(YARN)
all: build
asset-watch:
$(WEBPACK) -w
$(YARN_BIN)
$(NPM_BIN) run watch
asset: js-routing
$(YARN)
$(WEBPACK)
$(YARN_BIN)
$(NPM_BIN) run build
js-routing:
js-routing: doctrine-migration
$(PHP) bin/console fos:js-routing:dump --format=json --target=public/js/fos_js_routes.json
clean:
rm -fr var/cache/dev/*
rm -fr var/cache/prod/*
build: clean doctrine-migration js-routing
npm run build
doctrine-migration:
PHP=$(PHP) ./bin/doctrine-migrate
build: clean js-routing asset
deploy-prod:
mage deploy prod
ssh webdeblanio@asuka "cd blog && make build"