You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
387 B

5 years ago
#!/bin/sh -x
mkdir dummy && (cd dummy && npm init -y >/dev/null 2>&1) && mv dummy/package.json . && rmdir dummy
rm -rf node_modules
npm install dsig
version=`grep '"version":' node_modules/dsig/package.json | sed -e 's;.*: ";;' -e 's;".*;;'`
date=`date '+%Y%m%d'`
tar cvf - --exclude .nyc_output node_modules | gzip -9 >dsig-$version-$date.tar.gz
rm -rf node_modules
rm -f package.json