#!/bin/sh -x
rm -rf node_modules
npm install browser-sync
version=`grep '"version":' node_modules/browser-sync/package.json | tail -1 | sed -e 's;.*: ";;' -e 's;".*;;'`
date=`date '+%Y%m%d'`
tar cf - node_modules | xz -9 >browsersync-$version-$date.tar.xz
rm -rf node_modules
