-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
146 lines (146 loc) · 4.68 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/master/shared/src/schema/extension.schema.json",
"name": "code-ownership",
"publisher": "sourcegraph",
"description": "See code owners of the current file",
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij4KPHRleHQgdGV4dC1hbmNob3I9InRvcCIgeT0iNDAiIGZvbnQtc2l6ZT0iMi41cmVtIj7wn5SQPC90ZXh0Pjwvc3ZnPg==",
"license": "Apache",
"repository": {
"type": "git",
"url": "https://github.com/sourcegraph/sourcegraph-code-ownership"
},
"categories": [
"Reports and stats"
],
"tags": [
"codeowners",
"owners",
"team"
],
"activationEvents": [
"*"
],
"contributes": {
"actions": [
{
"id": "codeOwnership.toggle",
"command": "updateConfiguration",
"commandArguments": [
[
"codeOwnership.hide"
],
"${!config.codeOwnership.hide}",
null,
"json"
],
"title": "${config.codeOwnership.hide && \"Show\" || \"Hide\"}",
"category": "Code ownership"
},
{
"id": "codeOwnership.file",
"command": "open",
"commandArguments": [
"${get(context, `codeOwnership.file.${resource.uri}.url`)}"
],
"actionItem": {
"label": "${get(context, `codeOwnership.file.${resource.uri}.label`)}",
"description": "${get(context, `codeOwnership.file.${resource.uri}.description`)}",
"iconURL": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij4KPHRleHQgdGV4dC1hbmNob3I9InRvcCIgeT0iNDAiIGZvbnQtc2l6ZT0iMi41cmVtIj7wn5SQPC90ZXh0Pjwvc3ZnPg=="
}
}
],
"menus": {
"editor/title": [
{
"action": "codeOwnership.file",
"when": "!config.codeOwnership.hide && get(context, `codeOwnership.file.${resource.uri}.label`)"
}
],
"commandPalette": [
{
"action": "codeOwnership.toggle"
}
]
},
"configuration": {
"title": "Code ownership configuration",
"properties": {
"codeOwnership.hide": {
"description": "Hide the current file's code owner (do not show it in the file header).",
"type": "boolean",
"default": false
}
}
}
},
"main": "dist/extension.js",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
},
"nyc": {
"include": [
"src/**/*.ts"
],
"exclude": [
"**/*.test.ts"
],
"extension": [
".ts"
]
},
"scripts": {
"eslint": "eslint './src/**/*.ts'",
"prettier": "prettier '**/{*.{js?(on),ts?(x),md,yml},.*.js?(on),.*.yml}' --write --list-different",
"prettier-check": "yarn run prettier --write=false",
"typecheck": "tsc -p tsconfig.json",
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register --require source-map-support/register --opts mocha.opts",
"cover": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --require ts-node/register --require source-map-support/register --all mocha --opts mocha.opts --timeout 10000",
"build": "parcel build --no-minify --out-file extension.js src/extension.ts",
"symlink-package": "mkdirp dist && lnfs ./package.json ./dist/package.json",
"serve": "yarn run symlink-package && parcel serve --no-hmr --out-file extension.js src/extension.ts",
"watch:typecheck": "tsc -p tsconfig.json -w",
"watch:build": "tsc -p tsconfig.dist.json -w",
"sourcegraph:prepublish": "yarn typecheck && yarn test && yarn build"
},
"browserslist": [
"last 1 Chrome versions",
"last 1 Firefox versions",
"last 1 Edge versions",
"last 1 Safari versions"
],
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@sourcegraph/eslint-config": "^0.20.8",
"@sourcegraph/prettierrc": "^3.0.3",
"@sourcegraph/tsconfig": "^4.0.1",
"@types/mocha": "8.2.2",
"@types/node": "14.17.3",
"@types/sinon": "10.0.2",
"eslint": "^7.28.0",
"husky": "^4.3.6",
"lnfs-cli": "^2.1.0",
"mkdirp": "^1.0.4",
"mocha": "^7.2.0",
"nyc": "^13.3.0",
"parcel-bundler": "^1.12.4",
"prettier": "^2.2.1",
"sinon": "^9.2.2",
"source-map-support": "^0.5.19",
"sourcegraph": "^25.3.0",
"ts-node": "^8.0.2",
"typescript": "^4.1.3"
},
"dependencies": {
"ignore": "^5.1.8",
"rxjs": "^6.6.3",
"tagged-template-noop": "^2.1.1"
}
}