forked from MapComplete/MapComplete
Fix build script
This commit is contained in:
parent
3277b83c5f
commit
7a43b55245
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
||||||
#! /bin/bash
|
#! /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
|
# 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
|
# Should be run from the repository root
|
||||||
|
# This is the main deployment script
|
||||||
rm -rf dist/*
|
rm -rf dist/*
|
||||||
rm -rf .cache
|
rm -rf .cache
|
||||||
mkdir dist 2> /dev/null
|
mkdir dist 2> /dev/null
|
||||||
|
@ -10,8 +11,10 @@ mkdir dist/assets 2> /dev/null
|
||||||
npm run generate
|
npm run generate
|
||||||
npm run test
|
npm run test
|
||||||
npm run generate:editor-layer-index
|
npm run generate:editor-layer-index
|
||||||
|
npm run generate:translations
|
||||||
npm run generate:layouts
|
npm run generate:layouts
|
||||||
|
|
||||||
|
|
||||||
# Copy the layer files, as these might contain assets (e.g. svgs)
|
# Copy the layer files, as these might contain assets (e.g. svgs)
|
||||||
cp -r assets/layers/ dist/assets/layers/
|
cp -r assets/layers/ dist/assets/layers/
|
||||||
cp -r assets/themes/ dist/assets/themes/
|
cp -r assets/themes/ dist/assets/themes/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue