mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
React tweaks (#5300)
* Add .gitignore for static web files * Add invoke task to start frontend dev server
This commit is contained in:
11
tasks.py
11
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",
|
||||
|
Reference in New Issue
Block a user