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