galerie/build

19 lines
359 B
Plaintext
Raw Permalink Normal View History

#! /usr/bin/bash
rm -rf dist
echo Building api server
cd srv
yarn build --no-source-maps > /dev/null 2>&1
echo Building website
cd ../web
yarn build --no-source-maps > /dev/null 2>&1
echo Creating dist
cd ..
cp srv/dist dist -fr
cp web/dist dist/web -fr
cp srv/node_modules dist/node_modules -rf
cp srv/public dist/public -rf
cp web/static/* dist/web/ -rf