Skip to content

Commit

Permalink
Adding base folder structure, package.json and test setup for Vows.
Browse files Browse the repository at this point in the history
  • Loading branch information
aikar committed Mar 24, 2011
1 parent 58418bf commit ffe4fd0
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cosmos.komodoproject
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Komodo Project File - DO NOT EDIT -->
<project id="038ff781-19bc-4b1a-afd6-29c475bdb179" kpf_version="5" name="Cosmos.komodoproject">
</project>
2 changes: 2 additions & 0 deletions bin/cosmos
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
require('../lib/cli').invoke();
5 changes: 5 additions & 0 deletions lib/cli.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
invoke: function() {

}
}
Empty file added lib/cosmos.js
Empty file.
28 changes: 28 additions & 0 deletions package.json
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "cosmos",
"description": "A distributed event driven and RPC based application framework for Node.JS",
"version": "0.0.1",
"homepage": "http://aikar.co/cosmos",
"repository": {
"type": "git",
"url": "git@github.com:aikar/cosmos"
},
"author": "Aikar <aikar@aikar.co> (http://aikar.co)",
"main": "lib/cosmos.js",
"directories": {
"lib": "lib"
},
"devDependencies": {
"vows": ""
},
"bugs": {
"mail": "aikar@aikar.co",
"web": "https://github.com/aikar/cosmos/issues"
},
"scripts": {
"test": "test/runTest.js"
},
"engines": {
"node": ">=4"
}
}
9 changes: 9 additions & 0 deletions runTest.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env node
var fs = require('fs');
process.chdir(__dirname + '/test');
if (process.argv.length <= 2) {
// Add all tests to be ran.
process.argv = process.argv.concat(fs.readdirSync('.'));
}
process.argv.push('--spec');
require('vows/bin/vows'); // load the CLI script.
7 changes: 7 additions & 0 deletions test/cosmos.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,7 @@
var vows = require('vows');
vows.describe('Cosmos').addBatch({
'Is Cool': {
topic: true,
'Confirmed Cool': function(){}
}
}).export(module);

0 comments on commit ffe4fd0

Please sign in to comment.