2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-13 21:17:33 +00:00

Merege upstream/master into branch

This commit is contained in:
Matthias Mair
2024-06-12 07:59:07 +02:00
parent 952d6919b6
commit 717001d8f1
121 changed files with 70730 additions and 52911 deletions
+15 -3
View File
@@ -227,6 +227,9 @@ def plugins(c, uv=False):
c.run('pip3 install --no-cache-dir --disable-pip-version-check uv')
c.run(f"uv pip install -r '{plugin_file}'")
# Collect plugin static files
manage(c, 'collectplugins')
@task(help={'uv': 'Use UV package manager (experimental)'})
def install(c, uv=False):
@@ -317,8 +320,8 @@ def remove_mfa(c, mail=''):
manage(c, f'remove_mfa {mail}')
@task(help={'frontend': 'Build the frontend'})
def static(c, frontend=False):
@task(help={'frontend': 'Build the frontend', 'clear': 'Remove existing static files'})
def static(c, frontend=False, clear=True):
"""Copies required static files to the STATIC_ROOT directory, as per Django requirements."""
manage(c, 'prerender')
@@ -327,7 +330,16 @@ def static(c, frontend=False):
frontend_build(c)
print('Collecting static files...')
manage(c, 'collectstatic --no-input --clear --verbosity 0')
cmd = 'collectstatic --no-input --verbosity 0'
if clear:
cmd += ' --clear'
manage(c, cmd)
# Collect plugin static files
manage(c, 'collectplugins')
@task