forked from energywebfoundation/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
86 lines (86 loc) · 5.43 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
{
"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.14",
"@types/dotenv": "6.1.1",
"@types/mocha": "8.2.0",
"@types/node": "12.19.15",
"@typescript-eslint/eslint-plugin": "3.10.1",
"@typescript-eslint/parser": "3.10.1",
"chai": "4.2.0",
"concurrently": "5.3.0",
"cross-env": "7.0.3",
"dotenv": "8.2.0",
"eslint": "7.19.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "6.15.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-prettier": "3.3.1",
"ganache-cli": "6.8.2",
"husky": "4.3.8",
"lerna": "3.22.1",
"lint-staged": "10.5.3",
"mocha": "8.2.1",
"prettier": "2.1.2",
"shx": "0.3.3",
"solc": "0.5.16",
"truffle": "5.1.64",
"ts-node": "9.1.1",
"typescript": "4.1.3",
"typescript-json-schema": "0.48.0",
"wait-on": "5.2.1"
},
"scripts": {
"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/origin-ui --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",
"test": "yarn test:ui && lerna run test:concurrent --stream --parallel --since master",
"test:serial": "lerna run test:concurrent --stream && yarn test:ui",
"test:ui": "lerna run test --scope @energyweb/origin-ui-core --stream --since master",
"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 --since master --parallel --stream",
"test:ci:apps": "lerna run --scope @energyweb/exchange --scope @energyweb/origin-backend test:concurrent --since master --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.$TRAVIS_BUILD_NUMBER",
"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=preview.$TRAVIS_BUILD_NUMBER",
"deploy:heroku:canary": "lerna run deploy:container:heroku:canary --scope @energyweb/migrations --stream && lerna run deploy:container:heroku:canary --scope @energyweb/origin-ui --scope @energyweb/solar-simulator --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/*"
],
"engines": {
"node": "12"
},
"husky": {
"hooks": {
"pre-commit": "lerna run --concurrency 1 --stream precommit"
}
}
}