mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
React tweaks (#5300)
* Add .gitignore for static web files * Add invoke task to start frontend dev server
This commit is contained in:
parent
9fe77b20e4
commit
45aa8c39b3
3
.gitignore
vendored
3
.gitignore
vendored
@ -103,3 +103,6 @@ InvenTree/plugins/
|
|||||||
|
|
||||||
# Compiled translation files
|
# Compiled translation files
|
||||||
*.mo
|
*.mo
|
||||||
|
|
||||||
|
# web frontend (static files)
|
||||||
|
InvenTree/web/static
|
||||||
|
11
tasks.py
11
tasks.py
@ -829,6 +829,17 @@ def frontend_build(c):
|
|||||||
yarn(c, "yarn run build --emptyOutDir")
|
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={
|
@task(help={
|
||||||
'ref': "git ref, default: current git ref",
|
'ref': "git ref, default: current git ref",
|
||||||
'tag': "git tag to look for release",
|
'tag': "git tag to look for release",
|
||||||
|
Loading…
Reference in New Issue
Block a user