|
33 | 33 | "sentry.projects": { |
34 | 34 | "type": "array", |
35 | 35 | "items": { |
36 | | - "name": { "type" : "string" }, |
37 | | - "type" : "object", |
| 36 | + "name": { |
| 37 | + "type": "string" |
| 38 | + }, |
| 39 | + "type": "object", |
38 | 40 | "description": "Sentry project receiving logs", |
39 | 41 | "projectId": { |
40 | 42 | "description": "Sentry project id, e.g. 12351512", |
41 | 43 | "type": "string" |
42 | 44 | }, |
43 | | - "patternProperties" : { |
| 45 | + "patternProperties": { |
44 | 46 | "repoMatch": { |
45 | | - "type" : "string", |
| 47 | + "type": "string", |
46 | 48 | "description": "Regex to match repos associated to this Sentry project, e.g. github\\.com/sourcegraph/sourcegraph" |
47 | 49 | }, |
48 | 50 | "fileMatch": { |
49 | | - "type" : "string", |
| 51 | + "type": "string", |
50 | 52 | "description": "Regex to match files associated with this project, e.g. (web|shared)/.*\\.tsx?$" |
51 | 53 | }, |
52 | 54 | "lineMatch": { |
53 | | - "type" : "string", |
54 | | - "description" : "Regex to match lines associated with this project, e.g. throw new Error\\([\"']([^'\"]+)[\"']\\)" |
| 55 | + "type": "string", |
| 56 | + "description": "Regex to match lines associated with this project, e.g. throw new Error\\([\"']([^'\"]+)[\"']\\)" |
55 | 57 | } |
56 | 58 | }, |
57 | | - "additionalProperties" : { |
| 59 | + "additionalProperties": { |
58 | 60 | "contentText": { |
59 | | - "description" : "Text shown in Sentry link, e.g. View sourcegraph/sourcegraph_dot_com errors", |
60 | | - "type" : "string" |
| 61 | + "description": "Text shown in Sentry link, e.g. View sourcegraph/sourcegraph_dot_com errors", |
| 62 | + "type": "string" |
61 | 63 | }, |
62 | 64 | "hoverMessage": { |
63 | | - "description" : "Hovertext shown on Sentry link, e.g. View errors matching '$1' in Sentry", |
64 | | - "type" : "string" |
| 65 | + "description": "Hovertext shown on Sentry link, e.g. View errors matching '$1' in Sentry", |
| 66 | + "type": "string" |
65 | 67 | }, |
66 | 68 | "query": { |
67 | | - "description" : "Query derived from error handling code $1", |
68 | | - "type" : "string" |
| 69 | + "description": "Query derived from error handling code $1", |
| 70 | + "type": "string" |
69 | 71 | } |
70 | 72 | } |
71 | 73 | } |
|
81 | 83 | "license": "Apache-2.0", |
82 | 84 | "main": "dist/extension.js", |
83 | 85 | "scripts": { |
| 86 | + "prettier-check": "npm run prettier -- --write=false", |
| 87 | + "prettier": "prettier \"**/*.{ts,js,json,md}\" --list-different --write", |
84 | 88 | "tslint": "tslint -p tsconfig.json './src/**/*.ts'", |
85 | 89 | "typecheck": "tsc -p tsconfig.json", |
86 | 90 | "test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register --require source-map-support/register --opts mocha.opts", |
|
92 | 96 | "watch:build": "tsc -p tsconfig.dist.json -w", |
93 | 97 | "sourcegraph:prepublish": "npm run typecheck && npm run test && npm run build" |
94 | 98 | }, |
| 99 | + "mocha": { |
| 100 | + "spec": "src/test/**/*.test.ts" |
| 101 | + }, |
| 102 | + "nyc": { |
| 103 | + "include": [ |
| 104 | + "src/**/*.ts?(x)" |
| 105 | + ], |
| 106 | + "exclude": [ |
| 107 | + "**/*.test.ts?(x)", |
| 108 | + "**/*.d.ts" |
| 109 | + ], |
| 110 | + "extension": [ |
| 111 | + ".tsx", |
| 112 | + ".ts" |
| 113 | + ], |
| 114 | + "reporter": [ |
| 115 | + "text", |
| 116 | + "json" |
| 117 | + ] |
| 118 | + }, |
95 | 119 | "browserslist": [ |
96 | 120 | "last 1 Chrome versions", |
97 | 121 | "last 1 Firefox versions", |
|
101 | 125 | "devDependencies": { |
102 | 126 | "@sourcegraph/prettierrc": "^2.2.0", |
103 | 127 | "@sourcegraph/tsconfig": "^4.0.0", |
104 | | - "@sourcegraph/tslint-config": "^12.3.1", |
105 | | - "@types/expect": "^1.20.4", |
| 128 | + "@sourcegraph/tslint-config": "^13.0.0", |
| 129 | + "@types/expect": "1.20.4", |
| 130 | + "@types/lodash": "4.14.123", |
106 | 131 | "@types/mocha": "^5.2.6", |
107 | | - "expect": "^24.4.0", |
| 132 | + "@types/mock-require": "2.0.0", |
| 133 | + "@types/node": "^11.13.3", |
| 134 | + "@types/sinon": "7.0.11", |
| 135 | + "expect": "24.1.0", |
108 | 136 | "lnfs-cli": "^2.1.0", |
| 137 | + "lodash": "^4.17.11", |
109 | 138 | "mkdirp": "^0.5.1", |
110 | | - "mocha": "^6.0.2", |
| 139 | + "mocha": "^6.1.2", |
| 140 | + "mock-require": "^3.0.3", |
111 | 141 | "nyc": "^13.3.0", |
112 | | - "parcel-bundler": "^1.12.0", |
| 142 | + "parcel-bundler": "^1.12.3", |
| 143 | + "prettier": "1.16.4", |
113 | 144 | "rxjs": "^6.4.0", |
114 | | - "source-map-support": "^0.5.11", |
| 145 | + "sinon": "^7.3.1", |
| 146 | + "source-map-support": "^0.5.12", |
115 | 147 | "sourcegraph": "^23.0.0", |
116 | 148 | "ts-node": "^8.0.3", |
117 | | - "tslint": "^5.13.1", |
118 | | - "typescript": "^3.3.3333" |
| 149 | + "tslint": "^5.15.0", |
| 150 | + "typescript": "^3.4.2" |
119 | 151 | } |
120 | 152 | } |
0 commit comments