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

# Copyright (C) 2020 Birte Kristina Friesel <derf@finalrewind.org>
#
# SPDX-License-Identifier: MIT

set -x

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