Skip to content

Commit

Permalink
VERSIONS, cutarelease prep
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Feb 2, 2012
1 parent 29c63b1 commit 135163e
Show file tree
Hide file tree
Showing 4 changed files with 478 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
@@ -0,0 +1,6 @@
# bunyan Changelog

## bunyan 0.1.0 (not yet released)

First release.

12 changes: 12 additions & 0 deletions Makefile
@@ -0,0 +1,12 @@

all:

# Ensure jsontool.js and package.json have the same version.
versioncheck:
[[ `cat package.json | json version` == `grep '^var VERSION' bin/bunyan | awk -F'"' '{print $$2}'` ]]
[[ `cat package.json | json version` == `grep '^var VERSION' lib/bunyan.js | awk -F'"' '{print $$2}'` ]]
@echo Version check ok.

cutarelease: versioncheck
./tools/cutarelease.py -f package.json -f lib/bunyan.js -f bin/bunyan

3 changes: 3 additions & 0 deletions lib/bunyan.js
Expand Up @@ -2,6 +2,8 @@
* Copyright 2012 (c) Trent Mick. All rights reserved.
*/

var VERSION = "0.1.0";

// Bunyan log format version. This becomes the 'v' field on all log records.
// `0` is until I release a version "1.0.0" of node-bunyan. Thereafter,
// starting with `1`, this will be incremented if there is any backward
Expand Down Expand Up @@ -612,5 +614,6 @@ Logger.stdSerializers.res = function res(res) {
//---- Exports

module.exports = Logger;
module.exports.VERSION = VERSION;


0 comments on commit 135163e

Please sign in to comment.