Skip to content

Commit

Permalink
skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Hotchkiss committed Nov 29, 2011
0 parents commit c20bf20
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
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
```
12 changes: 12 additions & 0 deletions lib/version.js
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 */
24 changes: 24 additions & 0 deletions package.json
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"
}
}
18 changes: 18 additions & 0 deletions test/index.test.js
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 */

0 comments on commit c20bf20

Please sign in to comment.