forked from brave-intl/bat-ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
150 lines (150 loc) · 5.47 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"name": "bat-ledger",
"version": "0.9.0",
"description": "A BAT micropayments system for users and publishers.",
"main": "index.js",
"scripts": {
"ava": "ava",
"eyeshade-server": "node eyeshade/server.js",
"eyeshade-consumer": "node eyeshade/consumer.js",
"eyeshade-cronjob": "node eyeshade/cronjob.js",
"eyeshade-producer": "node bin/migrate-mongo-to-kafka.js",
"start": "echo use 'npm run eyeshade-web' or 'npm run eyeshade-consumer' or 'npm run eyeshade-cronjob'",
"start-eyeshade": "NODE_PATH=. DEBUG=*,-mongo:*,mongo:queries SERVICE=eyeshade node eyeshade/server.js",
"start-eyeshade-consumer": "NODE_PATH=. DEBUG=*,-mongo:*,mongo:queries SERVICE=eyeshade node eyeshade/consumer.js",
"test": "nyc --reporter=html --reporter=text npm run test-all",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"test-all": "npm run test-isup && npm run test-unit && npm run test-integration",
"test-isup": "ava -v -s test/isup.integration.test.js",
"docker-test": "docker-compose run --rm -v $(pwd)/test:/usr/src/app/test -v $(pwd)/eyeshade:/usr/src/app/eyeshade -v $(pwd)/bat-utils:/usr/src/app/bat-utils eyeshade-web npm run test",
"lint": "npx standard",
"lint-fix": "npm run lint -- --fix",
"security": "npm run lint && npm run moderate-audit",
"moderate-audit": "npm audit --audit-level=moderate; echo $?",
"test-integration": "ava -v -s test/*/*.integration.test.js",
"test-suggestions": "ava -v -s test/eyeshade/suggestions.integration.test.js",
"test-unit": "ava -v -s bat-utils/**/*.test.js eyeshade/**/*.test.js",
"docker-reset": "docker-compose down && docker rmi $(docker images -a -q) --force",
"docker-build": "docker-compose build",
"docker-seed-eyeshade": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml run --rm -w /usr/src/app/eyeshade eyeshade-web bash ./bin/seed.sh",
"docker-up": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up $npm_package_config_dockerservices",
"docker-up-dev": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml up $npm_package_config_dockerservices $npm_package_config_dockermonitors",
"docker-up-detached": "docker-compose up -d $npm_package_config_dockerservices",
"docker-migrate-eyeshade-up": "docker-compose -f docker-compose.yml run --rm -w /usr/src/app/eyeshade eyeshade-web npm run migrate-up",
"migrate-up": "./bin/migrate-up.sh",
"docker-migrate-up": "npm run docker-migrate-eyeshade-up && npm run docker-seed-eyeshade",
"docker-migrate-down": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml run --rm -w /usr/src/app/eyeshade eyeshade-web ./bin/migrate-down.sh",
"docker-migrate-down-all": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml run --rm -w /usr/src/app/eyeshade eyeshade-web bash ./bin/migrate-down-all.sh",
"docker-log-detached": "docker-compose logs",
"postinstall": "test -e .git && { for file in `ls .git-hooks`; do ln -sf ../../.git-hooks/${file} .git/hooks/${file}; done } || true"
},
"config": {
"dockermonitors": "prometheus grafana",
"dockerservices": "eyeshade-web eyeshade-consumer"
},
"repository": {
"type": "git",
"url": "https://github.com/brave-intl/bat-ledger.git"
},
"author": "Brave Developers <[email protected]>",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/brave-intl/bat-ledger/issues"
},
"homepage": "https://github.com/brave-intl/bat-ledger",
"dependencies": {
"@hapi/boom": "^9.1.1",
"@hapi/hapi": "^18.4.1",
"@hapi/inert": "^5.2.2",
"@hapi/wreck": "^17.1.0",
"@sentry/node": "^5.13.2",
"@uphold/uphold-sdk-javascript": "^2.4.0",
"ava": "^3.15.0",
"avro-js": "1.9.1",
"bat-utils": "file:./bat-utils",
"bignumber.js": "^4.1.0",
"bitcoinjs-lib": "^3.2.0",
"bluebird": "^3.7.2",
"bs58check": "^2.0.2",
"bson": "^1.1.6",
"country-list": "1.1.0",
"cron-parser": "2.4.1",
"currency-codes": "1.1.2",
"dotenv": "^8.2.0",
"ethereum-address": "0.0.4",
"exposition": "^1.2.0",
"gridfs-stream": "1.1.1",
"hapi-auth-bearer-token": "^6.1.4",
"hapi-require-https": "^4.0.0",
"http-request-signature": "0.0.3",
"joi": "^17.3.0",
"moment": "^2.29.1",
"mongodb": "^3.5.4",
"monk": "^7.1.2",
"netmask": "^2.0.1",
"newrelic": "^4.1.1",
"nyc": "^15.1.0",
"pg": "^7.18.2",
"pg-format": "^1.0.4",
"prom-client": "11.5.3",
"proxy-agent": "^4.0.1",
"queue-microtask": "github:brave-intl/queue-microtask#master",
"rate-limiter-flexible": "^1.3.2",
"redis": "^3.1.2",
"sdebug": "^1.0.0",
"sinek": "^7.30.1",
"tldjs": "2.2.0",
"underscore": "^1.13.1",
"uuid": "^8.3.2"
},
"engines": {
"node": "8.9.2",
"npm": "5.10.0"
},
"devDependencies": {
"coveralls": "^3.0.6",
"parse-prometheus-text-format": "^1.1.1",
"standard": "~14.0.1",
"supertest": "^4.0.2"
},
"standard": {
"ignore": [
"config.js",
"bat-utils/config/config.*"
]
},
"nyc": {
"per-file": true,
"all": true,
"watermarks": {
"lines": [
90,
100
],
"functions": [
90,
100
],
"branches": [
90,
100
],
"statements": [
90,
100
]
},
"include": [
"eyeshade/**/*.js",
"bat-utils/**/*.js"
],
"exclude": [
"bin/**/*",
"eyeshade/bin/**/*.js"
],
"reporter": [
"lcov",
"text-summary"
]
}
}