Permalink
Browse files

Improved Cakefile and bumped version to 0.2.0

  • Loading branch information...
1 parent 7c99a8e commit c03f68e21c5fe13215242352b61f147c56b76d59 @niclashoyer committed Apr 8, 2012
Showing with 12 additions and 9 deletions.
  1. +4 −8 Cakefile
  2. +8 −1 package.json
View
12 Cakefile
@@ -26,17 +26,13 @@ OTHER DEALINGS IN THE SOFTWARE.
util = require 'util'
{exec} = require 'child_process'
-task 'build', 'Build onion src files', ->
- exec "coffee -co lib src/Onion.coffee", (err, stdout, stderr) ->
+task 'build', 'Build src files', ->
+ exec "coffee -bc -o lib src", (err, stdout, stderr) ->
util.log err if err
- util.log "compiled onion"
+ util.log "compilation finished"
task 'docs', 'Generate documentation with docco', ->
- exec "docco src/*.coffee", (err, stdout, stderr) ->
+ exec "docco src/*.coffee examples/*.coffee", (err, stdout, stderr) ->
util.log err if err
util.log "docs generated"
-task 'test', 'Test with testfiles in testfolder', ->
- exec "nodeunit test", (err, stdout, stderr) ->
- console.log stderr if err?
- console.log stdout
View
9 package.json
@@ -1,6 +1,7 @@
{
"name": "onion",
- "version": "0.1.0",
+ "version": "0.2.0",
+ "description": "Simple and flexible middleware stack that enables you to add a middleware layer to just about anything",
"author": {
"name": "Niclas Hoyer",
"email": "https://github.com/niclashoyer"
@@ -12,5 +13,11 @@
"repository": {
"type": "git",
"url": "git://github.com/niclashoyer/onion.git"
+ },
+ "scripts": {
+ "test": "nodeunit test"
+ },
+ "devDependencies": {
+ "nodeunit": "0.7.x"
}
}

0 comments on commit c03f68e

Please sign in to comment.