зеркало из https://github.com/mozilla/FlightDeck.git
adding BUILDER_DEV setting to commander_settings
This commit is contained in:
Родитель
21b4f33a1f
Коммит
63ffd0f533
|
@ -14,3 +14,5 @@ CELERY_HOSTGROUP = "addons-celery-dev"
|
|||
SSH_KEY = None
|
||||
|
||||
CRON_NAME = "builder-addons-dev"
|
||||
|
||||
BUILDER_DEV = False
|
||||
|
|
|
@ -78,19 +78,12 @@ def update_celery(ctx):
|
|||
_shipyard_cmd = 'node ./media/lib/shipyard/bin/shipyard build %s -d ./media/jetpack/js/ide'
|
||||
|
||||
|
||||
@task
|
||||
def shipyard_build(ctx):
|
||||
" This is for -dev only "
|
||||
manage_cmd(ctx, 'cache_bust')
|
||||
with ctx.lcd(settings.SRC_DIR):
|
||||
ctx.local(_shipyard_cmd % '--non-minify')
|
||||
|
||||
|
||||
@task
|
||||
def shipyard_min(ctx):
|
||||
manage_cmd(ctx, 'cache_bust')
|
||||
minify = '--non-minify' if getattr(settings, 'BUILDER_DEV', False) else '--minify'
|
||||
with ctx.lcd(settings.SRC_DIR):
|
||||
ctx.local(_shipyard_cmd % '--minify')
|
||||
ctx.local(_shipyard_cmd % minify)
|
||||
|
||||
|
||||
@task
|
||||
|
|
Загрузка…
Ссылка в новой задаче