Skip to content
This repository has been archived by the owner on Mar 27, 2018. It is now read-only.

Commit

Permalink
Replacing Rake with Make and adding in infrastructure for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
miksago committed Nov 1, 2010
1 parent 8d28ad3 commit 8046b92
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 83 deletions.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
release:
node tools/release.js

publish: release
npm publish .

test:
@echo "Running Simple Tests"
@find -f test/simple/test-*.js | xargs -n 1 -t node

test-all: test
@echo "Running All Tests"
@find -f test/pummel/test-*.js | xargs -n 1 -t node

benchmark:
@echo "Running Benchmarks"
@find -f benchmark/simple/*.js | xargs -n 1 -t node

doc:
node tools/doctool/doctool.js

.PHONY: release publish test test-all benchmark doc
73 changes: 0 additions & 73 deletions Rakefile

This file was deleted.

10 changes: 0 additions & 10 deletions TODO.md

This file was deleted.

33 changes: 33 additions & 0 deletions tools/release.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
var fs = require("fs")
, cp = require("child_process")
, cwd = process.cwd;

cp.exec("git describe", function(err, stdout, stderr) {
fs.writeFile("package.json", JSON.stringify({
version: stdout.match(/v([0-9]+\.[0-9]+\.[0-9]+)/)[1],
description: "A WebSocket Server for node.js, 90-100% spec compatible.",
repository: {
type: "git",
url: "http://github.com/miksago/node-websocket-server.git"
},
directories: {
doc: "./doc",
lib: "./lib/ws/"
},
main: "./lib/ws/server",
bugs: {
web: "http://github.com/miksago/node-websocket-server/issues"
},
author: "Micheil Smith <[email protected]>",
licenses: [
{
type: "MIT",
url: "./LICENSE.md"
}
],
name: "websocket-server",
engines: {
node: ">=0.2.0-0"
}
}));
});

0 comments on commit 8046b92

Please sign in to comment.