-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
107 lines (107 loc) · 3.84 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
98
99
100
101
102
103
104
105
106
107
{
"name": "graphql-portal",
"version": "0.2.0",
"author": "code.store",
"license": "MIT",
"private": true,
"main": "dist/src/index.js",
"scripts": {
"generate-gateway-config": "json2ts -i packages/types/src/gateway-schema.json -o ./packages/types/src/gateway-config.ts --style.singleQuote --bannerComment \"/* eslint-disable */\"",
"generate-mesh-source-config": "json2ts -i packages/types/src/mesh-source-schema.json -o ./packages/types/src/mesh-source-config.ts --style.singleQuote --bannerComment \"/* eslint-disable */\"",
"generate-api-def-config": "json2ts -i packages/types/src/api-def-schema.json -o ./packages/types/src/api-def-config.ts --style.singleQuote --bannerComment \"/* eslint-disable */\"",
"generate-configs": "yarn generate-gateway-config && yarn generate-mesh-source-config && yarn generate-api-def-config",
"clear-dist": "rm -rf dist ./packages/datasources/dist ./packages/config/dist ./packages/gateway/dist ./packages/types/dist ./packages/dashboard/dist ./packages/logger/dist",
"copy-graphql-files": "copyfiles -u 5 packages/gateway/src/server/control-api/*.gql packages/gateway/dist/src/server/control-api/",
"premesh-config-sync": "tsc -b ./packages/datasources/tsconfig.json",
"mesh-config-sync": "ts-node ./packages/types/src/mesh-config-sync.ts && prettier --write ./packages/types/src/mesh-source-schema.json ./packages/types/src/api-def-schema.json",
"prettier": "prettier --write \"./packages/**/*.ts\"",
"prebuild": "yarn clear-dist && yarn mesh-config-sync && yarn generate-configs",
"build": "tsc -b",
"postbuild": "yarn copy-graphql-files",
"start": "yarn workspace @graphql-portal/gateway start",
"lint": "eslint 'packages/**/*.ts' --fix",
"test": "jest --coverage",
"prerelease": "yarn build",
"release": "changeset publish",
"docs:build": "cd docs-website && yarn build",
"docs:deploy": "cd docs-website && yarn deploy",
"postinstall": "husky install && patch-package",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
"workspaces": [
"packages/*",
"packages/datasources/*"
],
"dependencies": {
"patch-package": "6.4.7",
"postinstall-postinstall": "2.1.0"
},
"resolutions": {
"**/xml-crypto": "2.1.3",
"json-ptr": "2.2.0",
"date-fns": "2.23.0"
},
"devDependencies": {
"@changesets/cli": "2.17.0",
"@types/http-cache-semantics": "4.0.1",
"@types/jest": "27.0.1",
"@typescript-eslint/eslint-plugin": "4.30.0",
"@typescript-eslint/parser": "4.30.0",
"copyfiles": "2.4.1",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-standard": "16.0.3",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "5.1.0",
"husky": "7.0.2",
"jest": "27.1.0",
"jest-runner-eslint": "0.10.1",
"json-schema-to-typescript": "10.1.4",
"lint-staged": "11.1.2",
"pinst": "2.1.6",
"prettier": "2.3.2",
"ts-jest": "27.0.5",
"ts-node": "10.2.1",
"typescript": "4.3.5"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix"
],
"packages/**/*.{ts,tsx,graphql,yml,json}": [
"prettier --write --config .prettierrc"
]
},
"jest": {
"projects": [
{
"displayName": "test",
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "packages",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.ts$": "ts-jest"
},
"coverageDirectory": "../coverage",
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"/node_modules/",
"/dist/",
".dto.ts$"
],
"modulePathIgnorePatterns": [
"/node_modules/",
"/dist/",
".dto.ts$"
],
"testEnvironment": "node"
}
]
}
}