-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Edward Hotchkiss
committed
Nov 29, 2011
0 parents
commit c20bf20
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
# version (NodeJS package.json version number display (wherever)) | ||
|
||
[![Build Status](https://secure.travis-ci.org/edwardhotchkiss/version.png)](http://travis-ci.org/edwardhotchkiss/version) | ||
|
||
### Installation | ||
|
||
```bash | ||
$ npm install version | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
/* | ||
version | ||
@class version | ||
@author Edward Hotchkiss | ||
*/ | ||
|
||
module.exports = version = function(repository) { | ||
return null; | ||
}; | ||
|
||
/* EOF */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"author": "Edward Hotchkiss <e@ingk.com>", | ||
"name": "version", | ||
"description": "NodeJS package.json version number display (wherever)", | ||
"version": "0.0.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/edwardhotchkiss/version.git" | ||
}, | ||
"keywords": ["version", "package", "json", "display", "number"], | ||
"main": "./lib/version", | ||
"engines":{ | ||
"node":">= 0.4.11 < 0.7.0" | ||
}, | ||
"dependencies": { | ||
}, | ||
"devDependencies":{ | ||
"vows":"0.5.13", | ||
"should":"0.3.2" | ||
}, | ||
"scripts": { | ||
"test": "vows test/*.test.js --spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
var vows = require("vows"); | ||
var assert = require("assert"); | ||
|
||
var version = require("../lib/version"); | ||
|
||
vows.describe("General Module Tests").addBatch({ | ||
"when instantiating version":{ | ||
topic:function(){ | ||
return version; | ||
}, | ||
"short should be a function":function(topic) { | ||
assert.equal(typeof(version), "function"); | ||
} | ||
} | ||
}).export(module); | ||
|
||
/* EOF */ |