mirror of
https://github.com/pretix/pretix.git
synced 2026-07-17 07:08:38 +00:00
18cb9c1816
Knowing what file a string comes from is useful, but the line number is less useful and changes a lot, causing very unreadable diffs of translation files. I propose we drop them and only include the file names
33 lines
902 B
Makefile
33 lines
902 B
Makefile
all: localecompile staticfiles
|
|
production: localecompile staticfiles compress
|
|
LNGS:=`find pretix/locale/ -mindepth 1 -maxdepth 1 -type d -printf "-l %f "`
|
|
|
|
localecompile:
|
|
./manage.py compilemessages
|
|
|
|
localegen:
|
|
./manage.py makemessages --keep-pot --add-location file --ignore "pretix/static/npm_dir/*" $(LNGS)
|
|
./manage.py makemessages --keep-pot --add-location file -e js,ts,vue -d djangojs --ignore "pretix/static/npm_dir/*" --ignore "pretix/helpers/*" --ignore "pretix/static/jsi18n/*" --ignore "pretix/static/jsi18n/*" --ignore "pretix/static.dist/*" --ignore "data/*" --ignore "pretix/static/rrule/*" --ignore "build/*" $(LNGS)
|
|
|
|
staticfiles: npminstall npmbuild jsi18n
|
|
./manage.py collectstatic --noinput
|
|
|
|
compress:
|
|
./manage.py compress
|
|
|
|
jsi18n: localecompile
|
|
./manage.py compilejsi18n
|
|
|
|
test:
|
|
py.test tests
|
|
|
|
coverage:
|
|
coverage run -m py.test
|
|
|
|
npminstall:
|
|
npm ci
|
|
|
|
npmbuild:
|
|
npm run build
|
|
|