summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/asset-rebuild10
-rwxr-xr-xscripts/asset-release4
2 files changed, 13 insertions, 1 deletions
diff --git a/scripts/asset-rebuild b/scripts/asset-rebuild
index dd32113..eb6a140 100755
--- a/scripts/asset-rebuild
+++ b/scripts/asset-rebuild
@@ -1,7 +1,15 @@
#!/bin/sh
+# Copyright (C) 2020 Birte Kristina Friesel <derf@finalrewind.org>
+#
+# SPDX-License-Identifier: MIT
+
set -x
-for file in autocomplete geolocation travelynx-actions; do
+for theme in dark light; do
+ sassc -t compressed sass/src/${theme}/index.scss public/static/css/${theme}.min.css
+done
+
+for file in geolocation travelynx-actions; do
uglifyjs public/static/js/${file}.js -c -m > public/static/js/${file}.min.js
done
diff --git a/scripts/asset-release b/scripts/asset-release
index dc4a8a7..1f96d33 100755
--- a/scripts/asset-release
+++ b/scripts/asset-release
@@ -1,5 +1,9 @@
#!/bin/sh
+# Copyright (C) 2020 Birte Kristina Friesel <derf@finalrewind.org>
+#
+# SPDX-License-Identifier: MIT
+
set -ex
current="$(find public/static/v* | tail -n 1 | grep -o '..$')"