forked from hyperledger-labs/blockchain-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
106 lines (106 loc) · 4.59 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
{
"name": "hyperledger-explorer",
"version": "1.0.0-rc1",
"description": "hyperledger-explorer",
"private": true,
"main": "main.js",
"keywords": [
"fabric-client sample app",
"v1.4.0 fabric nodesdk sample"
],
"engines": {
"node": "^8.11.2",
"npm": "^5.10.0"
},
"dependencies": {
"ajv": "^5.5.2",
"app-root-path": "^2.0.1",
"asn1.js": "^5.0.1",
"body-parser": "^1.17.2",
"child_process": "^1.0.2",
"classnames": "^2.2.6",
"co": "^4.6.0",
"compression": "^1.7.2",
"convert-hex": "^0.1.0",
"ejs": "^2.5.6",
"enum": "^2.5.0",
"express": "^4.15.3",
"express-rate-limit": "^5.0.0",
"fabric-ca-client": "^1.4.4",
"fabric-client": "^1.4.4",
"fabric-network": "^1.4.4",
"fast-stats": "0.0.3",
"fs-extra": "^6.0.1",
"grpc": "^1.20.3",
"helmet": "^3.21.1",
"http-status-codes": "^1.3.0",
"js-sha256": "^0.9.0",
"jsonwebtoken": "^8.5.0",
"log4js": "^6.1.0",
"multer": "^1.3.0",
"npm-run-all": "^4.1.5",
"passport": "^0.4.0",
"passport-local": "^1.0.0",
"pg": "^7.12.1",
"pg-pool": "^2.0.7",
"prettyjson": "^1.2.1",
"prop-types": "^15.6.2",
"query-string": "^6.9.0",
"save": "^2.3.3",
"stomp-broker-js": "^0.1.3",
"stompjs": "^2.3.3",
"swagger-ui-express": "^4.0.5",
"utf8-bytes": "0.0.1",
"winston": "^2.2.0",
"ws": "^5.1.1",
"yn": "^4.0.0"
},
"license": "Apache-2.0",
"devDependencies": {
"babel-eslint": "10.0.1",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.0",
"eslint-plugin-react": "^7.10.0",
"eslint-plugin-spellcheck": "0.0.11",
"husky": "^0.14.3",
"lint-staged": "^7.2.0",
"prettier": "^1.13.7"
},
"lint-staged": {
"**/*.{js,jsx,json,css}": [
"prettier --single-quote --write",
"git add"
],
"**/*.{js,jsx,css}": [
"eslint",
"git add"
]
},
"scripts": {
"docker_build": "docker build --squash -t $npm_package_name .",
"docker_push": "docker push ${DOCKER_REGISTRY}/$npm_package_name:$npm_package_version",
"docker_tag": "docker tag $npm_package_name ${DOCKER_REGISTRY}/$npm_package_name:$npm_package_version",
"lint": "eslint .",
"linter": "eslint",
"lint:fix": "eslint . --fix",
"precommit": "lint-staged && ./scripts/verify-license.sh",
"e2e-test-check-tool": "/bin/bash -c 'if [[ -z $(which configtxgen) ]]; then echo \"### Need to install tools ###\n\"; exit -1; fi'",
"e2e-test-check-img": "/bin/bash -c 'if [[ -z $(docker images -q hyperledger/fabric-peer:latest) ]]; then echo \"### Need to pull fabric images ###\n\"; exit -1; fi'",
"e2e-test-setup-tool:ci": "/bin/bash -c 'which configtxgen >/dev/null; if [[ $? -eq 0 ]] && [[ $(configtxgen -version | grep Version: | sed -e \"s/^.*:\\s*//\") == \"1.4.4\" ]]; then echo Found; else echo Not found; curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 1.4.4 1.4.4 0.4.18 -s; fi'",
"e2e-test-setup-fabric-ca-client:ci": "cd app/platform/fabric/e2e-test/feature; if [ ! -f ./bin/fabric-ca-client ]; then mkdir bin; wget -O - https://github.com/hyperledger/fabric-ca/releases/download/v1.4.4/hyperledger-fabric-ca-linux-amd64-1.4.4.tar.gz | tar --strip-components=1 -zxf - -C bin; fi",
"e2e-test-setup-env": "cd app/platform/fabric/e2e-test/feature; if [ ! -e e2e-test ]; then virtualenv e2e-test; fi && . ./e2e-test/bin/activate && pip install -U setuptools && pip install -r requirement.txt",
"e2e-test-setup-img": "./build_docker_image.sh",
"e2e-test-run": "cd app/platform/fabric/e2e-test/feature; . ./e2e-test/bin/activate && behave explorer.feature",
"e2e-test-run-sanitycheck": "cd app/platform/fabric/e2e-test/feature; . ./e2e-test/bin/activate && behave --stop --no-skipped --no-capture explorer.feature",
"e2e-test": "run-s e2e-test-check-tool e2e-test-check-img e2e-test-setup-env e2e-test-setup-img e2e-test-run",
"e2e-test-sanitycheck:ci": "cross-env PATH=$PATH:$PWD/bin run-s e2e-test-setup-tool:ci e2e-test-setup-fabric-ca-client:ci e2e-test-check-tool e2e-test-check-img e2e-test-setup-env e2e-test-setup-img e2e-test-run-sanitycheck",
"e2e-gui-test-setup-env": "cd client; npm install",
"e2e-gui-test-setup": "/bin/bash -c 'pushd app/platform/fabric/e2e-test/feature; . ./e2e-test/bin/activate && behave explorer_gui_e2e.feature; popd; ./client/test/e2e-setup.sh'",
"e2e-gui-test-run": "cd client; npx wdio ./test/wdio.conf.js",
"e2e-gui-test": "run-s e2e-gui-test-setup e2e-gui-test-run",
"e2e-gui-test:ci": "cross-env PATH=$PATH:$PWD/bin run-s e2e-test-setup-tool:ci e2e-test-check-tool e2e-test-setup-img e2e-gui-test-setup-env e2e-test-setup-env e2e-gui-test-setup e2e-gui-test-run"
}
}