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