forked from FiquemSabendo/queremossaber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 1.08 KB
/
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
36
37
38
.PHONY: help watch_sass sass load_fixtures migrate server create_admin
help:
@echo 'create_admin: create a superuser (admin)'
@echo 'encode_gcloud_credentials'
@echo 'load_fixtures: load database fixtures'
@echo 'migrate: migrate database'
@echo 'sass: compile styles'
@echo 'server: start server'
@echo 'watch_sass: watch changes and compile'
@echo 'make_translations: regenerate translation files'
@echo 'compile_translations: compile translation files'
watch_sass: sass
watchmedo shell-command --patterns="*.scss" --recursive --command 'make sass' web/static/web/styles
sass:
sassc web/static/web/styles/main.scss web/static/web/styles/main.css --sourcemap
load_fixtures:
python manage.py loaddata public_bodies_and_esics sample_foi_requests
migrate:
python manage.py migrate
server:
honcho -f Procfile.dev start
create_admin:
python manage.py createsuperuser
make_translations:
django-admin makemessages --all --ignore "env*"
compile_translations:
# FIXME: This will compile all .po files in the current folder, including in
# `.tox` and `env`
django-admin compilemessages