forked from mojaloop/central-ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
127 lines (127 loc) · 5.08 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
{
"name": "@mojaloop/central-ledger",
"version": "2.4.1-release",
"description": "Central ledger hosted by a scheme to record and settle transfers.",
"license": "Apache-2.0",
"private": true,
"repository": {
"type": "git",
"url": "[email protected]:mojaloop/central-ledger.git"
},
"config": {
"knex": "--knexfile ./config/knexfile.js",
"images": {
"api": "central-ledger",
"admin": "central-ledger-admin"
}
},
"standard": {
"ignore": [
"/migrations/**"
]
},
"scripts": {
"start": "run-p start:api start:admin",
"start:api": "CLEDG_HOSTNAME=http://localhost:3000 node src/api/index.js",
"start:handlers": "node src/handlers/index.js",
"start:admin": "CLEDG_ADMIN_KEY=admin CLEDG_ADMIN_SECRET=admin CLEDG_HOSTNAME=http://localhost:3001 node src/admin/index.js",
"dev": "npm run docker:stop && docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d",
"test": "npm run test:unit | faucet",
"pretest": "standard",
"standard": "standard",
"test:unit": "tape 'testPI2/unit/**/*.test.js'",
"test:all": "run-s test test:integration test:functional test:spec",
"test:xunit": "tape 'testPI2/unit/**/*.test.js' | tap-xunit",
"test:coverage": "istanbul cover tape -- 'testPI2/unit/**/*.test.js'",
"test:coverage-check": "npm run test:coverage && istanbul check-coverage",
"test:integration": "sh ./testPI2/integration-runner.sh ./testPI2/integration-runner.env",
"test:functional": "run-s docker:build test:functional:test-only",
"test:functional:test-only": "sh ./testPI2/functional-runner.sh docker-compose.yml docker-compose.functional.yml ./test/.env",
"test:spec:test-only": "sh ./testPI2/spec-runner.sh ./test/.env",
"test:spec": "run-s docker:build test:spec:test-only",
"db:psql": "docker run -it --net centralledger_back --rm postgres:9.4 sh -c 'exec psql -h postgres -p \"$POSTGRES_PORT_5432_TCP_PORT\" -U central_ledger -d postgres'",
"migrate": "run-s migrate:latest seed:run",
"migrate:latest": "knex $npm_package_config_knex migrate:latest",
"migrate:create": "knex migrate:make $npm_package_config_knex",
"migrate:rollback": "knex migrate:rollback $npm_package_config_knex",
"migrate:current": "knex migrate:currentVersion $npm_package_config_knex",
"seed:run": "knex seed:run $npm_package_config_knex",
"docker:build": "run-s docker:build:test docker:build:api docker:build:admin",
"docker:build:test": "docker build --no-cache -f test.Dockerfile -t $npm_package_config_images_api:test .",
"docker:build:api": "docker build --no-cache -f api.Dockerfile -t $npm_package_config_images_api:latest .",
"docker:build:admin": "docker build --no-cache -f admin.Dockerfile -t $npm_package_config_images_admin:latest .",
"docker:stop": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.functional.yml stop",
"docker:rm": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.functional.yml rm -f -v",
"docker:clean": "docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.functional.yml down --rmi local",
"generate-docs": "node_modules/.bin/jsdoc -c jsdoc.json"
},
"dependencies": {
"@mojaloop/central-services-auth": "0.2.0",
"@mojaloop/central-services-database": "^1.2.4-snapshotMYSQL",
"@mojaloop/central-services-error-handling": "0.5.1",
"@mojaloop/central-services-shared": "^3.1.0-snapshot",
"@mojaloop/forensic-logging-client": "0.5.1",
"@now-ims/hapi-now-auth": "1.0.1",
"argon2": "0.17.1",
"bcrypt": "1.0.3",
"blipp": "3.0.0",
"bluebird": "3.5.0",
"boom": "^7.2.0",
"continuation-local-storage": "3.2.0",
"deasync-promise": "1.0.1",
"decimal.js": "9.0.1",
"docdash": "^0.4.0",
"enjoi": "^3.2.4",
"five-bells-condition": "5.0.1",
"flat": "4.0.0",
"glob": "7.1.1",
"good": "8.1.0",
"good-squeeze": "^5.0.2",
"good-winston": "4.0.0",
"hapi": "17.2.0",
"hapi-auth-basic": "5.0.0",
"hapi-auth-bearer-token": "^6.0.1",
"hapi-swagger": "9.0.2",
"inert": "5.1.0",
"joi": "13.1.2",
"jsdoc": "^3.5.5",
"json2csv": "3.11.5",
"jsonwebtoken": "8.1.1",
"knex": "0.14.2",
"lodash": "4.17.4",
"moment": "2.21.0",
"mustache": "^2.3.0",
"mysql": "^2.15.0",
"nodemailer": "4.4.2",
"rc": "1.2.5",
"require-glob": "^3.2.0",
"sodium": "2.0.3",
"urlsafe-base64": "1.0.0",
"uuid4": "1.0.0",
"vision": "5.3.1",
"wait-for-stuff": "^1.4.0",
"winston": "2.4.0",
"ws": "4.0.0"
},
"optionalDependencies": {
"mysql": "^2.15.0"
},
"devDependencies": {
"aws-sdk": "2.16.0",
"faucet": "0.0.1",
"five-bells-ledger-api-tests": "github:interledgerjs/five-bells-ledger-api-tests",
"istanbul": "1.1.0-alpha.1",
"mag": "0.9.1",
"mag-hub": "0.1.1",
"npm-run-all": "4.0.1",
"pre-commit": "1.1.3",
"proxyquire": "1.7.10",
"rewire": "^4.0.1",
"sinon": "^5.1.1",
"standard": "8.5.0",
"supertest": "2.0.1",
"tap-xunit": "1.4.0",
"tape": "4.6.2",
"tapes": "4.1.0"
}
}