Permalink
Browse files

scripts: add script to print out package.json

The noteworthy difference being that we are using git to get the
version.

Signed-off-by: Alexander Alemayhu <alexander@alemayhu.com>
  • Loading branch information...
scanf committed Mar 20, 2017
1 parent e8314bb commit dafb5b59f52a962a598bc1bfb2f9441e4760dc68
Showing with 20 additions and 0 deletions.
  1. +20 −0 scripts/gen-package-meta
@@ -0,0 +1,20 @@
#!/bin/bash
echo "{"
echo " \"name\": \"2nft\","
echo " \"version\": \"`git describe --tags`\","
echo " \"description\": \"web application to use iptables-translate\","
echo " \"main\": \"index.js\","
echo " \"dependencies\": {"
echo " \"body-parser\": \"^1.17.1\","
echo " \"express\": \"^4.15.0\","
echo " \"nodemon\": \"^1.11.0\""
echo " },"
echo " \"devDependencies\": {},"
echo " \"scripts\": {"
echo " \"test\": \"echo \\"Error: no test specified\\" && exit 1\","
echo " \"start\": \"node index.js\""
echo " },"
echo " \"author\": \"Alexander Alemayhu\","
echo " \"license\": \"ISC\""
echo "}"

0 comments on commit dafb5b5

Please sign in to comment.