|
| 1 | +{ |
| 2 | + "name": "git-extras", |
| 3 | + "publisher": "sourcegraph", |
| 4 | + "title": "Git extras", |
| 5 | + "description": "A Sourcegraph extension that adds useful features when viewing files in a Git repository on Sourcegraph, GitHub, GitLab, and other supported code hosts.", |
| 6 | + "activationEvents": [ |
| 7 | + "*" |
| 8 | + ], |
| 9 | + "contributes": { |
| 10 | + "actions": [ |
| 11 | + { |
| 12 | + "id": "git.blame.toggle", |
| 13 | + "command": "updateConfiguration", |
| 14 | + "commandArguments": [ |
| 15 | + [ |
| 16 | + "git.blame.lineDecorations" |
| 17 | + ], |
| 18 | + "${!config.git.blame.lineDecorations}", |
| 19 | + null, |
| 20 | + "json" |
| 21 | + ], |
| 22 | + "category": "Git", |
| 23 | + "title": "${config.git.blame.lineDecorations && \"Hide\" || \"Show\"} blame", |
| 24 | + "actionItem": { |
| 25 | + "label": "Blame", |
| 26 | + "description": "${config.git.blame.lineDecorations && \"Hide\" || \"Show\"} Git blame line annotations" |
| 27 | + } |
| 28 | + } |
| 29 | + ], |
| 30 | + "menus": { |
| 31 | + "editor/title": [ |
| 32 | + { |
| 33 | + "action": "git.blame.toggle", |
| 34 | + "when": "resource" |
| 35 | + } |
| 36 | + ], |
| 37 | + "commandPalette": [ |
| 38 | + { |
| 39 | + "action": "git.blame.toggle", |
| 40 | + "when": "resource" |
| 41 | + } |
| 42 | + ] |
| 43 | + }, |
| 44 | + "configuration": { |
| 45 | + "title": "Git extras", |
| 46 | + "properties": { |
| 47 | + "git.blame.lineDecorations": { |
| 48 | + "description": "Whether to show Git blame annotations at the end of each line.", |
| 49 | + "type": "boolean", |
| 50 | + "default": false |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + }, |
| 55 | + "version": "0.0.0-DEVELOPMENT", |
| 56 | + "license": "MIT", |
| 57 | + "repository": { |
| 58 | + "type": "git", |
| 59 | + "url": "https://github.com/sourcegraph/sourcegraph-git-extras.git" |
| 60 | + }, |
| 61 | + "files": [ |
| 62 | + "dist" |
| 63 | + ], |
| 64 | + "main": "dist/sourcegraph-git-extras.js", |
| 65 | + "scripts": { |
| 66 | + "prettier": "prettier '**/{*.{js?(on),ts?(x),scss},.*.js?(on)}' --write --list-different", |
| 67 | + "tslint": "tslint -c tslint.json -p tsconfig.json './src/*.ts?(x)' './*.ts?(x)'", |
| 68 | + "test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' mocha --require ts-node/register --require source-map-support/register --opts mocha.opts", |
| 69 | + "cover": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --require ts-node/register --require source-map-support/register --all mocha --opts mocha.opts --timeout 10000", |
| 70 | + "build": "parcel build --no-minify --out-file sourcegraph-git-extras.js src/extension.ts", |
| 71 | + "serve": "parcel serve --no-hmr --out-file sourcegraph-git-extras.js src/extension.ts", |
| 72 | + "sourcegraph:prepublish": "yarn run build" |
| 73 | + }, |
| 74 | + "commitlint": { |
| 75 | + "extends": [ |
| 76 | + "@commitlint/config-conventional" |
| 77 | + ] |
| 78 | + }, |
| 79 | + "nyc": { |
| 80 | + "include": [ |
| 81 | + "src/**/*.ts?(x)" |
| 82 | + ], |
| 83 | + "exclude": [ |
| 84 | + "**/*.test.ts?(x)" |
| 85 | + ], |
| 86 | + "extension": [ |
| 87 | + ".tsx", |
| 88 | + ".ts" |
| 89 | + ] |
| 90 | + }, |
| 91 | + "browserslist": [ |
| 92 | + "last 1 Chrome versions", |
| 93 | + "last 1 Firefox versions", |
| 94 | + "last 1 Edge versions", |
| 95 | + "last 1 Safari versions" |
| 96 | + ], |
| 97 | + "devDependencies": { |
| 98 | + "@commitlint/cli": "^7.0.0", |
| 99 | + "@commitlint/config-conventional": "^7.0.1", |
| 100 | + "@sourcegraph/prettierrc": "^2.2.0", |
| 101 | + "@sourcegraph/tsconfig": "^3.0.0", |
| 102 | + "@sourcegraph/tslint-config": "^12.0.0", |
| 103 | + "@types/mocha": "^5.2.5", |
| 104 | + "@types/node": "^10.7.1", |
| 105 | + "husky": "^1.1.2", |
| 106 | + "mocha": "^5.2.0", |
| 107 | + "nyc": "^13.1.0", |
| 108 | + "parcel-bundler": "^1.9.7", |
| 109 | + "prettier": "^1.14.2", |
| 110 | + "source-map-support": "^0.5.9", |
| 111 | + "sourcegraph": "^18.3.0", |
| 112 | + "ts-node": "^7.0.1", |
| 113 | + "tslint": "^5.11.0", |
| 114 | + "typescript": "^3.0.1" |
| 115 | + }, |
| 116 | + "dependencies": { |
| 117 | + "date-fns": "^2.0.0-alpha.24", |
| 118 | + "rxjs": "^6.3.2" |
| 119 | + }, |
| 120 | + "husky": { |
| 121 | + "hooks": { |
| 122 | + "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS" |
| 123 | + } |
| 124 | + } |
| 125 | +} |
0 commit comments