forked from energywebfoundation/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
73 lines (73 loc) · 3.16 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
{
"name": "@energyweb/market",
"description": "",
"homepage": "https://github.com/energywebfoundation/origin/tree/master/packages/market#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/energywebfoundation/origin.git"
},
"bugs": {
"url": "https://github.com/energywebfoundation/origin/issues"
},
"version": "5.0.0",
"main": "dist/js/src/index.js",
"files": [
"dist/js/build",
"dist/js/src",
"dist/js/schemas"
],
"directories": {
"test": "test"
},
"scripts": {
"build": "yarn build:static && yarn build:ts",
"build:static": "yarn compile && yarn extractABI && yarn build-schemas",
"build:ts": "tsc -b tsconfig.build.json --verbose --pretty",
"build-schema:MarketUserPropertiesOffChain": "typescript-json-schema --ignoreErrors --required src/blockchain-facade/MarketUser.ts IMarketUserOffChainProperties",
"build-schema:PurchasableCertificatePropertiesOffChain": "typescript-json-schema --ignoreErrors --required src/blockchain-facade/PurchasableCertificate.ts IPurchasableCertificateOffChainProperties",
"build-schemas": "node ./scripts/buildSchemas.js",
"compile": "truffle compile",
"deploy-contracts": "truffle migrate",
"extractABI": "node ./scripts/extractABI.js",
"flatten-contracts": "truffle-flattener contracts/**/* contracts/MarketContractLookup.sol > build/flattenedContracts.sol && node scripts/removeExperimentalDuplicates.js build/flattenedContracts.sol",
"lint": "solium -d contracts && eslint \"src/**/*{.ts,.tsx}\"",
"lint-fix": "solium -d contracts --fix && eslint \"src/**/*{.ts,.tsx}\" --fix",
"start-ganache": "ganache-cli -q -m 'chalk park staff buzz chair purchase wise oak receive avoid avoid home' -l 8000000 -e 1000000 -a 20 -p 8546",
"test": "mocha -r ts-node/register src/test/*.test.ts --timeout 60000 --exit",
"test:unit": "mocha -r ts-node/register src/test/unit/*.test.ts --timeout 60000 --exit",
"test:concurrent": "concurrently --success first --kill-others -n eth,backend,test \"yarn start-ganache\" \"wait-on tcp:8546 && yarn test\"",
"test:contracts": "yarn test:concurrent",
"prettier": "prettier --write --config-precedence file-override './src/**/*'",
"clean": "shx rm -rf build dist dist-shakeable schemas db.sqlite",
"precommit": "lint-staged"
},
"types": "dist/js/src/index.d.ts",
"dependencies": {
"@energyweb/device-registry": "5.0.0",
"@energyweb/origin": "3.1.4",
"@energyweb/origin-backend-core": "1.1.0",
"@energyweb/user-registry": "3.0.1",
"@energyweb/utils-general": "6.0.0",
"moment": "^2.24.0",
"polly-js": "^1.6.5",
"web3": "1.2.4",
"web3-core": "1.2.4",
"web3-eth": "1.2.4",
"web3-eth-contract": "1.2.4",
"winston": "3.2.1"
},
"devDependencies": {
"@energyweb/origin-backend-client": "3.1.0",
"@energyweb/origin-backend-client-mocks": "0.2.0",
"@fluffy-spoon/substitute": "1.107.0",
"ethlint": "1.2.5",
"fs-extra": "8.1.0",
"truffle-flattener": "1.4.2"
},
"gitHead": "54beaf7fe6686810de74ca290daf99cbde510f9d",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"license": "GPL-3.0-only"
}