travelynx/scripts/asset-rebuild
2023-07-03 17:59:25 +02:00

17 lines
410 B
Bash
Executable file

#!/bin/sh
# Copyright (C) 2020 Birte Kristina Friesel <derf@finalrewind.org>
#
# 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