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