#!/bin/sh -x
rm -rf node_modules
npm install strider
# find node_modules -name build -type d -print | xargs rm -rf
version=`grep '"version"' node_modules/strider/package.json  | head -1 | sed -e 's;.*: ";;' -e 's;".*;;'`
date=`date '+%Y%m%d'`
tar cvf - node_modules | xz -9 >strider-$version-$date.tar.xz
rm -rf node_modules
