fix: add custom style to better match farmOS color scheme
This commit is contained in:
parent
87b97f53b8
commit
768859b6b9
9 changed files with 2511 additions and 1 deletions
16
tasks.py
16
tasks.py
|
|
@ -22,5 +22,21 @@ def release(c, skip_tests=False):
|
|||
if os.path.exists("dist"):
|
||||
shutil.rmtree("dist")
|
||||
|
||||
# custom styles for buefy
|
||||
update_style(c)
|
||||
|
||||
c.run("python -m build --sdist")
|
||||
c.run("twine upload dist/*")
|
||||
|
||||
|
||||
@task
|
||||
def update_style(c):
|
||||
"""
|
||||
Build/update the `wuttafarm-buefy.css` file
|
||||
"""
|
||||
os.chdir("style")
|
||||
# c.run("nvm use lts/krypton")
|
||||
c.run("npm install")
|
||||
c.run("npm run build")
|
||||
os.chdir(os.pardir)
|
||||
shutil.copy("style/dist/css/wuttafarm-buefy.css", "src/wuttafarm/web/static/css/")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue