Skip to content

Commit

Permalink
removed version from gedcom lib so npm version matches. rolled back v…
Browse files Browse the repository at this point in the history
…ersion and fixed script to use npm
  • Loading branch information
dcapwell committed Jan 27, 2013
1 parent cf3e3b4 commit 8cbaf06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 1 addition & 3 deletions lib/gedcom.js
@@ -1,8 +1,7 @@
(function () { (function () {
"use strict"; "use strict";


var VERSION = '0.0.1', var Lazy = require('lazy'),
Lazy = require('lazy'),
fs = require('fs'), fs = require('fs'),
Gedcom = { Gedcom = {
parse: function (file, cb) { parse: function (file, cb) {
Expand Down Expand Up @@ -99,5 +98,4 @@
/* Exports /* Exports
/*************************************/ /*************************************/
module.exports = Gedcom; module.exports = Gedcom;
module.exports.VERSION = VERSION;
})(); })();
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{ {
"name": "gedcom", "name": "gedcom",
"description": "Gedcom parser", "description": "Gedcom parser",
"version": "0.0.2", "version": "0.0.1",
"main": "lib/gedcom.js", "main": "lib/gedcom.js",
"dependencies": { "dependencies": {
"lazy": "1.0.8" "lazy": "1.0.8"
Expand Down
7 changes: 4 additions & 3 deletions release.sh
Expand Up @@ -4,7 +4,7 @@ FILE=RELEASE_NOTES
TMP_FILE=${FILE}.tmp TMP_FILE=${FILE}.tmp
NAME=$(cat package.json | grep name | sed -e "s/.*name.*\"\(.*\)\",/\1/") NAME=$(cat package.json | grep name | sed -e "s/.*name.*\"\(.*\)\",/\1/")
VERSION=$(cat package.json | grep version | sed -e "s/.*version.*\"\(.*\)\",/\1/") VERSION=$(cat package.json | grep version | sed -e "s/.*version.*\"\(.*\)\",/\1/")
TAG=$NAME-$VERSION TAG=v$VERSION


echo "$TAG" > ${TMP_FILE} echo "$TAG" > ${TMP_FILE}
git describe --abbrev=0 2> /dev/null 1> /dev/null \ git describe --abbrev=0 2> /dev/null 1> /dev/null \
Expand All @@ -19,5 +19,6 @@ fi


mv ${TMP_FILE} $FILE mv ${TMP_FILE} $FILE


#git commit -a -m "[release-script] Updated release notes for version ${VERSION}" git add $FILE
#git tag -a $TAG -m "[auto-release] version $VERSION" git commit -a -m "[release-script] Updated release notes for version ${VERSION}"
npm version patch -m "[auto-release] version %s"

0 comments on commit 8cbaf06

Please sign in to comment.