Skip to content

Commit 141df40

Browse files
committed
Added (untested) build script for *nix
1 parent de8a69c commit 141df40

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ This repository holds the source code for the new Vue.js-based webapps for Pogo'
66

77
- `main/` is the client frontend for perusing the feed and listening to episodes.
88

9-
If on Windows, you can run `build.bat` to automagically build and aggregate the files into `dist\` in the root.
9+
You can run the `build.bat`/`build.sh` script (dependant on your OS) to automatically build the entire frontend for production.

build.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
# This script automatically builds and aggregates Pogo's frontend files
3+
if [ ! -d "dist" ]; then
4+
mkdir dist
5+
fi
6+
echo Building admin
7+
cd admin
8+
npm run build
9+
echo Copying admin files
10+
cp dist ../dist
11+
cd ..
12+
cd main
13+
echo Building main
14+
npm run build
15+
echo Copying main files
16+
cp dist ../dist
17+
cd ..
18+
echo Done

0 commit comments

Comments
 (0)