-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
35 lines (25 loc) · 881 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
SASS_PATH=./src/sass
CSS_PATH=./src/css
VENDOR=./vendor
CSS_OUT=${CSS_PATH}/*.css
all: help
start: deps compile-sass ## start local dev server
cd ./src && php -S 0.0.0.0:3000
serve: deps compile-sass-compressed ## production ready
cp ${CSS_PATH}/app.min.css ${CSS_PATH}/app.css
deps: ## install php dependencies
php composer.phar install
compile-sass: ## generate minified css files
./vendor/bin/pscss \
-i ${SASS_PATH} < ${SASS_PATH}/app.scss > ${CSS_PATH}/app.css
compile-sass-compressed: ## generate minified css files
./vendor/bin/pscss \
-f compressed \
-i ${SASS_PATH} < ${SASS_PATH}/app.scss > ${CSS_PATH}/app.min.css
clean: ## remove generated files
rm -rf ${CSS_OUT}
rm -rf ${VENDOR}
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.SILENT: