forked from energywebfoundation/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
97 lines (97 loc) · 5.7 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
{
"name": "root",
"private": true,
"devDependencies": {
"@openzeppelin/cli": "2.8.2",
"@openzeppelin/contracts-ethereum-package": "2.5.0",
"@openzeppelin/upgrades": "2.8.0",
"@types/chai": "4.2.15",
"@types/dotenv": "6.1.1",
"@types/mocha": "8.2.1",
"@types/node": "12.20.4",
"@typescript-eslint/eslint-plugin": "4.16.1",
"@typescript-eslint/parser": "4.16.1",
"chai": "4.3.3",
"concurrently": "5.3.0",
"cross-env": "7.0.3",
"depcheck": "1.4.0",
"dotenv": "8.2.0",
"eslint": "7.21.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "7.2.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-prettier": "3.3.1",
"ganache-cli": "6.12.2",
"husky": "4.3.8",
"lerna": "3.22.1",
"lint-staged": "10.5.4",
"mocha": "8.3.1",
"prettier": "2.2.1",
"shx": "0.3.3",
"solc": "0.5.16",
"truffle": "5.2.3",
"ts-node": "9.1.1",
"typescript": "4.2.3",
"typescript-json-schema": "0.49.0",
"wait-on": "5.2.1"
},
"scripts": {
"depcheck": "lerna exec \"depcheck --skip-missing\" --stream --concurrency 1 --no-bail",
"build": "yarn build:static && yarn build:ts && lerna run build --scope @energyweb/origin-ui --stream",
"build:ui": "lerna run build --scope @energyweb/origin-ui --stream",
"build:ui-core": "lerna run build --scope @energyweb/origin-ui-core --stream",
"build:exchange-ui": "lerna run build --scope @energyweb/exchange-ui-core --stream",
"build:ui-irec": "lerna run build --scope @energyweb/origin-ui-irec-core --stream",
"lint": "lerna run lint --parallel --stream",
"lint-fix": "lerna run lint-fix --parallel --stream",
"clean": "lerna run clean --parallel",
"build:static": "lerna run build:static --parallel",
"build:ts": "lerna run build:ts --stream",
"migrate:demo": "lerna run typeorm:drop --scope @energyweb/exchange && lerna run typeorm:run && lerna run start:defaultConfigs --scope @energyweb/migrations --stream",
"run:backend": "lerna run start --scope @energyweb/origin-backend-app --stream",
"run:ui-core": "lerna run start --scope @energyweb/origin-ui-core --stream",
"run:exchange-ui": "lerna run start --scope @energyweb/exchange-ui-core --stream",
"run:ui": "lerna run start --scope @energyweb/origin-ui --stream",
"run:origin": "concurrently --restart-tries 3 --restart-after 1500 -n ganache,backend,ui \"yarn run:ganache\" \"wait-on tcp:8545 && yarn migrate:demo && yarn run:backend\" \"wait-on tcp:3030 && yarn run:ui\" \"wait-on tcp:3030 && yarn run:ui-core\" \"wait-on tcp:3030 && yarn run:exchange-ui\"",
"run:ganache": "ganache-cli -m \"chalk park staff buzz chair purchase wise oak receive avoid avoid home\" -l 8000000 -e 1000000 -a 40 -h 0.0.0.0",
"run:simulator": "lerna run start --scope @energyweb/solar-simulator --stream",
"run:mock-data": "lerna run deploy-mock-readings --scope @energyweb/solar-simulator --stream",
"cypress:open": "concurrently \"yarn run:origin\" \"wait-on tcp:3030 && lerna run cypress:open --scope @energyweb/origin-ui --stream\"",
"test": "yarn test:ui && lerna run test:concurrent --stream --parallel",
"test:serial": "lerna run test:concurrent --stream && yarn test:ui",
"test:ui": "lerna run test --scope @energyweb/origin-ui-core --stream",
"test:contracts": "lerna run test:contracts --scope @energyweb/device-registry --stream --parallel",
"test:backend": "lerna run --scope @energyweb/origin-backend --scope @energyweb/origin-backend-utils --stream test",
"test:device-registry": "lerna run --scope @energyweb/device-registry --stream test:concurrent",
"test:utils-general": "lerna run test --scope @energyweb/utils-general --stream",
"test:ci:contracts": "lerna run --scope @energyweb/issuer --scope @energyweb/utils-general test:concurrent --parallel --stream",
"test:ci:apps": "lerna run --scope @energyweb/exchange --scope @energyweb/origin-backend test:concurrent --parallel --stream",
"test:ci:e2e": "lerna run test:e2e --stream --ignore @energyweb/exchange-irec && lerna run test:e2e --stream --scope @energyweb/exchange-irec",
"publish:canary": "lerna publish --yes --skip-git --exact --cd-version=prerelease --pre-dist-tag canary --preid=alpha.$BUILD_ID",
"publish:release": "lerna version --create-release github --conventional-commits --exact --yes --message \"chore(release): publish /skip-deploy\" && lerna publish from-git --yes",
"build:containers:canary": "lerna run build:container:canary --stream",
"build:containers:release": "lerna run build:container:latest --stream",
"publish:preview": "lerna publish --yes --skip-git --exact --cd-version=prerelease --pre-dist-tag preview --preid=$BUILD_ID",
"deploy:heroku:canary": "lerna run deploy:container:heroku:canary --stream",
"deploy:heroku:stable": "lerna run deploy:container:heroku:stable --scope @energyweb/migrations --stream && lerna run deploy:container:heroku:stable --scope @energyweb/origin-ui --scope @energyweb/solar-simulator --stream"
},
"workspaces": [
"packages/*",
"packages/apps/*",
"packages/devices/*",
"packages/organizations/*",
"packages/tools/*",
"packages/traceability/*",
"packages/trade/*",
"packages/ui/*",
"packages/utils/*"
],
"engines": {
"node": "14"
},
"husky": {
"hooks": {
"pre-commit": "lerna run --concurrency 1 --stream precommit"
}
}
}