-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
64 lines (64 loc) · 2.75 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": "@worldsibu/convector-example-drug-supply-chain",
"version": "2.0.0",
"description": "A simple example to track drugs with Convector Framework.",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/convector/convector-example-drug-supply-chain.git"
},
"keywords": [
"convector",
"development",
"javascript",
"blockchain",
"smart",
"contracts"
],
"author": "WorldSibu",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/convector/convector-example-drug-supply-chain/issues"
},
"homepage": "https://github.com/convector/convector-example-drug-supply-chain#readme",
"scripts": {
"wait": "sleep 5",
"seed": "./seed-data.sh",
"user:fingerprint": "f () { node -e \"console.log(JSON.parse(require('fs').readFileSync('./.convector-dev-env/.hfc-$1/$2', 'utf8')).enrollment.identity.certificate)\" | openssl x509 -fingerprint -noout | cut -d '=' -f2 ; }; f",
"================= Life cycle =================": "==================================",
"install": "npm-run-all -s lerna:install",
"start": "npm-run-all -s env:start cc:start cc:initialInvoke vw:install",
"test": "npm-run-all -s lerna:test",
"================= Lerna =================": "==================================",
"lerna:install": "lerna bootstrap",
"lerna:build": "lerna run build",
"lerna:stop": "lerna run stop --parallel",
"lerna:clean": "lerna clean --yes && lerna run clean --parallel",
"lerna:test": "lerna exec npm ",
"================= Dev Env =================": "==================================",
"env:start": "hurl new -u 3",
"================= Chaincodes =================": "==================================",
"cc:start": "f() { npm run cc:package; npm run cc:install; }; f",
"cc:package": "f() { npm run lerna:build; chaincode-manager --config ./org1.chaincode.config.json --output ./chaincode-drug package; }; f",
"cc:install": "hurl install drug node -P ./chaincode-drug",
"cc:upgrade": "f() { npm run cc:package; hurl upgrade drug node $1 -P ./chaincode-drug ;}; f",
"cc:initialInvoke": "hurl invoke drug participant_get \"user1\"",
"================= Views =================": "==================================",
"vw:install": "./@worldsibu/views/installViews.sh"
},
"devDependencies": {
"lerna": "^2.11.0",
"@types/mocha": "^5.2.5",
"@types/chai": "^4.1.4",
"npm-run-all": "^4.1.3",
"@types/node": "^10.5.2",
"@types/yup": "^0.24.7",
"@types/dotenv": "^4.0.3",
"@types/express": "^4.16.0",
"@types/bytebuffer": "^5.0.37",
"fabric-ca-client": "~1.1.2",
"fabric-client": "~1.1.2",
"@worldsibu/convector-platform-fabric": "~1.3.0",
"@worldsibu/hurley": "~1.0.1"
}
}