forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
91 lines (91 loc) · 5.21 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
{
"name": "@hyperledger-labs/cactus",
"private": true,
"scripts": {
"run-ci": "./tools/ci.sh",
"configure": "lerna clean --yes && lerna bootstrap && npm-run-all build generate-api-server-config",
"generate-api-server-config": "node ./tools/generate-api-server-config.js",
"start:api-server": "node ./packages/cactus-cmd-api-server/dist/lib/main/typescript/cmd/cactus-api.js --config-file=.config.json",
"export-open-api-spec": "ts-node -e 'import(\"./packages/cactus-cmd-api-server/src/main/typescript/openapi-spec\").then((x) => x.exportToFileSystemAsJson());'",
"pregenerate-sdk": "npm-run-all export-open-api-spec",
"generate-sdk": "openapi-generator generate --input-spec cactus-openapi-spec.json -g typescript-axios -o packages/cactus-sdk/src/main/typescript/generated/openapi/typescript-axios/",
"clean": "lerna exec --stream --ignore '*/*cockpit' -- del-cli dist/** && del-cli packages/cactus-sdk/src/main/typescript/generated/openapi/typescript-axios/*",
"lint": "lerna exec --stream --ignore '*/*cockpit' -- cross-env DEBUG= tslint --project tsconfig.json",
"tsc": "lerna run tsc",
"build": "npm-run-all build:dev build:prod",
"build:prod": "npm-run-all build:prod:backend webpack:prod:web build:prod:frontend",
"build:prod:backend": "npm-run-all webpack:prod:node",
"build:prod:frontend": "lerna run build:prod:frontend",
"build:dev": "npm-run-all build:dev:backend webpack:dev:web build:dev:frontend",
"build:dev:backend": "npm-run-all lint clean generate-sdk tsc webpack:dev:node",
"build:dev:frontend": "lerna run build:dev:frontend",
"build:dev:cmd-api-server": "lerna exec --stream --scope '*/*api-server' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:common": "lerna exec --stream --scope '*/*common' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:core-api": "lerna exec --stream --scope '*/*core-api' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:test-tooling": "lerna exec --stream --scope '*/*test-tooling' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:plugin-ledger-connector-quorum": "lerna exec --stream --scope '*/*connector-quorum' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:plugin-web-service-consortium": "lerna exec --stream --scope '*/*web-service-consortium' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"build:dev:sdk": "lerna exec --stream --scope '*/*sdk' -- 'del-cli dist/** && tsc --project ./tsconfig.json && webpack --env=dev --target=node --config ../../webpack.config.js'",
"webpack": "npm-run-all webpack:dev webpack:prod",
"webpack:dev": "lerna run webpack:dev",
"webpack:dev:web": "lerna run webpack:dev:web",
"webpack:dev:node": "lerna run webpack:dev:node",
"webpack:prod": "lerna run webpack:prod",
"webpack:prod:web": "lerna run webpack:prod:web",
"webpack:prod:node": "lerna run webpack:prod:node",
"test:all": "tap --jobs=1 --timeout=600 \"packages/cactus-*/src/test/typescript/{unit,integration}/\"",
"test:unit": "tap --timeout=600 \"packages/cactus-*/src/test/typescript/unit/\"",
"test:integration": "tap --jobs=1 --timeout=600 \"packages/cactus-*/src/test/typescript/integration/\"",
"changelog": "conventional-changelog --infile CHANGELOG.md --outfile CHANGELOG.md && git add CHANGELOG.md",
"commit": "git-cz --signoff",
"prettier": "prettier --write --config .prettierrc.json \"./**/*.{ts,js}\"",
"version": "lerna version --no-push --conventional-commits --sign-git-commit --sign-git-tag"
},
"devDependencies": {
"@commitlint/cli": "8.1.0",
"@commitlint/config-conventional": "8.0.0",
"@openapitools/openapi-generator-cli": "1.0.10-4.2.3",
"@types/node-fetch": "2.5.4",
"@types/uuid": "3.4.6",
"cache-loader": "4.1.0",
"commitizen": "4.0.3",
"conventional-changelog-cli": "2.0.28",
"cross-env": "5.2.0",
"cz-conventional-changelog": "3.0.2",
"del-cli": "3.0.0",
"eslint-config-standard": "12.0.0",
"eslint-plugin-import": "2.17.3",
"eslint-plugin-node": "9.1.0",
"eslint-plugin-promise": "4.1.1",
"eslint-plugin-standard": "4.0.0",
"husky": "4.2.5",
"inquirer": "7.1.0",
"lerna": "3.20.2",
"lint-staged": "10.2.2",
"npm-run-all": "4.1.5",
"prettier": "2.0.5",
"secp256k1": "4.0.0",
"source-map-loader": "0.2.4",
"tap": "14.10.6",
"ts-loader": "6.2.1",
"ts-node": "8.9.1",
"tslint": "6.0.0",
"typescript": "3.9.3",
"webpack": "4.41.6",
"webpack-bundle-analyzer": "3.6.0",
"webpack-cli": "3.3.11"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./**/*.{ts,js}": "prettier --write --config .prettierrc.json"
}
}