galerie/build
0xf8 0039bacd24
Correctly add licence
Signed-off-by: 0xf8 <0xf8.dev@proton.me>
2023-02-25 12:24:58 -05:00

19 lines
359 B
Bash
Executable File

#! /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