deblan.io-murph/Makefile

49 lines
930 B
Makefile
Raw Permalink Normal View History

COMPOSER ?= composer
2023-05-11 14:46:15 +02:00
PHP_BIN ?= php8.1
YARN_BIN ?= yarn
2022-02-21 19:51:22 +01:00
NPM_BIN ?= npm
2022-02-21 19:51:22 +01:00
all: build
asset-watch:
2022-02-21 19:51:22 +01:00
$(YARN_BIN)
$(NPM_BIN) run watch
2021-06-15 11:49:44 +02:00
asset: js-routing
2022-02-21 19:51:22 +01:00
$(YARN_BIN)
$(NPM_BIN) run build
2021-06-15 11:49:44 +02:00
2022-02-21 19:51:22 +01:00
js-routing: doctrine-migration
2021-03-29 19:40:55 +02:00
$(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/*
2023-05-11 14:46:15 +02:00
$(PHP_BIN) bin/console
doctrine-migration:
2023-05-11 14:46:15 +02:00
PHP=$(PHP_BIN) ./bin/doctrine-migrate
2021-03-31 21:11:25 +02:00
2022-04-21 17:35:24 +02:00
.ONESHELL:
lint:
eslint --fix assets/js/**/*.{js,vue}
for f in assets/css/*.scss assets/css/app/*.scss; do
cssbeautify-cli -f $$f -w $$f.scss
done
2022-02-21 19:51:22 +01:00
build: clean js-routing asset
2022-03-04 23:56:59 +01:00
.ONESHELL:
font:
cd assets/fonts/deblan/
svg2ttf src/deblan-icon.svg deblan-icon.ttf
ttf2woff deblan-icon.ttf deblan-icon.woff
cat deblan-icon.ttf | ttf2woff2 > deblan-icon.woff2
ttf2eot deblan-icon.ttf deblan-icon.eot
2021-03-31 21:11:25 +02:00
deploy-prod:
mage deploy prod
2022-01-27 10:10:08 +01:00
deploy-preprod:
mage deploy preprod