diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 11:29:03 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 11:36:05 +0200 |
commit | 66dd264f7b15c05006faa00694c88c56794edc54 (patch) | |
tree | 7545d2f52b8019c128897c120dab7bcbafb586cd /scripts/dev | |
parent | 69f616ab3aeefd6ce330600604df90f2f48bfe3b (diff) | |
download | PeerTube-66dd264f7b15c05006faa00694c88c56794edc54.tar.gz PeerTube-66dd264f7b15c05006faa00694c88c56794edc54.tar.zst PeerTube-66dd264f7b15c05006faa00694c88c56794edc54.zip |
Better build/dev scripts
Diffstat (limited to 'scripts/dev')
-rwxr-xr-x | scripts/dev/client.sh | 5 | ||||
-rwxr-xr-x | scripts/dev/server.sh | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/dev/client.sh b/scripts/dev/client.sh new file mode 100755 index 000000000..6d4e7000e --- /dev/null +++ b/scripts/dev/client.sh | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | NODE_ENV=test concurrently -k \ | ||
4 | "npm run watch:client" \ | ||
5 | "npm run build:server && NODE_ENV=test npm start" | ||
diff --git a/scripts/dev/server.sh b/scripts/dev/server.sh new file mode 100755 index 000000000..bff26cb4b --- /dev/null +++ b/scripts/dev/server.sh | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | if [ ! -d "./client/dist" ]; then | ||
4 | echo "client/dist does not exist, compile client files..." | ||
5 | npm run build:client | ||
6 | fi | ||
7 | |||
8 | npm run watch:server | ||