Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
126 lines (126 loc) · 3.9 KB
/
Copy pathpackage.json
File metadata and controls
126 lines (126 loc) · 3.9 KB
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
{
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/main/client/shared/src/schema/extension.schema.json",
"name": "search-export",
"publisher": "sourcegraph",
"description": "Export search results as CSV",
"repository": {
"type": "git",
"url": "https://github.com/sourcegraph/sourcegraph-search-export.git"
},
"categories": [
"Reports and stats"
],
"tags": [
"search",
"results",
"export"
],
"version": "0.0.0-development",
"license": "MIT",
"bugs": {
"url": "https://github.com/sourcegraph/sourcegraph-search-export/issues"
},
"activationEvents": [
"*"
],
"contributes": {
"actions": [
{
"id": "searchExport.export",
"command": "searchExport.exportSearchResultsToCSV",
"commandArguments": [
"${get(context, 'searchQuery')}",
"${get(context, 'patternType')}"
],
"title": "Export search results",
"category": "Sourcegraph",
"actionItem": {
"label": "Export to CSV",
"description": "Download CSV file"
}
}
],
"menus": {
"search/results/toolbar": [
{
"action": "searchExport.export"
}
]
},
"configuration": {
"title": "Search export settings",
"properties": {
"searchExport.searchPatternType": {
"description": "Search pattern type to use. Starting with Sourcegraph 3.29, this is automatically in sync with the search bar and is not necessary to configure.",
"type": "string",
"enum": ["literal", "regexp", "structural"],
"default": "literal"
},
"searchExport.maxMatchContentLength": {
"description": "Maximum length of individual search match content ('Search matches' column).",
"type": "integer",
"default": 200
}
}
}
},
"main": "dist/extension.js",
"scripts": {
"prettier": "prettier 'src/**/*.{js?(on),ts}' --write --list-different",
"prettier:check": "yarn run prettier -- --write=false",
"tslint": "tslint -p tsconfig.json './src/**/*.ts'",
"tslint:fix": "yarn run tslint -- --fix",
"typecheck": "tsc -p tsconfig.json",
"build": "parcel build --out-file extension.js src/extension.ts",
"serve": "yarn run symlink-package && parcel serve --no-hmr --no-source-maps --out-file extension.js src/extension.ts",
"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",
"watch:typecheck": "tsc -p tsconfig.json -w",
"watch:build": "tsc -p tsconfig.dist.json -w",
"watch:test": "yarn run test -- -w",
"symlink-package": "mkdirp dist && lnfs ./package.json ./dist/package.json",
"sourcegraph:prepublish": "yarn run build"
},
"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/extension-api-stubs": "^0.2.2",
"@sourcegraph/tslint-config": "^13.3.0",
"@types/js-base64": "^2.3.1",
"@types/mocha": "^5.2.7",
"@types/node": "^10.14.10",
"lnfs-cli": "^2.1.0",
"mkdirp": "^0.5.1",
"mocha": "^5.2.0",
"nyc": "^15.0.0",
"parcel-bundler": "^1.12.3",
"prettier": "^1.18.2",
"source-map-support": "^0.5.12",
"sourcegraph": "^23.0.1",
"ts-node": "^7.0.1",
"tslint": "^5.18.0",
"tslint-language-service": "^0.9.9",
"typescript": "^3.5.2"
},
"dependencies": {
"js-base64": "^2.5.2"
}
}