Skip to content

Commit

Permalink
project initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
logicalparadox committed Jul 11, 2012
0 parents commit 63fb0bb
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz

pids
logs
results

node_modules
npm-debug.log
*.swp

coverage.html
10 changes: 10 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git*
docs/
support/
test/
.DS_Store
coverage.html
lib-cov
.travis.yml
Makefile
*.swp
Empty file added History.md
Empty file.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
TESTS = test/*.js
REPORTER = spec

test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter $(REPORTER) \
--timeout 10000 \
$(TESTS)

test-cov: lib-cov
@FLYNN_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html

lib-cov: clean
@jscoverage lib lib-cov

clean:
@rm -rf lib-cov
@rm -f coverage.html

.PHONY: test lib-cov test-cov clean
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Flynn


3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = process.env.FLYNN_COV
? require('./lib-cov/flynn')
: require('./lib/flynn');
1 change: 1 addition & 0 deletions lib/flynn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exports.version = '0.0.0';
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"author": "Jake Luer <jake@alogicalpardox.com> (http://alogicalparadox.com)",
"name": "flynn",
"description": "Node process management.",
"version": "0.0.0",
"main": "./index",
"scripts": {
"test": "make test"
},
"dependencies": {
"drip": "0.3.x"
, "fsagent": "0.3.x"
},
"devDependencies": {
"chai": "*"
, "mocha": "*"
},
"optionalDependencies": {},
"engines": {
"node": "*"
}
}
12 changes: 12 additions & 0 deletions test/flynn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var chai = require('chai')
, should = chai.should();

var flynn = require('..');

describe('Flynn', function () {

it('has a version', function () {
flynn.should.have.property('version');
});

});

0 comments on commit 63fb0bb

Please sign in to comment.