#!/bin/sh -x
rm -rf node_modules
npm install eslint eslint-config-standard eslint-plugin-import eslint-plugin-node
version=`grep '"version"' node_modules/eslint/package.json  | sed -e 's;.*: ";;' -e 's;".*;;'`
date=`date '+%Y%m%d'`
tar cvf - node_modules | gzip -9 >eslint-$version-$date.tar.gz
rm -rf node_modules
