1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

rm uglify in make dist (#4290)

* rm uglify in make dist

* rm
This commit is contained in:
sniper-py
2019-11-25 11:06:08 +08:00
committed by Daniel Pan
parent cf7042515a
commit 3641de2199

View File

@@ -5,18 +5,13 @@ develop: setup-git
setup-git: setup-git:
cd .git/hooks && ln -sf ../../hooks/* ./ cd .git/hooks && ln -sf ../../hooks/* ./
dist: locale uglify statici18n collectstatic dist: locale statici18n collectstatic
locale: locale:
@echo "--> Compile locales" @echo "--> Compile locales"
django-admin.py compilemessages django-admin.py compilemessages
@echo "" @echo ""
uglify:
@echo "--> Uglify JS files to static/scripts/dist"
rm -rf static/scripts/dist 2> /dev/null
r.js -o static/scripts/build.js
statici18n: statici18n:
@echo "--> Generate JS locale files in static/scripts/i18n" @echo "--> Generate JS locale files in static/scripts/i18n"
python manage.py compilejsi18n python manage.py compilejsi18n
@@ -43,4 +38,4 @@ cleanpyc:
find . -name \*.pyc -exec rm -f {} \; find . -name \*.pyc -exec rm -f {} \;
@echo "" @echo ""
.PHONY: develop setup-git dist locale uglify statici18n collectstatic compressstatic clean .PHONY: develop setup-git dist locale statici18n collectstatic compressstatic clean