/
package.json
83 lines (83 loc) · 3.81 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
{
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/main/client/shared/src/schema/extension.schema.json",
"name": "link-preview-expander",
"description": "Hyperlinks URLs and provides hover previews",
"publisher": "sourcegraph",
"activationEvents": [
"*"
],
"wip": false,
"categories": [],
"tags": [],
"contributes": {
"actions": [],
"menus": {
"editor/title": [],
"commandPalette": []
},
"configuration": {
"linkPreviewExpander.corsAnywhereUrl": {
"description": "The URL to a CORS proxy.",
"type": "string",
"default": "https://cors-anywhere.herokuapp.com"
}
}
},
"version": "0.0.0-DEVELOPMENT",
"license": "Apache-2.0",
"main": "dist/link-preview-expander.js",
"scripts": {
"eslint": "eslint 'src/**/*.ts'",
"typecheck": "tsc -p tsconfig.json",
"build": "parcel build --out-file dist/link-preview-expander.js src/link-preview-expander.ts",
"symlink-package": "mkdirp dist && lnfs ./package.json ./dist/package.json",
"serve": "yarn run symlink-package && parcel serve --no-hmr --out-file dist/link-preview-expander.js src/link-preview-expander.ts",
"watch:typecheck": "tsc -p tsconfig.json -w",
"watch:build": "tsc -p tsconfig.dist.json -w",
"sourcegraph:prepublish": "yarn run typecheck && yarn run build",
"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"
},
"nyc": {
"extension": [
".tsx",
".ts"
],
"include": [
"src/**/*.ts?(x)"
],
"exclude": [
"**/*.test.ts?(x)",
"**/*.d.ts",
"**/*.js"
]
},
"browserslist": [
"last 1 Chrome versions",
"last 1 Firefox versions",
"last 1 Edge versions",
"last 1 Safari versions"
],
"devDependencies": {
"@sourcegraph/eslint-config": "^0.20.11",
"@sourcegraph/extension-api-stubs": "^1.3.0",
"@sourcegraph/tsconfig": "^4.0.1",
"@types/mocha": "^8.0.3",
"@types/mock-require": "^2.0.0",
"eslint": "^7.11.0",
"lnfs-cli": "^2.1.0",
"mkdirp": "^1.0.4",
"mocha": "^5.2.0",
"mock-require": "^3.0.3",
"parcel-bundler": "^1.12.4",
"sinon": "^9.2.0",
"source-map-support": "^0.5.19",
"sourcegraph": "^24.8.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
},
"dependencies": {
"node-html-parser": "^1.3.1"
},
"icon": "data:image/svg+xml,%3Csvg viewBox='0 0 48 48' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21.28 31.47a3.36 3.36 0 01-4.72-.01 12.9 12.9 0 01.01-18.25L22.77 7C12.68 7.57 3.74 15.18 0 24.65a25.8 25.8 0 002.1 4.2 13 13 0 012.62-3.82l5.2-5.2-.02 2.32c-.02 1.86.27 3.7.9 5.48l.2.57-1.55 1.55a6.2 6.2 0 00-1.75 5.5 25.77 25.77 0 008.62 4.64 6.37 6.37 0 001.93-1.33l8.45-8.45.24-.24A6.43 6.43 0 0025.9 17.8c.01-.06.04-.1.06-.16.17-.4.44-.77.76-1.07a3.36 3.36 0 014.72 0 12.85 12.85 0 01-.01 18.24l-6.24 6.23A25.78 25.78 0 0048 24.64a28.99 28.99 0 00-2.43-4.78 13.02 13.02 0 01-2.3 3.15l-5.21 5.2.02-2.32c.03-1.86-.26-3.7-.9-5.46l-.2-.56 1.56-1.57a6.2 6.2 0 001.84-4.64 26.52 26.52 0 00-8.93-5.4c-.63.31-1.21.73-1.72 1.23l-8.43 8.44c-.26.25-.5.52-.7.8a6.42 6.42 0 001.55 11.36c-.16.5-.45.98-.87 1.38zm-1.55-7.45a4.53 4.53 0 119.07 0 4.53 4.53 0 01-9.07 0z' fill='url(%23paint0_linear)'/%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear' x1='-.41' y1='24.97' x2='48.1' y2='24.03' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23F96216'/%3E%3Cstop offset='.46' stop-color='%23B200F8'/%3E%3Cstop offset='1' stop-color='%2300B4F2'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E"
}