summaryrefslogtreecommitdiff
path: root/scripts/asset-rebuild
blob: dd593804dcab1468a8493fc335a6bd82d179c21c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# Copyright (C) 2020 Daniel Friesel <daniel.friesel@uos.de>
#
# SPDX-License-Identifier: MIT

set -x

scripts/update-autocomplete

for theme in dark light; do
	sassc -t compressed sass/src/${theme}/index.scss public/static/css/${theme}.min.css
done

for file in autocomplete geolocation travelynx-actions; do
	uglifyjs public/static/js/${file}.js -c -m > public/static/js/${file}.min.js
done