From f8752567a83426c46da3ae552514d06735dfa1dd Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 3 Oct 2019 20:42:18 -0400 Subject: [PATCH] add scripts/deploy_local.sh --- scripts/deploy_local.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/deploy_local.sh diff --git a/scripts/deploy_local.sh b/scripts/deploy_local.sh new file mode 100755 index 0000000..02d79e8 --- /dev/null +++ b/scripts/deploy_local.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +cd $SNEJ_ROOT + +echo "deploying to $1" +mkdir -p $1 || exit +mkdir -p bundle/ +python3 scripts/assets.py stitch-sprites $SNEJ_ROOT/bundle/spritesheet +cp -r index.html main.js bundle/ $1 +echo "success!"