-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
35 lines (27 loc) · 824 Bytes
/
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
preview:
#ENV=dev XDEBUG_MODE=debug vendor/bin/bref-dev-server --assets=web
ENV=dev vendor/bin/bref-dev-server --assets=web
install:
set -e
composer install
npm install
./console db --force
make assets
make cache
assets:
npx tailwindcss-cli@latest build ./assets/styles.css -o ./web/assets/css/main.min.css
npx esbuild assets/main.js --bundle --outfile=web/assets/js/main.js
assets-prod:
NODE_ENV=production npx tailwindcss-cli@latest build ./assets/styles.css -o ./web/assets/css/main.min.css
npx esbuild assets/main.js --bundle --outfile=web/assets/js/main.js
cache:
set -e
rm -rf var/cache/*
# Will trigger the compilation of the container
./console list
vendors: vendor node_modules
vendor: composer.lock
composer install
node_modules: package.json package-lock.json
npm install
.PHONY: assets