backlog-exporter 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +593 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/commands/all/index.d.ts +17 -0
- package/dist/commands/all/index.js +64 -0
- package/dist/commands/hello/index.d.ts +12 -0
- package/dist/commands/hello/index.js +19 -0
- package/dist/commands/hello/world.d.ts +8 -0
- package/dist/commands/hello/world.js +14 -0
- package/dist/commands/issue/index.d.ts +17 -0
- package/dist/commands/issue/index.js +53 -0
- package/dist/commands/wiki/index.d.ts +15 -0
- package/dist/commands/wiki/index.js +42 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/utils/backlog-api.d.ts +21 -0
- package/dist/utils/backlog-api.js +141 -0
- package/dist/utils/backlog.d.ts +16 -0
- package/dist/utils/backlog.js +34 -0
- package/dist/utils/common.d.ts +25 -0
- package/dist/utils/common.js +54 -0
- package/oclif.manifest.json +299 -0
- package/package.json +79 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"all": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {
|
|
6
|
+
"url": {
|
|
7
|
+
"description": "URL to download from",
|
|
8
|
+
"name": "url",
|
|
9
|
+
"required": false
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"description": "Backlogからissueとwikiを同時に取得する",
|
|
13
|
+
"examples": [
|
|
14
|
+
"<%= config.bin %> <%= command.id %> --domain cm1.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY -o ./output-dir\nBacklogからAPIキーを使用してissueとwikiを同時に取得する\n"
|
|
15
|
+
],
|
|
16
|
+
"flags": {
|
|
17
|
+
"apiKey": {
|
|
18
|
+
"description": "Backlog API key (環境変数 BACKLOG_API_KEY からも自動読み取り可能)",
|
|
19
|
+
"name": "apiKey",
|
|
20
|
+
"required": false,
|
|
21
|
+
"hasDynamicHelp": false,
|
|
22
|
+
"multiple": false,
|
|
23
|
+
"type": "option"
|
|
24
|
+
},
|
|
25
|
+
"count": {
|
|
26
|
+
"char": "c",
|
|
27
|
+
"description": "一度に取得する課題数",
|
|
28
|
+
"name": "count",
|
|
29
|
+
"required": false,
|
|
30
|
+
"default": 100,
|
|
31
|
+
"hasDynamicHelp": false,
|
|
32
|
+
"multiple": false,
|
|
33
|
+
"type": "option"
|
|
34
|
+
},
|
|
35
|
+
"domain": {
|
|
36
|
+
"description": "Backlog domain (e.g. example.backlog.jp)",
|
|
37
|
+
"name": "domain",
|
|
38
|
+
"required": true,
|
|
39
|
+
"hasDynamicHelp": false,
|
|
40
|
+
"multiple": false,
|
|
41
|
+
"type": "option"
|
|
42
|
+
},
|
|
43
|
+
"output": {
|
|
44
|
+
"char": "o",
|
|
45
|
+
"description": "出力ディレクトリのルートパス(デフォルトはプロジェクトキー)",
|
|
46
|
+
"name": "output",
|
|
47
|
+
"required": false,
|
|
48
|
+
"hasDynamicHelp": false,
|
|
49
|
+
"multiple": false,
|
|
50
|
+
"type": "option"
|
|
51
|
+
},
|
|
52
|
+
"projectIdOrKey": {
|
|
53
|
+
"description": "Backlog project ID or key",
|
|
54
|
+
"name": "projectIdOrKey",
|
|
55
|
+
"required": true,
|
|
56
|
+
"hasDynamicHelp": false,
|
|
57
|
+
"multiple": false,
|
|
58
|
+
"type": "option"
|
|
59
|
+
},
|
|
60
|
+
"statusId": {
|
|
61
|
+
"description": "Filter issues by status ID",
|
|
62
|
+
"name": "statusId",
|
|
63
|
+
"required": false,
|
|
64
|
+
"hasDynamicHelp": false,
|
|
65
|
+
"multiple": false,
|
|
66
|
+
"type": "option"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"hasDynamicHelp": false,
|
|
70
|
+
"hiddenAliases": [],
|
|
71
|
+
"id": "all",
|
|
72
|
+
"pluginAlias": "backlog-exporter",
|
|
73
|
+
"pluginName": "backlog-exporter",
|
|
74
|
+
"pluginType": "core",
|
|
75
|
+
"strict": true,
|
|
76
|
+
"enableJsonFlag": false,
|
|
77
|
+
"isESM": true,
|
|
78
|
+
"relativePath": [
|
|
79
|
+
"dist",
|
|
80
|
+
"commands",
|
|
81
|
+
"all",
|
|
82
|
+
"index.js"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"hello": {
|
|
86
|
+
"aliases": [],
|
|
87
|
+
"args": {
|
|
88
|
+
"person": {
|
|
89
|
+
"description": "Person to say hello to",
|
|
90
|
+
"name": "person",
|
|
91
|
+
"required": true
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"description": "Say hello",
|
|
95
|
+
"examples": [
|
|
96
|
+
"<%= config.bin %> <%= command.id %> friend --from oclif\nhello friend from oclif! (./src/commands/hello/index.ts)\n"
|
|
97
|
+
],
|
|
98
|
+
"flags": {
|
|
99
|
+
"from": {
|
|
100
|
+
"char": "f",
|
|
101
|
+
"description": "Who is saying hello",
|
|
102
|
+
"name": "from",
|
|
103
|
+
"required": true,
|
|
104
|
+
"hasDynamicHelp": false,
|
|
105
|
+
"multiple": false,
|
|
106
|
+
"type": "option"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"hasDynamicHelp": false,
|
|
110
|
+
"hiddenAliases": [],
|
|
111
|
+
"id": "hello",
|
|
112
|
+
"pluginAlias": "backlog-exporter",
|
|
113
|
+
"pluginName": "backlog-exporter",
|
|
114
|
+
"pluginType": "core",
|
|
115
|
+
"strict": true,
|
|
116
|
+
"enableJsonFlag": false,
|
|
117
|
+
"isESM": true,
|
|
118
|
+
"relativePath": [
|
|
119
|
+
"dist",
|
|
120
|
+
"commands",
|
|
121
|
+
"hello",
|
|
122
|
+
"index.js"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"hello:world": {
|
|
126
|
+
"aliases": [],
|
|
127
|
+
"args": {},
|
|
128
|
+
"description": "Say hello world",
|
|
129
|
+
"examples": [
|
|
130
|
+
"<%= config.bin %> <%= command.id %>\nhello world! (./src/commands/hello/world.ts)\n"
|
|
131
|
+
],
|
|
132
|
+
"flags": {},
|
|
133
|
+
"hasDynamicHelp": false,
|
|
134
|
+
"hiddenAliases": [],
|
|
135
|
+
"id": "hello:world",
|
|
136
|
+
"pluginAlias": "backlog-exporter",
|
|
137
|
+
"pluginName": "backlog-exporter",
|
|
138
|
+
"pluginType": "core",
|
|
139
|
+
"strict": true,
|
|
140
|
+
"enableJsonFlag": false,
|
|
141
|
+
"isESM": true,
|
|
142
|
+
"relativePath": [
|
|
143
|
+
"dist",
|
|
144
|
+
"commands",
|
|
145
|
+
"hello",
|
|
146
|
+
"world.js"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"issue": {
|
|
150
|
+
"aliases": [],
|
|
151
|
+
"args": {
|
|
152
|
+
"url": {
|
|
153
|
+
"description": "URL to download from",
|
|
154
|
+
"name": "url",
|
|
155
|
+
"required": false
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"description": "Backlogから課題をダウンロードする",
|
|
159
|
+
"examples": [
|
|
160
|
+
"<%= config.bin %> <%= command.id %> --domain cm1.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --output ./issue-data\nBacklogからAPIキーを使用して課題をダウンロードする\n"
|
|
161
|
+
],
|
|
162
|
+
"flags": {
|
|
163
|
+
"apiKey": {
|
|
164
|
+
"description": "Backlog API key (環境変数 BACKLOG_API_KEY からも自動読み取り可能)",
|
|
165
|
+
"name": "apiKey",
|
|
166
|
+
"required": false,
|
|
167
|
+
"hasDynamicHelp": false,
|
|
168
|
+
"multiple": false,
|
|
169
|
+
"type": "option"
|
|
170
|
+
},
|
|
171
|
+
"count": {
|
|
172
|
+
"char": "c",
|
|
173
|
+
"description": "一度に取得する課題数",
|
|
174
|
+
"name": "count",
|
|
175
|
+
"required": false,
|
|
176
|
+
"default": 100,
|
|
177
|
+
"hasDynamicHelp": false,
|
|
178
|
+
"multiple": false,
|
|
179
|
+
"type": "option"
|
|
180
|
+
},
|
|
181
|
+
"domain": {
|
|
182
|
+
"description": "Backlog domain (e.g. example.backlog.jp)",
|
|
183
|
+
"name": "domain",
|
|
184
|
+
"required": true,
|
|
185
|
+
"hasDynamicHelp": false,
|
|
186
|
+
"multiple": false,
|
|
187
|
+
"type": "option"
|
|
188
|
+
},
|
|
189
|
+
"output": {
|
|
190
|
+
"char": "o",
|
|
191
|
+
"description": "出力ディレクトリパス",
|
|
192
|
+
"name": "output",
|
|
193
|
+
"required": false,
|
|
194
|
+
"default": "./backlog-issues",
|
|
195
|
+
"hasDynamicHelp": false,
|
|
196
|
+
"multiple": false,
|
|
197
|
+
"type": "option"
|
|
198
|
+
},
|
|
199
|
+
"projectIdOrKey": {
|
|
200
|
+
"description": "Backlog project ID or key",
|
|
201
|
+
"name": "projectIdOrKey",
|
|
202
|
+
"required": true,
|
|
203
|
+
"hasDynamicHelp": false,
|
|
204
|
+
"multiple": false,
|
|
205
|
+
"type": "option"
|
|
206
|
+
},
|
|
207
|
+
"statusId": {
|
|
208
|
+
"description": "Filter issues by status ID",
|
|
209
|
+
"name": "statusId",
|
|
210
|
+
"required": false,
|
|
211
|
+
"hasDynamicHelp": false,
|
|
212
|
+
"multiple": false,
|
|
213
|
+
"type": "option"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"hasDynamicHelp": false,
|
|
217
|
+
"hiddenAliases": [],
|
|
218
|
+
"id": "issue",
|
|
219
|
+
"pluginAlias": "backlog-exporter",
|
|
220
|
+
"pluginName": "backlog-exporter",
|
|
221
|
+
"pluginType": "core",
|
|
222
|
+
"strict": true,
|
|
223
|
+
"enableJsonFlag": false,
|
|
224
|
+
"isESM": true,
|
|
225
|
+
"relativePath": [
|
|
226
|
+
"dist",
|
|
227
|
+
"commands",
|
|
228
|
+
"issue",
|
|
229
|
+
"index.js"
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"wiki": {
|
|
233
|
+
"aliases": [],
|
|
234
|
+
"args": {
|
|
235
|
+
"url": {
|
|
236
|
+
"description": "URL to download from",
|
|
237
|
+
"name": "url",
|
|
238
|
+
"required": false
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"description": "BacklogからWikiコンテンツをダウンロードする",
|
|
242
|
+
"examples": [
|
|
243
|
+
"<%= config.bin %> <%= command.id %> --domain cm1.backlog.jp --projectIdOrKey PROJECT_KEY --apiKey YOUR_API_KEY --output ./wiki-data\nBacklogからAPIキーを使用してWikiコンテンツをダウンロードする\n"
|
|
244
|
+
],
|
|
245
|
+
"flags": {
|
|
246
|
+
"apiKey": {
|
|
247
|
+
"description": "Backlog API key (環境変数 BACKLOG_API_KEY からも自動読み取り可能)",
|
|
248
|
+
"name": "apiKey",
|
|
249
|
+
"required": false,
|
|
250
|
+
"hasDynamicHelp": false,
|
|
251
|
+
"multiple": false,
|
|
252
|
+
"type": "option"
|
|
253
|
+
},
|
|
254
|
+
"domain": {
|
|
255
|
+
"description": "Backlog domain (e.g. example.backlog.jp)",
|
|
256
|
+
"name": "domain",
|
|
257
|
+
"required": true,
|
|
258
|
+
"hasDynamicHelp": false,
|
|
259
|
+
"multiple": false,
|
|
260
|
+
"type": "option"
|
|
261
|
+
},
|
|
262
|
+
"output": {
|
|
263
|
+
"char": "o",
|
|
264
|
+
"description": "出力ディレクトリパス",
|
|
265
|
+
"name": "output",
|
|
266
|
+
"required": false,
|
|
267
|
+
"default": "./backlog-wiki",
|
|
268
|
+
"hasDynamicHelp": false,
|
|
269
|
+
"multiple": false,
|
|
270
|
+
"type": "option"
|
|
271
|
+
},
|
|
272
|
+
"projectIdOrKey": {
|
|
273
|
+
"description": "Backlog project ID or key",
|
|
274
|
+
"name": "projectIdOrKey",
|
|
275
|
+
"required": true,
|
|
276
|
+
"hasDynamicHelp": false,
|
|
277
|
+
"multiple": false,
|
|
278
|
+
"type": "option"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"hasDynamicHelp": false,
|
|
282
|
+
"hiddenAliases": [],
|
|
283
|
+
"id": "wiki",
|
|
284
|
+
"pluginAlias": "backlog-exporter",
|
|
285
|
+
"pluginName": "backlog-exporter",
|
|
286
|
+
"pluginType": "core",
|
|
287
|
+
"strict": true,
|
|
288
|
+
"enableJsonFlag": false,
|
|
289
|
+
"isESM": true,
|
|
290
|
+
"relativePath": [
|
|
291
|
+
"dist",
|
|
292
|
+
"commands",
|
|
293
|
+
"wiki",
|
|
294
|
+
"index.js"
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
"version": "0.0.6"
|
|
299
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "backlog-exporter",
|
|
3
|
+
"description": "A new CLI generated with oclif",
|
|
4
|
+
"version": "0.0.6",
|
|
5
|
+
"author": "ShuntaToda",
|
|
6
|
+
"bin": {
|
|
7
|
+
"backlog-exporter": "bin/run.js"
|
|
8
|
+
},
|
|
9
|
+
"bugs": "https://github.com/ShuntaToda/backlog-exporter/issues",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@oclif/core": "^4",
|
|
12
|
+
"@oclif/plugin-help": "^6",
|
|
13
|
+
"@oclif/plugin-plugins": "^5",
|
|
14
|
+
"dotenv": "^16.4.7",
|
|
15
|
+
"ky": "^1.7.5"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@eslint/compat": "^1",
|
|
19
|
+
"@oclif/prettier-config": "^0.2.1",
|
|
20
|
+
"@oclif/test": "^4",
|
|
21
|
+
"@types/chai": "^4",
|
|
22
|
+
"@types/mocha": "^10",
|
|
23
|
+
"@types/node": "^18",
|
|
24
|
+
"chai": "^4",
|
|
25
|
+
"eslint": "^9",
|
|
26
|
+
"eslint-config-oclif": "^6",
|
|
27
|
+
"eslint-config-prettier": "^10",
|
|
28
|
+
"mocha": "^10",
|
|
29
|
+
"nock": "^14.0.1",
|
|
30
|
+
"oclif": "^4",
|
|
31
|
+
"shx": "^0.3.3",
|
|
32
|
+
"ts-node": "^10",
|
|
33
|
+
"typescript": "^5"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=18.0.0"
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"./bin",
|
|
40
|
+
"./dist",
|
|
41
|
+
"./oclif.manifest.json"
|
|
42
|
+
],
|
|
43
|
+
"homepage": "https://github.com/ShuntaToda/backlog-exporter",
|
|
44
|
+
"keywords": [
|
|
45
|
+
"oclif"
|
|
46
|
+
],
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"main": "dist/index.js",
|
|
49
|
+
"type": "module",
|
|
50
|
+
"oclif": {
|
|
51
|
+
"bin": "backlog-exporter",
|
|
52
|
+
"dirname": "backlog-exporter",
|
|
53
|
+
"commands": "./dist/commands",
|
|
54
|
+
"plugins": [
|
|
55
|
+
"@oclif/plugin-help",
|
|
56
|
+
"@oclif/plugin-plugins"
|
|
57
|
+
],
|
|
58
|
+
"topicSeparator": " ",
|
|
59
|
+
"topics": {
|
|
60
|
+
"hello": {
|
|
61
|
+
"description": "Say hello to the world and others"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "git+https://github.com/ShuntaToda/backlog-exporter.git"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "shx rm -rf dist && tsc -b",
|
|
71
|
+
"lint": "eslint",
|
|
72
|
+
"postpack": "shx rm -f oclif.manifest.json",
|
|
73
|
+
"posttest": "npm run lint",
|
|
74
|
+
"prepack": "oclif manifest && oclif readme",
|
|
75
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
76
|
+
"version": "oclif readme && git add README.md"
|
|
77
|
+
},
|
|
78
|
+
"types": "dist/index.d.ts"
|
|
79
|
+
}
|