Skip to content

Instantly share code, notes, and snippets.

@ds0nt
Created September 21, 2015 17:06
Show Gist options
  • Save ds0nt/5123bb7f55e9bcb9beb7 to your computer and use it in GitHub Desktop.
Save ds0nt/5123bb7f55e9bcb9beb7 to your computer and use it in GitHub Desktop.
# bullshit ^ is not the working directory
BASE=/home/ubuntu/src/github.com/kloudsio/klouds.io
WWW=$BASE/www
CLIENT=$BASE/client
SERVER=$BASE/server
#
# build the web client
#
cd $CLIENT
mkdir -p "$WWW"
cp -rvu $CLIENT/src/public/* $WWW
npm install
npm install -g babel browserify myth watchify envify
# transpile client
./scripts/deku-wrap.sh
browserify -v -d src/app.js -t babelify -t envify -o $WWW/app.js
myth src/styles/app.css $WWW/app.css
#
cd $SERVER
npm install
cd $BASE
npm install koa koa-static unruly debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment