-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
233 lines (233 loc) · 7.34 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
"name": "vscode-choosealicense",
"displayName": "Choose a License",
"version": "0.9.4",
"description": "Choose a license for your project in VS Code",
"categories": [
"Other"
],
"keywords": [
"license"
],
"homepage": "https://github.com/ultram4rine/vscode-choosealicense",
"bugs": {
"url": "https://github.com/ultram4rine/vscode-choosealicense/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/ultram4rine/vscode-choosealicense"
},
"license": "MIT",
"author": {
"name": "ultram4rine",
"email": "ultramarine730@gmail.com"
},
"publisher": "ultram4rine",
"main": "./out/extension.js",
"browser": "./out/web/extension.js",
"scripts": {
"clean": "rimraf coverage out *.vsix",
"compile": "npm run lint && npm run clean && npm run esbuild && npm run esbuild-web",
"coverage": "c8 npm test",
"esbuild": "esbuild ./src/extension.ts --bundle --external:vscode --platform=node --tsconfig=./tsconfig.json --log-level=info --color=true --format=cjs --target=es2017 --minify --outfile=./out/extension.js",
"esbuild-web": "esbuild ./src/extension.ts --bundle --external:vscode --tsconfig=./tsconfig.json --log-level=info --color=true --format=cjs --minify --outfile=./out/web/extension.js",
"open-in-browser": "vscode-test-web --extensionDevelopmentPath=. .",
"lint": "eslint src --ext ts",
"prepackage": "npm run compile",
"package": "vsce package",
"publish:ovsx": "ovsx publish -p $OVSX_PAT",
"publish:vsce": "vsce publish -p $VSCE_PAT -i",
"pretest": "npm run lint && npm run clean && npm run test-compile",
"test": "node ./out/test/runTest.js",
"test-compile": "tsc --lib DOM -p ./"
},
"capabilities": {
"virtualWorkspaces": {
"supported": "limited",
"description": "In virtual workspaces, creating license is not supported."
}
},
"contributes": {
"commands": [
{
"category": "License",
"command": "license.chooseLicense",
"title": "Choose license"
},
{
"category": "License",
"command": "license.addDefaultLicense",
"title": "Add default license"
},
{
"category": "License",
"command": "license.chooseMultipleLicenses",
"title": "Choose multiple licenses"
},
{
"category": "License",
"command": "license.setDefaultLicense",
"title": "Set default license"
},
{
"category": "License",
"command": "license.setAuthor",
"title": "Set author"
},
{
"category": "License",
"command": "license.setYear",
"title": "Set year"
},
{
"category": "License",
"command": "license.setExtension",
"title": "Set extension"
},
{
"category": "License",
"command": "license.setFilename",
"title": "Set filename"
},
{
"category": "License",
"command": "license.setToken",
"title": "Set token"
}
],
"configuration": {
"title": "Choose a License",
"properties": {
"license.default": {
"type": "string",
"default": "",
"description": "Default license."
},
"license.author": {
"type": "string",
"default": "",
"description": "Author for licenses."
},
"license.year": {
"type": "string",
"default": "auto",
"description": "Year for licenses. Set 'auto' for automatic year detection."
},
"license.extension": {
"type": "string",
"default": "",
"description": "License file extension.",
"enum": [
"",
".md",
".txt"
],
"enumDescriptions": [
"Create licenses without extension",
"Create licenses with .md extension",
"Create licenses with .txt extension"
]
},
"license.filename": {
"type": "string",
"default": "LICENSE",
"description": "License filename."
},
"license.token": {
"type": "string",
"default": "",
"description": "Token for api access."
}
}
},
"menus": {
"commandPalette": [
{
"command": "license.chooseLicense",
"when": "workspaceFolderCount > 0 && !virtualWorkspace"
},
{
"command": "license.addDefaultLicense",
"when": "workspaceFolderCount > 0 && !virtualWorkspace"
},
{
"command": "license.chooseMultipleLicenses",
"when": "workspaceFolderCount > 0 && !virtualWorkspace"
}
]
}
},
"activationEvents": [
"onCommand:license.chooseLicense",
"onCommand:license.addDefaultLicense",
"onCommand:license.chooseMultipleLicenses",
"onCommand:license.setDefaultLicense",
"onCommand:license.setAuthor",
"onCommand:license.setYear",
"onCommand:license.setExtension",
"onCommand:license.setFilename",
"onCommand:license.setToken"
],
"dependencies": {
"@octokit/request-error": "^6.1.4",
"@octokit/rest": "^20.0.2"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^22.2.0",
"@types/vscode": "^1.43.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vscode/test-electron": "^2.4.1",
"@vscode/test-web": "^0.0.56",
"@vscode/vsce": "^2.31.1",
"c8": "^9.1.0",
"esbuild": "^0.20.1",
"eslint": "^8.57.0",
"glob": "^10.3.10",
"mocha": "^10.3.0",
"ovsx": "^0.8.3",
"rimraf": "^5.0.5",
"typescript": "^5.5.4"
},
"engines": {
"vscode": "^1.43.0"
},
"icon": "images/icon.png",
"badges": [
{
"description": "Visual Studio Marketplace Version",
"url": "https://img.shields.io/visual-studio-marketplace/v/ultram4rine.vscode-choosealicense?style=flat-square",
"href": "https://marketplace.visualstudio.com/items/ultram4rine.vscode-choosealicense"
},
{
"description": "Open VSX Version",
"url": "https://img.shields.io/open-vsx/v/ultram4rine/vscode-choosealicense?style=flat-square",
"href": "https://open-vsx.org/extension/ultram4rine/vscode-choosealicense"
},
{
"description": "License",
"url": "https://img.shields.io/github/license/ultram4rine/vscode-choosealicense?style=flat-square",
"href": "https://github.com/ultram4rine/vscode-choosealicense/blob/master/LICENSE"
},
{
"description": "CI/CD status",
"url": "https://img.shields.io/github/actions/workflow/status/ultram4rine/vscode-choosealicense/cicd.yaml?label=CI%2FCD&logo=github&style=flat-square",
"href": "https://github.com/ultram4rine/vscode-choosealicense/actions/workflows/cicd.yaml"
},
{
"description": "Codecov",
"url": "https://img.shields.io/codecov/c/github/ultram4rine/vscode-choosealicense?logo=codecov&style=flat-square",
"href": "https://codecov.io/gh/ultram4rine/vscode-choosealicense"
},
{
"description": "Contribute with Gitpod",
"url": "https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?style=flat-square&logo=gitpod",
"href": "https://gitpod.io/#https://github.com/ultram4rine/vscode-choosealicense"
}
],
"galleryBanner": {
"color": "#212121",
"theme": "dark"
}
}