-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
102 lines (102 loc) · 3.86 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
{
"name": "hyperledger-explorer",
"version": "0.3.9",
"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-fileupload": "^0.4.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": "^0.6.38",
"multer": "^1.3.0",
"npm-run-all": "^4.1.5",
"passport": "^0.4.0",
"passport-local": "^1.0.0",
"pg": "^7.4.1",
"prettyjson": "^1.2.1",
"prop-types": "^15.6.2",
"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"
},
"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 'curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 1.4.2 1.4.2 0.4.15 -s'",
"e2e-test-setup-env": "cd app/platform/fabric/e2e-test; 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; . ./e2e-test/bin/activate && behave explorer.feature",
"e2e-test-run-sanitycheck": "cd app/platform/fabric/e2e-test; . ./e2e-test/bin/activate && behave --tags=@sanitycheck --stop --no-skipped 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-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": "./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-gui-test-setup e2e-gui-test-run"
}
}