diff --git a/dashboard/build.sh b/dashboard/build.sh index 6594239f2..3b79a0616 100755 --- a/dashboard/build.sh +++ b/dashboard/build.sh @@ -2,8 +2,14 @@ set -eu +echo "=> Update translation files" +npm run update-translations + +echo "=> Create timezones.js" ./scripts/createTimezones.js ./public/js/timezones.js +echo "=> Build theme.css" ./node_modules/.bin/sass -I node_modules/bootstrap-sass/assets/stylesheets/ ./src/theme.scss ./public/theme.css -./node_modules/.bin/vite build \ No newline at end of file +echo "=> Build the dashboard apps" +./node_modules/.bin/vite build diff --git a/dashboard/package.json b/dashboard/package.json index 88757be8e..8519fea3c 100644 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -4,7 +4,7 @@ "description": "[Cloudron](https://cloudron.io) is the best way to run apps on your server.", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "update-translations": "curl https://translate.cloudron.io/api/components/cloudron/dashboard/file/ -o lang.zip && unzip -jo lang.zip -d ./src/translation/ && rm lang.zip" + "update-translations": "curl https://translate.cloudron.io/api/components/cloudron/dashboard/file/ -o lang.zip && unzip -jo lang.zip -d ./public/translation/ && rm lang.zip" }, "repository": { "type": "git",