/
package.json
177 lines (177 loc) · 5.25 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
{
"name": "hatenablogger",
"displayName": "hatenablogger",
"publisher": "uraway",
"license": "MIT",
"description": "Post an entry to hatenablog via vscode",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/uraway/hatenablogger.git"
},
"bugs": {
"url": "https://github.com/uraway/hatenablogger/issues"
},
"version": "0.7.1",
"engines": {
"vscode": "^1.40.0"
},
"categories": [
"Other",
"Snippets"
],
"icon": "images/icon.png",
"keywords": [
"Hatena Blog",
"はてなブログ",
"Hatena Fotolife",
"はてなフォトライフ"
],
"activationEvents": [
"onCommand:extension.postOrUpdate",
"onCommand:extension.uploadImage",
"onCommand:extension.retrieveEntry",
"onCommand:extension.dumpAllEntries",
"onCommand:extension.replaceContentInAllEntries"
],
"main": "./out/main.js",
"contributes": {
"commands": [
{
"command": "extension.postOrUpdate",
"title": "Post or Update",
"category": "Hatenablogger"
},
{
"command": "extension.uploadImage",
"title": "Upload Image",
"category": "Hatenablogger"
},
{
"command": "extension.retrieveEntry",
"title": "Retrieve Entry",
"category": "Hatenablogger"
},
{
"command": "extension.dumpAllEntries",
"title": "Dump All Entries",
"category": "Hatenablogger"
},
{
"command": "extension.replaceContentInAllEntries",
"title": "Replace Content In All Entries",
"category": "Hatenablogger"
}
],
"configuration": {
"title": "Hatenablogger configuration",
"properties": {
"hatenablogger.hatenaId": {
"type": "string",
"description": "Hatena ID"
},
"hatenablogger.blogId": {
"type": "string",
"description": "Blog ID"
},
"hatenablogger.apiKey": {
"type": "string",
"description": "API Key"
},
"hatenablogger.openAfterPostOrUpdate": {
"type": "boolean",
"description": "エントリの投稿・更新後にURLを開きます",
"default": false
},
"hatenablogger.askCategory": {
"type": "boolean",
"description": "エントリの投稿・更新時にカテゴリをAPIから取得して選択可能にします",
"default": false
},
"hatenablogger.fotolifeFolder": {
"type": "string",
"default": "Hatena Blog",
"description": "画像をアップロードするフォルダを指定します"
},
"hatenablogger.askCaption": {
"type": "boolean",
"default": false,
"description": "画像をアップロードする際に、キャプションを追加するか尋ねます"
},
"hatenablogger.allowedImageExtensions": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"png",
"jpg",
"jpeg",
"gif",
"bmp"
],
"description": "はてなフォトライフにアップロードできる画像の拡張子を指定します"
}
}
},
"snippets": [
{
"language": "markdown",
"path": "./src/snippets.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run -S esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run -S esbuild-base -- --sourcemap",
"esbuild-watch": "npm run -S esbuild-base -- --sourcemap --watch",
"compile": "tsc -p ./",
"publish": "npx vsce publish --yarn",
"pretest": "yarn compile",
"test": "node ./out/test/runTest.js",
"contributors:add": "all-contributors add",
"lint": "npm-run-all -p lint:*",
"lint:eslint": "eslint src --ext .ts,.tsx",
"lint:type": "tsc -p ./ --noEmit",
"lint:prettier": "prettier -c src",
"contributors:generate": "all-contributors generate",
"ui-test": "yarn compile && extest setup-and-run out/ui-test/*.js -o settings.json -u --mocha_config src/ui-test/.mocharc-debug.js --install_dependencies "
},
"devDependencies": {
"@nut-tree/nut-js": "2.0.1",
"@types/axios": "0.14.0",
"@types/chai": "4.3.0",
"@types/fs-extra": "9.0.13",
"@types/glob": "7.2.0",
"@types/mocha": "9.1.0",
"@types/node": "16.11.26",
"@types/sinon": "10.0.11",
"@types/vscode": "1.40.0",
"@types/xml2js": "0.4.9",
"@typescript-eslint/eslint-plugin": "5.15.0",
"@typescript-eslint/parser": "5.15.0",
"all-contributors-cli": "6.20.0",
"chai": "4.3.6",
"clipboardy": "3.0.0",
"cross-env": "7.0.3",
"esbuild": "0.14.27",
"eslint": "8.11.0",
"fs-extra": "10.0.1",
"glob": "7.2.0",
"mocha": "9.2.2",
"npm-run-all": "4.1.5",
"prettier": "2.6.1",
"typescript": "4.6.3",
"vscode-extension-tester": "4.2.4",
"vscode-extension-tester-native": "3.0.2",
"vscode-test": "1.6.1"
},
"dependencies": {
"axios": "0.26.1",
"dayjs": "1.11.0",
"hatena-fotolife-api": "2.0.0",
"open": "8.4.0",
"wsse": "5.1.0",
"xml2js": "0.4.23"
}
}