chore: Refactor build:server to bashfile
This commit is contained in:
13
build.sh
Executable file
13
build.sh
Executable 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
|
||||
Reference in New Issue
Block a user