-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (25 loc) · 902 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
init:
npm install --global concurrently
npm install --global --unsafe-perm node-sass
npm install --global node-sass-watcher
npm install --global postcss-cli autoprefixer
pip install --upgrade flake8
pip install --upgrade pyttest webtest
run:
@concurrently \
"node-sass-watcher static/app.css.sass --command 'make sass-to-css file=<input>'" \
"dev_appserver.py . --port=9090 --host=home # nosync"
ci-test:
@flake8 --exclude=natrix.py
@python test.py
deploy:
@gcloud app deploy
sass-to-css:
@node-sass $(file) `echo $(file) | sed 's#\.sass$$##'` \
--indented-syntax \
--output-style expanded \
--include-path `echo $(file) | sed 's#/[^/]\+$$##'` \
--include-path `npm root --global`
@postcss `echo $(file) | sed 's#\.sass$$##'` \
--output `echo $(file) | sed 's#\.sass$$##'` \
--use autoprefixer --no-map