-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
163 lines (163 loc) · 8.45 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/main/client/shared/src/schema/extension.schema.json",
"name": "git-extras",
"publisher": "sourcegraph",
"title": "Git extras",
"description": "A Sourcegraph extension that adds useful features when viewing files in a Git repository on Sourcegraph, GitHub, GitLab, and other supported code hosts.",
"icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAX8AAAF/CAMAAACWmjlVAAAAM1BMVEXwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPwUDPNJiJ+AAAAEHRSTlMA8DAQ0KDAQGCA4CCQUHCw+BUOAQAACLtJREFUeAHs0YNhRQEAwMBv4+0/bW0zxWWE3Oi3tl8vNsN548VuPx19Y1rOx8PdjntXvqvVZnikzcqZ72iyGJ5otnTny1sPz7Tz52ubHodnm009+sr9s+GFZluXkv1XjSc+BfsBBPsBBPsBZPsBpPsBpPsBpPsBpPsBpPsBpPsBpPsBpPsBpPsBpPsBtPt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7APt7AP8BAAAgAAAEAIAABAEAIAAABACAAAD4N38BpPtncwBNV28BpPsBpPsBpPsBpPsBpPsBpPsBpPs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6AP1wA/wkcVxrHPwOky3H8D8AfNoC1Qz/fto/mnwGsHg59gD9sAGtb1rc7+m6T3xHAt09fv7C/zmI2+V0B/Ev/tUcXBw5AARBCiUzc+q927bTufyJQAm/x1OlfCgjQKyCA+8cDuF+AgADuHw/gfgECArh/PID7BQgI4P7xAO4XICCA+8cDuF+AgADuHw/gfgECArh/PID7BQjcKID7BQgIcKP7BQgIcKP7BQgIcKP7BQjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjFBAjfzLZz91ebza9ivwChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmADhPxNgcfqwA/+brU/vt1ny39l0cXqn3YwB2fJNgWwZlE0zOT1rfpgxNAkOWTwizBe71ZYL7Q7H02m600+YOAAAAABJRU5ErkJggg==",
"activationEvents": [
"*"
],
"tags": [
"blame",
"github",
"gitlab",
"code host",
"author"
],
"categories": [
"Code analysis"
],
"contributes": {
"actions": [
{
"id": "git.blame.toggle",
"command": "updateConfiguration",
"commandArguments": [
[
"git.blame.decorations"
],
"${(config.git.blame.decorations === 'line' && 'file') || (config.git.blame.decorations === 'file' && 'none') || 'line'}",
null
],
"category": "Git",
"title": "${(config.git.blame.decorations === 'line' && 'Show blame for the whole file') || (config.git.blame.decorations === 'file' && 'Hide blame') || 'Show blame for selected lines'}",
"actionItem": {
"label": "Blame",
"description": "${(config.git.blame.decorations === 'line' && 'Show Git blame line annotations for the whole file') || (config.git.blame.decorations === 'file' && 'Hide Git blame line annotations') || 'Show Git blame line annotations on selected lines'}",
"pressed": "(config.git.blame.decorations === 'line') || (config.git.blame.decorations === 'file')",
"iconURL": "https://raw.githubusercontent.com/sourcegraph/sourcegraph-git-extras/63dd95962c43b95b3f3a9ea2aa0165d6b38a958c/icon/git_logo.svg?sanitize=true"
}
}
],
"menus": {
"editor/title": [
{
"action": "git.blame.toggle",
"when": "resource && clientApplication.isSourcegraph"
}
],
"commandPalette": [
{
"action": "git.blame.toggle",
"when": "resource"
}
]
},
"configuration": {
"title": "Git extras",
"properties": {
"git.blame.decorations": {
"description": "Whether to decorate all lines in a file, only selected lines, or none at all.",
"type": "string",
"enum": [
"none",
"line",
"file"
],
"default": "none"
},
"git.blame.showPreciseDate": {
"description": "Whether to show precise dates (e.g. \"Mar 17, 2021\"). By default, distance from current date is shown (e.g. \"3 months ago\")",
"type": "boolean",
"default": false
}
}
}
},
"version": "0.0.0-DEVELOPMENT",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/sourcegraph/sourcegraph-git-extras.git"
},
"files": [
"dist"
],
"main": "dist/sourcegraph-git-extras.js",
"scripts": {
"prettier-check": "npm run prettier -- --write=false",
"prettier": "prettier '**/*.{js?(on),ts?(x),scss,yml,md}' --write --list-different",
"tslint": "tslint -c tslint.json -p tsconfig.json './src/*.ts?(x)' './*.ts?(x)'",
"typecheck": "tsc -p .",
"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 sourcegraph-git-extras.js src/extension.ts",
"symlink-package": "mkdirp dist && lnfs ./package.json ./dist/package.json",
"serve": "npm run symlink-package && parcel serve --no-hmr --out-file sourcegraph-git-extras.js src/extension.ts",
"sourcegraph:prepublish": "yarn typecheck && yarn test && yarn build"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"nyc": {
"include": [
"src/**/*.ts?(x)"
],
"exclude": [
"**/*.test.ts?(x)",
"src/util/stubs.ts"
],
"extension": [
".tsx",
".ts"
]
},
"browserslist": [
"last 1 Chrome versions",
"last 1 Firefox versions",
"last 1 Edge versions",
"last 1 Safari versions"
],
"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@sourcegraph/prettierrc": "^2.2.0",
"@sourcegraph/tsconfig": "^4.0.1",
"@sourcegraph/tslint-config": "^13.4.0",
"@types/expect": "1.20.4",
"@types/lodash": "4.17.13",
"@types/mocha": "9.1.1",
"@types/node": "22.9.0",
"@types/sinon": "17.0.3",
"expect": "^24.1.0",
"graphql": "^15.4.0",
"husky": "^4.3.5",
"lnfs-cli": "^2.1.0",
"lodash": "^4.17.20",
"mkdirp": "^0.5.1",
"mocha": "^6.1.4",
"nyc": "^13.3.0",
"parcel-bundler": "^1.12.4",
"prettier": "^1.19.1",
"sinon": "^17.0.1",
"source-map-support": "^0.5.12",
"sourcegraph": "^25.7.0",
"ts-node": "^8.10.2",
"tslint": "^5.11.0",
"typescript": "^4.1.2",
"vscode-languageserver-types": "^3.14.0"
},
"dependencies": {
"date-fns": "^2.0.0-alpha.24",
"rxjs": "^6.6.3",
"tagged-template-noop": "^2.1.0"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
}
}