This repository has been archived by the owner on Mar 27, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing Rake with Make and adding in infrastructure for testing.
- Loading branch information
Showing
4 changed files
with
55 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
})); | ||
}); |