From bab7f9e0bc5a6a6f0b4812b457e705ec2fa9daf3 Mon Sep 17 00:00:00 2001 From: Aaditya Bhatia Date: Sat, 28 Dec 2013 01:50:01 -0500 Subject: [PATCH] compile .coffee to .js before publishing to npm --- .gitignore | 2 ++ .npmignore | 2 ++ package.json | 20 ++++++++++++++++---- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .gitignore create mode 100644 .npmignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0353468 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.js + diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..5da7663 --- /dev/null +++ b/.npmignore @@ -0,0 +1,2 @@ +*.coffee + diff --git a/package.json b/package.json index 79b4d00..9573b8d 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,27 @@ { "name": "gitsha", - "version": "0.0.1", + "version": "0.1.0", "description": "read git SHA1 value of a repository's HEAD revision", "author": "Aaditya Bhatia ", - "main": "app.coffee", - "repository": "git://github.com/aadityabhatia/gitsha.git", + "repository": { + "type": "git", + "url": "https://github.com/aadityabhatia/gitsha.git" + }, "keywords": [ "git", "sha1sum", "sha", "repository" ], - "license": "Apache" + "main": "app.js", + "scripts": { + "prepublish": "coffee -c ." + }, + "engines": { + "node": ">=0.6.0" + }, + "licenses": [{ + "type": "Apache", + "url": "http://www.apache.org/licenses/LICENSE-2.0" + }] }