Skip to content

Commit

Permalink
Move vendor statics from shared to project itself
Browse files Browse the repository at this point in the history
  • Loading branch information
medihack committed Apr 11, 2024
1 parent a797ecc commit 0c33bef
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 11 additions & 11 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,23 +333,23 @@ def copy_statics(ctx: Context):
"""Copy JS and CSS dependencies from node_modules to static vendor folder"""
print("Copying statics...")

vendor = "adit_radis_shared/common/static/vendor/"
target = "radis/static/vendor/"

for file in glob("node_modules/@popperjs/core/dist/umd/popper.js*"):
copy(file, f"{vendor}/")
copy(file, f"{target}/")
for file in glob("node_modules/bootstrap/dist/css/bootstrap.css*"):
copy(file, f"{vendor}/")
copy(file, f"{target}/")
for file in glob("node_modules/bootstrap/dist/js/bootstrap.bundle.js*"):
copy(file, f"{vendor}/")
copy("node_modules/bootstrap-icons/bootstrap-icons.svg", f"{vendor}/")
copy("node_modules/bootswatch/dist/flatly/bootstrap.css", f"{vendor}/")
copy("node_modules/alpinejs/dist/cdn.js", f"{vendor}/alpine.js")
copy("node_modules/@alpinejs/morph/dist/cdn.js", f"{vendor}/alpine-morph.js")
copy("node_modules/htmx.org/dist/htmx.js", f"{vendor}/")
copy("node_modules/htmx.org/dist/ext/ws.js", f"{vendor}/htmx-ws.js")
copy(file, f"{target}/")
copy("node_modules/bootstrap-icons/bootstrap-icons.svg", f"{target}/")
copy("node_modules/bootswatch/dist/flatly/bootstrap.css", f"{target}/")
copy("node_modules/alpinejs/dist/cdn.js", f"{target}/alpine.js")
copy("node_modules/@alpinejs/morph/dist/cdn.js", f"{target}/alpine-morph.js")
copy("node_modules/htmx.org/dist/htmx.js", f"{target}/")
copy("node_modules/htmx.org/dist/ext/ws.js", f"{target}/htmx-ws.js")
copy(
"node_modules/htmx.org/dist/ext/alpine-morph.js",
f"{vendor}/htmx-alpine-morph.js",
f"{target}/htmx-alpine-morph.js",
)


Expand Down

0 comments on commit 0c33bef

Please sign in to comment.