From 45aa8c39b324fb8d2ab29daabe13141e537f8e61 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 21 Jul 2023 09:46:44 +1000 Subject: [PATCH] React tweaks (#5300) * Add .gitignore for static web files * Add invoke task to start frontend dev server --- .gitignore | 3 +++ tasks.py | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 03507b3f37..d54279ccd4 100644 --- a/.gitignore +++ b/.gitignore @@ -103,3 +103,6 @@ InvenTree/plugins/ # Compiled translation files *.mo + +# web frontend (static files) +InvenTree/web/static diff --git a/tasks.py b/tasks.py index 150f891a65..6e57c3ade5 100644 --- a/tasks.py +++ b/tasks.py @@ -829,6 +829,17 @@ def frontend_build(c): yarn(c, "yarn run build --emptyOutDir") +@task +def frontend_dev(c): + """Start frontend development server. + + Args: + c: Context variable + """ + print("Starting frontend development server") + yarn(c, "yarn run dev") + + @task(help={ 'ref': "git ref, default: current git ref", 'tag': "git tag to look for release",