React tweaks (#5300)

* Add .gitignore for static web files

* Add invoke task to start frontend dev server
This commit is contained in:
Oliver 2023-07-21 09:46:44 +10:00 committed by GitHub
parent 9fe77b20e4
commit 45aa8c39b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

3
.gitignore vendored
View File

@ -103,3 +103,6 @@ InvenTree/plugins/
# Compiled translation files
*.mo
# web frontend (static files)
InvenTree/web/static

View File

@ -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",