-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
38 lines (38 loc) · 1.78 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
{
"name": "pharmaTest",
"version": "0.1.0",
"description": "Bootstrap project for Chaincodes pharmaTest",
"files": [
"dist/*"
],
"scripts": {
"install": "npm-run-all -s lerna:install",
"env:restart": "hurl new -o 1 -u 5",
"seed": "./seed-data.sh",
"test": "npm-run-all -s lerna:test",
"test:e2e": "npm-run-all -s lerna:test:e2e",
"env:clean": "hurl clean",
"cc:start": "f() { npm run cc:package -- $1; npm run cc:install $1 $2; }; f",
"cc:upgrade": "f() { npm run cc:package -- $1; hurl upgrade ${3:-$1} node $2 -P ./chaincode-$1; }; f",
"cc:start:debug": "f() { npm run cc:package -- $1; npm run cc:install:debug $1 $2; }; f",
"server:rest-api": "f() { npx lerna bootstrap; npx lerna run start --scope server --stream; }; f",
"server:refresh-api": "f() { npx lerna bootstrap; npm run cc:upgrade -- $1 $2; npx lerna run start --scope server --stream; }; f",
"===================INTERNALS===================": "===================NO NEED TO CALL THEM DIRECTLY===================",
"lerna:install": "lerna bootstrap",
"lerna:build": "lerna run build",
"cc:package": "f() { npm run lerna:build; chaincode-manager --update --config ./$1.config.json --output ./chaincode-$1 package; }; f",
"cc:install": "f() { hurl install ${2:-$1} node -P ./chaincode-$1; }; f",
"cc:install:debug": "f() { hurl install ${2:-$1} node -P ./chaincode-$1 --debug; }; f",
"lerna:test": "lerna run test --stream",
"lerna:test:e2e": "lerna run test:e2e --stream"
},
"devDependencies": {
"lerna": "~3.13.0",
"@worldsibu/convector-adapter-mock": "~1.3.6",
"@worldsibu/convector-platform-fabric": "~1.3.6",
"@worldsibu/hurley": "~1.1.1",
"fabric-ca-client": "~1.4.0",
"fabric-client": "~1.4.0",
"npm-run-all": "~4.1.5"
}
}