Fix build script

This commit is contained in:
Pieter Vander Vennet 2022-01-08 19:15:56 +01:00
parent 3277b83c5f
commit 7a43b55245

View file

@ -1,7 +1,8 @@
#! /bin/bash
echo "Starting build.Should"
echo "Starting build"
# The build script; we build the application step by step as building everything at once takes too much RAM
# Should be run from the repository root
# This is the main deployment script
rm -rf dist/*
rm -rf .cache
mkdir dist 2> /dev/null
@ -10,8 +11,10 @@ mkdir dist/assets 2> /dev/null
npm run generate
npm run test
npm run generate:editor-layer-index
npm run generate:translations
npm run generate:layouts
# Copy the layer files, as these might contain assets (e.g. svgs)
cp -r assets/layers/ dist/assets/layers/
cp -r assets/themes/ dist/assets/themes/