chore: Refactor build:server to bashfile

This commit is contained in:
Tom Moor
2023-01-02 16:00:01 -05:00
parent 28a54113e1
commit 435969cf4b
2 changed files with 14 additions and 1 deletions

13
build.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
yarn babel --extensions .ts,.tsx --quiet -d ./build/server ./server
yarn babel --extensions .ts,.tsx --quiet -d ./build/shared ./shared
# Copy static files
cp ./server/collaboration/Procfile ./build/server/collaboration/Procfile
cp package.json ./build
cp ./server/static/error.dev.html ./build/server/error.dev.html
cp ./server/static/error.prod.html ./build/server/error.prod.html
# Link webpack config
ln -sf \"$(pwd)/webpack.config.dev.js\" ./build