forked from zendesk/radar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
64 lines (64 loc) · 2.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"name": "radar",
"description": "Realtime apps with a high level API based on engine.io",
"version": "0.3.3",
"author": "Mikito Takada <[email protected]>",
"contributors": [
{
"name": "Sam Shull",
"url": "http://github.com/samshull"
},
{
"name": "Vanchi Koduvayur",
"url": "https://github.com/vanchi-zendesk"
},
{
"name": "Nicolas Herment",
"url": "https://github.com/nherment"
}
],
"main": "index.js",
"keywords": [
"realtime",
"socket.io",
"engine.io",
"comet",
"ajax"
],
"repository": {
"type": "git",
"url": "https://github.com/zendesk/radar.git"
},
"dependencies": {
"engine.io": "0.2.x",
"miniee": "0.0.5",
"redis": "0.7.3",
"redis-sentinel-client": "0.1.4",
"minilog": "0.1.0",
"callback_tracker": "*",
"underscore": "*"
},
"devDependencies": {
"mocha": "*",
"radar_client": "0.2.18",
"long-stack-traces": "*"
},
"scripts": {
"prestart": "npm run check-modules",
"start": "node server.js",
"check-modules": "if [ -z \"$SKIP_PACKAGE_CHECK\" ] && [ ./package.json -nt ./node_modules ]; then echo 'Your node_modules are out of date. Please run \"npm update\"' && exit 1; fi",
"pretest": "npm run check-modules && npm run start-sentinel",
"start-sentinel": "./start_sentinel",
"copy-redis-config": "rm -f tests/configuration.js && cp tests/redis-configuration.js.example tests/configuration.js",
"copy-sentinel-config": "rm -f tests/configuration.js && cp tests/sentinel-configuration.js.example tests/configuration.js",
"test-redis": "npm run copy-redis-config && ls ./tests/*.test.js | xargs -n 1 -t -I {} sh -c 'TEST=\"{}\" npm run test-one'",
"test-sentinel": "npm run copy-sentinel-config && ls ./tests/*.test.js | xargs -n 1 -t -I {} sh -c 'TEST=\"{}\" npm run test-one'",
"test": "npm run test-redis && npm run test-sentinel",
"posttest": "./stop_sentinel",
"pretest-one": "[ -z \"$radar_log\" ] && export radar_log=-*",
"test-one": "./node_modules/.bin/mocha --ui exports --reporter spec --slow 2000ms --bail \"$TEST\"",
"test-debug": "./node_modules/.bin/mocha debug --ui exports --reporter spec --slow 2000ms --bail \"$TEST\"",
"reset-stats": "redis-cli KEYS 'radar:/audit/*' | xargs redis-cli DEL",
"read-stats": "/opt/redis/redis-cli KEYS 'radar:/audit/*' | xargs --verbose -n 1 /opt/redis/redis-cli GET"
}
}