From 0c33befc0e1362841ba74f824b60d9feb17f3352 Mon Sep 17 00:00:00 2001 From: Kai Schlamp Date: Thu, 11 Apr 2024 19:56:47 +0000 Subject: [PATCH] Move vendor statics from shared to project itself --- .../static/vendor/alpine-morph.js | 0 .../common => radis}/static/vendor/alpine.js | 0 .../static/vendor/bootstrap-icons.svg | 0 .../static/vendor/bootstrap.bundle.js | 0 .../static/vendor/bootstrap.bundle.js.map | 0 .../static/vendor/bootstrap.css | 0 .../static/vendor/bootstrap.css.map | 0 .../static/vendor/htmx-alpine-morph.js | 0 .../common => radis}/static/vendor/htmx-ws.js | 0 .../common => radis}/static/vendor/htmx.js | 0 .../common => radis}/static/vendor/popper.js | 0 .../static/vendor/popper.js.map | 0 tasks.py | 22 +++++++++---------- 13 files changed, 11 insertions(+), 11 deletions(-) rename {adit_radis_shared/common => radis}/static/vendor/alpine-morph.js (100%) rename {adit_radis_shared/common => radis}/static/vendor/alpine.js (100%) rename {adit_radis_shared/common => radis}/static/vendor/bootstrap-icons.svg (100%) rename {adit_radis_shared/common => radis}/static/vendor/bootstrap.bundle.js (100%) rename {adit_radis_shared/common => radis}/static/vendor/bootstrap.bundle.js.map (100%) rename {adit_radis_shared/common => radis}/static/vendor/bootstrap.css (100%) rename {adit_radis_shared/common => radis}/static/vendor/bootstrap.css.map (100%) rename {adit_radis_shared/common => radis}/static/vendor/htmx-alpine-morph.js (100%) rename {adit_radis_shared/common => radis}/static/vendor/htmx-ws.js (100%) rename {adit_radis_shared/common => radis}/static/vendor/htmx.js (100%) rename {adit_radis_shared/common => radis}/static/vendor/popper.js (100%) rename {adit_radis_shared/common => radis}/static/vendor/popper.js.map (100%) diff --git a/adit_radis_shared/common/static/vendor/alpine-morph.js b/radis/static/vendor/alpine-morph.js similarity index 100% rename from adit_radis_shared/common/static/vendor/alpine-morph.js rename to radis/static/vendor/alpine-morph.js diff --git a/adit_radis_shared/common/static/vendor/alpine.js b/radis/static/vendor/alpine.js similarity index 100% rename from adit_radis_shared/common/static/vendor/alpine.js rename to radis/static/vendor/alpine.js diff --git a/adit_radis_shared/common/static/vendor/bootstrap-icons.svg b/radis/static/vendor/bootstrap-icons.svg similarity index 100% rename from adit_radis_shared/common/static/vendor/bootstrap-icons.svg rename to radis/static/vendor/bootstrap-icons.svg diff --git a/adit_radis_shared/common/static/vendor/bootstrap.bundle.js b/radis/static/vendor/bootstrap.bundle.js similarity index 100% rename from adit_radis_shared/common/static/vendor/bootstrap.bundle.js rename to radis/static/vendor/bootstrap.bundle.js diff --git a/adit_radis_shared/common/static/vendor/bootstrap.bundle.js.map b/radis/static/vendor/bootstrap.bundle.js.map similarity index 100% rename from adit_radis_shared/common/static/vendor/bootstrap.bundle.js.map rename to radis/static/vendor/bootstrap.bundle.js.map diff --git a/adit_radis_shared/common/static/vendor/bootstrap.css b/radis/static/vendor/bootstrap.css similarity index 100% rename from adit_radis_shared/common/static/vendor/bootstrap.css rename to radis/static/vendor/bootstrap.css diff --git a/adit_radis_shared/common/static/vendor/bootstrap.css.map b/radis/static/vendor/bootstrap.css.map similarity index 100% rename from adit_radis_shared/common/static/vendor/bootstrap.css.map rename to radis/static/vendor/bootstrap.css.map diff --git a/adit_radis_shared/common/static/vendor/htmx-alpine-morph.js b/radis/static/vendor/htmx-alpine-morph.js similarity index 100% rename from adit_radis_shared/common/static/vendor/htmx-alpine-morph.js rename to radis/static/vendor/htmx-alpine-morph.js diff --git a/adit_radis_shared/common/static/vendor/htmx-ws.js b/radis/static/vendor/htmx-ws.js similarity index 100% rename from adit_radis_shared/common/static/vendor/htmx-ws.js rename to radis/static/vendor/htmx-ws.js diff --git a/adit_radis_shared/common/static/vendor/htmx.js b/radis/static/vendor/htmx.js similarity index 100% rename from adit_radis_shared/common/static/vendor/htmx.js rename to radis/static/vendor/htmx.js diff --git a/adit_radis_shared/common/static/vendor/popper.js b/radis/static/vendor/popper.js similarity index 100% rename from adit_radis_shared/common/static/vendor/popper.js rename to radis/static/vendor/popper.js diff --git a/adit_radis_shared/common/static/vendor/popper.js.map b/radis/static/vendor/popper.js.map similarity index 100% rename from adit_radis_shared/common/static/vendor/popper.js.map rename to radis/static/vendor/popper.js.map diff --git a/tasks.py b/tasks.py index 12c53283..d05251a3 100644 --- a/tasks.py +++ b/tasks.py @@ -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", )