ccommit 4.2.0-canary.1 → 4.2.0
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/package.json +4 -32
- package/.turbo/turbo-build.log +0 -4
- package/.turbo/turbo-lint$colon$ts.log +0 -1
- package/release.config.js +0 -25
- package/src/commands/commit/commit.ts +0 -72
- package/src/commands/commit/index.ts +0 -3
- package/src/commands/commit/questions.ts +0 -166
- package/src/commands/commit/with-client.ts +0 -33
- package/src/commands/commit/with-hook.ts +0 -33
- package/src/commands/index.ts +0 -2
- package/src/commands/list/index.ts +0 -3
- package/src/commands/list/list.ts +0 -6
- package/src/data/types.ts +0 -632
- package/src/index.ts +0 -67
- package/src/lib/index.ts +0 -107
- package/src/utils/cancel-if.ts +0 -43
- package/src/utils/filter.ts +0 -23
- package/src/utils/find-by.ts +0 -8
- package/src/utils/find-command.ts +0 -80
- package/src/utils/format.ts +0 -51
- package/src/utils/generate-log.ts +0 -40
- package/src/utils/get-chars-left.ts +0 -17
- package/src/utils/get-git-root-dir.ts +0 -12
- package/src/utils/get-issue-tracker.ts +0 -24
- package/src/utils/get-staged-files.ts +0 -9
- package/src/utils/index.ts +0 -17
- package/src/utils/print-dry-run.ts +0 -7
- package/src/utils/register-hook-interruption-handler.ts +0 -16
- package/tsconfig.json +0 -9
- package/tsdown.config.ts +0 -44
- /package/{dist/index.d.mts → index.d.mts} +0 -0
- /package/{dist/index.mjs → index.mjs} +0 -0
- /package/{dist/index.mjs.LICENSE.txt → index.mjs.LICENSE.txt} +0 -0
- /package/{dist/index.mjs.map → index.mjs.map} +0 -0
package/src/data/types.ts
DELETED
|
@@ -1,632 +0,0 @@
|
|
|
1
|
-
// @todo(ccommit) cache + generation from: @jeromefitz/conventional-gitmoji
|
|
2
|
-
import { SEMVER } from "../lib/index.ts";
|
|
3
|
-
|
|
4
|
-
// @hack(ccommit) emojiLength is to help with formatting until can do it programmatically
|
|
5
|
-
const types = [
|
|
6
|
-
{
|
|
7
|
-
code: ":wheelchair:",
|
|
8
|
-
description: "Improve Accessibility",
|
|
9
|
-
emoji: "♿️",
|
|
10
|
-
emojiLength: 1,
|
|
11
|
-
semver: SEMVER.PATCH,
|
|
12
|
-
type: "access",
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
code: ":chart_with_upwards_trend:",
|
|
16
|
-
description: "Add or Update Analytics or Track Code",
|
|
17
|
-
emoji: "📈",
|
|
18
|
-
emojiLength: 1,
|
|
19
|
-
semver: SEMVER.PATCH,
|
|
20
|
-
type: "analytics",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
code: ":dizzy:",
|
|
24
|
-
description: "Add or Update Animations and Transitions",
|
|
25
|
-
emoji: "💫",
|
|
26
|
-
emojiLength: 1,
|
|
27
|
-
semver: SEMVER.PATCH,
|
|
28
|
-
type: "animation",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
code: ":building_construction:",
|
|
32
|
-
description: "Make Architectural Changes",
|
|
33
|
-
emoji: "🏗️",
|
|
34
|
-
emojiLength: 0,
|
|
35
|
-
semver: SEMVER.NULL,
|
|
36
|
-
type: "arch",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
code: ":bento:",
|
|
40
|
-
description: "Add or Update Assets",
|
|
41
|
-
emoji: "🍱",
|
|
42
|
-
emojiLength: 1,
|
|
43
|
-
semver: SEMVER.PATCH,
|
|
44
|
-
type: "assets",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
code: ":t-rex:",
|
|
48
|
-
description: "Backwards Compatibility",
|
|
49
|
-
emoji: "🦖",
|
|
50
|
-
emojiLength: 1,
|
|
51
|
-
semver: SEMVER.NULL,
|
|
52
|
-
type: "backwards",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
code: ":beers:",
|
|
56
|
-
description: "Write Code Drunkenly",
|
|
57
|
-
emoji: "🍻",
|
|
58
|
-
emojiLength: 1,
|
|
59
|
-
semver: SEMVER.NULL,
|
|
60
|
-
type: "beer",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
code: ":boom:",
|
|
64
|
-
description: "Introduce Breaking Changes",
|
|
65
|
-
emoji: "💥",
|
|
66
|
-
emojiLength: 1,
|
|
67
|
-
semver: SEMVER.MAJOR,
|
|
68
|
-
type: "breaking",
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
code: ":hammer:",
|
|
72
|
-
description: "Add or Update Development Scripts",
|
|
73
|
-
emoji: "🔨",
|
|
74
|
-
emojiLength: 1,
|
|
75
|
-
semver: SEMVER.NULL,
|
|
76
|
-
type: "build",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
code: ":goal_net:",
|
|
80
|
-
description: "Catch Errors",
|
|
81
|
-
emoji: "🥅",
|
|
82
|
-
emojiLength: 1,
|
|
83
|
-
semver: SEMVER.PATCH,
|
|
84
|
-
type: "catch",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
code: ":computer_disk:",
|
|
88
|
-
description: "Changes That Don’t Modify Src or Test Files",
|
|
89
|
-
emoji: "💽️",
|
|
90
|
-
emojiLength: 1,
|
|
91
|
-
semver: SEMVER.NULL,
|
|
92
|
-
type: "chore",
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
code: ":construction_worker:",
|
|
96
|
-
description: "Add or Update CI Build System",
|
|
97
|
-
emoji: "👷",
|
|
98
|
-
emojiLength: 1,
|
|
99
|
-
semver: SEMVER.NULL,
|
|
100
|
-
type: "ci",
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
code: ":wastebasket:",
|
|
104
|
-
description: "Deprecate Code That Needs to Be Cleaned Up",
|
|
105
|
-
emoji: "🗑️",
|
|
106
|
-
emojiLength: 0,
|
|
107
|
-
semver: SEMVER.PATCH,
|
|
108
|
-
type: "clean",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
code: ":alien:",
|
|
112
|
-
description: "Update Code Due to External API Changes",
|
|
113
|
-
emoji: "👽️",
|
|
114
|
-
emojiLength: 1,
|
|
115
|
-
semver: SEMVER.PATCH,
|
|
116
|
-
type: "compat",
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
code: ":thread:",
|
|
120
|
-
description: "Add or Update Code Related to Multithreading or Concurrency",
|
|
121
|
-
emoji: "🧵",
|
|
122
|
-
emojiLength: 1,
|
|
123
|
-
semver: SEMVER.NULL,
|
|
124
|
-
type: "concurrency",
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
code: ":wrench:",
|
|
128
|
-
description: "Add or Update Configuration Files",
|
|
129
|
-
emoji: "🔧",
|
|
130
|
-
emojiLength: 1,
|
|
131
|
-
semver: SEMVER.PATCH,
|
|
132
|
-
type: "config",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
code: ":busts_in_silhouette:",
|
|
136
|
-
description: "Add or Update Contributor(s)",
|
|
137
|
-
emoji: "👥",
|
|
138
|
-
emojiLength: 1,
|
|
139
|
-
semver: SEMVER.NULL,
|
|
140
|
-
type: "contrib-add",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
code: ":monocle_face:",
|
|
144
|
-
description: "Data Exploration/inspection",
|
|
145
|
-
emoji: "🧐",
|
|
146
|
-
emojiLength: 1,
|
|
147
|
-
semver: SEMVER.NULL,
|
|
148
|
-
type: "data",
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
code: ":card_file_box:",
|
|
152
|
-
description: "Perform Database Related Changes",
|
|
153
|
-
emoji: "🗃️",
|
|
154
|
-
emojiLength: 0,
|
|
155
|
-
semver: SEMVER.PATCH,
|
|
156
|
-
type: "db",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
code: ":heavy_plus_sign:",
|
|
160
|
-
description: "Add a Dependency",
|
|
161
|
-
emoji: "➕",
|
|
162
|
-
emojiLength: 1,
|
|
163
|
-
semver: SEMVER.PATCH,
|
|
164
|
-
type: "dep-add",
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
code: ":heavy_minus_sign:",
|
|
168
|
-
description: "Remove a Dependency",
|
|
169
|
-
emoji: "➖",
|
|
170
|
-
emojiLength: 1,
|
|
171
|
-
semver: SEMVER.PATCH,
|
|
172
|
-
type: "dep-rm",
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
code: ":package:",
|
|
176
|
-
description: "Add or Update Compiled Files or Packages",
|
|
177
|
-
emoji: "📦️",
|
|
178
|
-
emojiLength: 1,
|
|
179
|
-
semver: SEMVER.PATCH,
|
|
180
|
-
type: "dep-up",
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
code: ":rocket:",
|
|
184
|
-
description: "Deploy Stuff",
|
|
185
|
-
emoji: "🚀",
|
|
186
|
-
emojiLength: 1,
|
|
187
|
-
semver: SEMVER.NULL,
|
|
188
|
-
type: "deploy",
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
code: ":bulb:",
|
|
192
|
-
description: "Add or Update Comments in Source Code",
|
|
193
|
-
emoji: "💡",
|
|
194
|
-
emojiLength: 1,
|
|
195
|
-
semver: SEMVER.NULL,
|
|
196
|
-
type: "docs-code",
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
code: ":memo:",
|
|
200
|
-
description: "Add or Update Documentation",
|
|
201
|
-
emoji: "📝",
|
|
202
|
-
emojiLength: 1,
|
|
203
|
-
semver: SEMVER.NULL,
|
|
204
|
-
type: "docs",
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
code: ":arrow_down:",
|
|
208
|
-
description: "Downgrade Dependencies",
|
|
209
|
-
emoji: "⬇️",
|
|
210
|
-
emojiLength: 0,
|
|
211
|
-
semver: SEMVER.PATCH,
|
|
212
|
-
type: "downgrade",
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
code: ":technologist:",
|
|
216
|
-
description: "Improve Developer Experience",
|
|
217
|
-
emoji: "💻",
|
|
218
|
-
emojiLength: 1,
|
|
219
|
-
semver: SEMVER.NULL,
|
|
220
|
-
type: "dx",
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
code: ":egg:",
|
|
224
|
-
description: "Add or Update an Easter Egg",
|
|
225
|
-
emoji: "🥚",
|
|
226
|
-
emojiLength: 1,
|
|
227
|
-
semver: SEMVER.PATCH,
|
|
228
|
-
type: "egg",
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
code: ":alembic:",
|
|
232
|
-
description: "Perform Experiments",
|
|
233
|
-
emoji: "⚗️",
|
|
234
|
-
emojiLength: 0,
|
|
235
|
-
semver: SEMVER.PATCH,
|
|
236
|
-
type: "experiment",
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
code: ":sparkles:",
|
|
240
|
-
description: "Introduce New Features",
|
|
241
|
-
emoji: "✨",
|
|
242
|
-
emojiLength: 1,
|
|
243
|
-
semver: SEMVER.MINOR,
|
|
244
|
-
type: "feat",
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
code: ":bug:",
|
|
248
|
-
description: "Fix a Bug",
|
|
249
|
-
emoji: "🐛",
|
|
250
|
-
emojiLength: 1,
|
|
251
|
-
semver: SEMVER.PATCH,
|
|
252
|
-
type: "fix",
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
code: ":green_heart:",
|
|
256
|
-
description: "Fix CI Build",
|
|
257
|
-
emoji: "💚",
|
|
258
|
-
emojiLength: 1,
|
|
259
|
-
semver: SEMVER.NULL,
|
|
260
|
-
type: "fix-ci",
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
code: ":triangular_flag_on_post:",
|
|
264
|
-
description: "Add Update or Remove Feature Flags",
|
|
265
|
-
emoji: "🚩",
|
|
266
|
-
emojiLength: 1,
|
|
267
|
-
semver: SEMVER.PATCH,
|
|
268
|
-
type: "flags",
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
code: ":stethoscope:",
|
|
272
|
-
description: "Add or Update Healthcheck",
|
|
273
|
-
emoji: "🩺",
|
|
274
|
-
emojiLength: 1,
|
|
275
|
-
semver: SEMVER.NULL,
|
|
276
|
-
type: "healthcheck",
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
code: ":ambulance:",
|
|
280
|
-
description: "Critical Hotfix",
|
|
281
|
-
emoji: "🚑️",
|
|
282
|
-
emojiLength: 1,
|
|
283
|
-
semver: SEMVER.PATCH,
|
|
284
|
-
type: "hotfix",
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
code: ":globe_with_meridians:",
|
|
288
|
-
description: "Internationalization and Localization",
|
|
289
|
-
emoji: "🌐",
|
|
290
|
-
emojiLength: 1,
|
|
291
|
-
semver: SEMVER.PATCH,
|
|
292
|
-
type: "i18n",
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
code: ":see_no_evil:",
|
|
296
|
-
description: "Add or Update a Gitignore File.",
|
|
297
|
-
emoji: "🙈",
|
|
298
|
-
emojiLength: 1,
|
|
299
|
-
semver: SEMVER.NULL,
|
|
300
|
-
type: "ignore",
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
code: ":bricks:",
|
|
304
|
-
description: "Infrastructure Related Changes",
|
|
305
|
-
emoji: "🧱",
|
|
306
|
-
emojiLength: 1,
|
|
307
|
-
semver: SEMVER.NULL,
|
|
308
|
-
type: "inf",
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
code: ":tada:",
|
|
312
|
-
description: "Begin a Project",
|
|
313
|
-
emoji: "🎉",
|
|
314
|
-
emojiLength: 1,
|
|
315
|
-
semver: SEMVER.PATCH,
|
|
316
|
-
type: "init",
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
code: ":iphone:",
|
|
320
|
-
description: "Work on Responsive Design",
|
|
321
|
-
emoji: "📱",
|
|
322
|
-
emojiLength: 1,
|
|
323
|
-
semver: SEMVER.PATCH,
|
|
324
|
-
type: "iphone",
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
code: ":page_facing_up:",
|
|
328
|
-
description: "Add or Update License",
|
|
329
|
-
emoji: "📄",
|
|
330
|
-
emojiLength: 1,
|
|
331
|
-
semver: SEMVER.NULL,
|
|
332
|
-
type: "license",
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
code: ":rotating_light:",
|
|
336
|
-
description: "Fix Compiler / Linter Warnings",
|
|
337
|
-
emoji: "🚨",
|
|
338
|
-
emojiLength: 1,
|
|
339
|
-
semver: SEMVER.NULL,
|
|
340
|
-
type: "lint",
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
code: ":loud_sound:",
|
|
344
|
-
description: "Add or Update Logs",
|
|
345
|
-
emoji: "🔊",
|
|
346
|
-
emojiLength: 1,
|
|
347
|
-
semver: SEMVER.NULL,
|
|
348
|
-
type: "log-add",
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
code: ":mute:",
|
|
352
|
-
description: "Remove Logs",
|
|
353
|
-
emoji: "🔇",
|
|
354
|
-
emojiLength: 1,
|
|
355
|
-
semver: SEMVER.NULL,
|
|
356
|
-
type: "log-rm",
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
code: ":necktie:",
|
|
360
|
-
description: "Add or Update Business Logic",
|
|
361
|
-
emoji: "👔",
|
|
362
|
-
emojiLength: 1,
|
|
363
|
-
semver: SEMVER.PATCH,
|
|
364
|
-
type: "logic",
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
code: ":twisted_rightwards_arrows:",
|
|
368
|
-
description: "Merge Branches",
|
|
369
|
-
emoji: "🔀",
|
|
370
|
-
emojiLength: 1,
|
|
371
|
-
semver: SEMVER.NULL,
|
|
372
|
-
type: "merge",
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
code: ":clown_face:",
|
|
376
|
-
description: "Mock Things",
|
|
377
|
-
emoji: "🤡",
|
|
378
|
-
emojiLength: 1,
|
|
379
|
-
semver: SEMVER.NULL,
|
|
380
|
-
type: "mock",
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
code: ":truck:",
|
|
384
|
-
description: "Move or Rename Resources (Eg.: Files Paths Routes).",
|
|
385
|
-
emoji: "🚚",
|
|
386
|
-
emojiLength: 1,
|
|
387
|
-
semver: SEMVER.NULL,
|
|
388
|
-
type: "mv",
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
code: ":airplane:",
|
|
392
|
-
description: "Provide offline support",
|
|
393
|
-
emoji: "✈️",
|
|
394
|
-
emojiLength: 1,
|
|
395
|
-
semver: SEMVER.PATCH,
|
|
396
|
-
type: "offline",
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
code: ":adhesive_bandage:",
|
|
400
|
-
description: "Simple Fix for a Non-Critical Issue",
|
|
401
|
-
emoji: "🩹",
|
|
402
|
-
emojiLength: 1,
|
|
403
|
-
semver: SEMVER.PATCH,
|
|
404
|
-
type: "patch",
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
code: ":zap:",
|
|
408
|
-
description: "Improve Performance",
|
|
409
|
-
emoji: "⚡️",
|
|
410
|
-
emojiLength: 1,
|
|
411
|
-
semver: SEMVER.PATCH,
|
|
412
|
-
type: "perf",
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
code: ":poop:",
|
|
416
|
-
description: "Write Bad Code That Needs to Be Improved",
|
|
417
|
-
emoji: "💩",
|
|
418
|
-
emojiLength: 1,
|
|
419
|
-
semver: SEMVER.NULL,
|
|
420
|
-
type: "poo",
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
code: ":fire:",
|
|
424
|
-
description: "Remove Code or Files",
|
|
425
|
-
emoji: "🔥",
|
|
426
|
-
emojiLength: 1,
|
|
427
|
-
semver: SEMVER.NULL,
|
|
428
|
-
type: "prune",
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
code: ":pushpin:",
|
|
432
|
-
description: "Pin Dependencies to Specific Versions",
|
|
433
|
-
emoji: "📌",
|
|
434
|
-
emojiLength: 1,
|
|
435
|
-
semver: SEMVER.PATCH,
|
|
436
|
-
type: "pushpin",
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
code: ":recycle:",
|
|
440
|
-
description: "Refactor Code",
|
|
441
|
-
emoji: "♻️",
|
|
442
|
-
emojiLength: 0,
|
|
443
|
-
semver: SEMVER.NULL,
|
|
444
|
-
type: "refactor",
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
code: ":bookmark:",
|
|
448
|
-
description: "Release / Version Tags",
|
|
449
|
-
emoji: "🔖",
|
|
450
|
-
emojiLength: 1,
|
|
451
|
-
semver: SEMVER.NULL,
|
|
452
|
-
type: "release",
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
code: ":rewind:",
|
|
456
|
-
description: "Revert Changes",
|
|
457
|
-
emoji: "⏪️",
|
|
458
|
-
emojiLength: 1,
|
|
459
|
-
semver: SEMVER.PATCH,
|
|
460
|
-
type: "revert",
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
code: ":coffin:",
|
|
464
|
-
description: "Remove Dead Code",
|
|
465
|
-
emoji: "⚰️",
|
|
466
|
-
emojiLength: 0,
|
|
467
|
-
semver: SEMVER.NULL,
|
|
468
|
-
type: "rip",
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
code: ":passport_control:",
|
|
472
|
-
description: "Work on Code Related to Authorization Roles and Permissions",
|
|
473
|
-
emoji: "🛂",
|
|
474
|
-
emojiLength: 1,
|
|
475
|
-
semver: SEMVER.PATCH,
|
|
476
|
-
type: "roles",
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
code: ":fast_forward:",
|
|
480
|
-
description: "Create Rollforward Version",
|
|
481
|
-
emoji: "⏩️",
|
|
482
|
-
emojiLength: 1,
|
|
483
|
-
semver: SEMVER.NULL,
|
|
484
|
-
type: "rollforward",
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
code: ":rocket:",
|
|
488
|
-
description: "Custom Type for CI/CD to Hook into Run Build Override",
|
|
489
|
-
emoji: "🚀️",
|
|
490
|
-
emojiLength: 1,
|
|
491
|
-
semver: SEMVER.PATCH,
|
|
492
|
-
type: "run-build",
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
code: ":closed_lock_with_key:",
|
|
496
|
-
description: "Add or Update Secrets",
|
|
497
|
-
emoji: "🔐",
|
|
498
|
-
emojiLength: 1,
|
|
499
|
-
semver: SEMVER.NULL,
|
|
500
|
-
type: "secrets",
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
code: ":lock:",
|
|
504
|
-
description: "Fix Security Issues",
|
|
505
|
-
emoji: "🔒️",
|
|
506
|
-
emojiLength: 1,
|
|
507
|
-
semver: SEMVER.PATCH,
|
|
508
|
-
type: "security",
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
code: ":seedling:",
|
|
512
|
-
description: "Add or Update Seed Files",
|
|
513
|
-
emoji: "🌱",
|
|
514
|
-
emojiLength: 1,
|
|
515
|
-
semver: SEMVER.NULL,
|
|
516
|
-
type: "seed",
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
code: ":mag:",
|
|
520
|
-
description: "Improve Seo",
|
|
521
|
-
emoji: "🔍️",
|
|
522
|
-
emojiLength: 1,
|
|
523
|
-
semver: SEMVER.PATCH,
|
|
524
|
-
type: "seo",
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
code: ":camera_flash:",
|
|
528
|
-
description: "Add or Update Snapshots",
|
|
529
|
-
emoji: "📸",
|
|
530
|
-
emojiLength: 1,
|
|
531
|
-
semver: SEMVER.NULL,
|
|
532
|
-
type: "snapshot",
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
code: ":money_with_wings:",
|
|
536
|
-
description: "Add Sponsorships or Money Related Infrastructure",
|
|
537
|
-
emoji: "💸",
|
|
538
|
-
emojiLength: 1,
|
|
539
|
-
semver: SEMVER.NULL,
|
|
540
|
-
type: "sponsor",
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
code: ":art:",
|
|
544
|
-
description: "Improve Structure / Format of the Code",
|
|
545
|
-
emoji: "🎨",
|
|
546
|
-
emojiLength: 1,
|
|
547
|
-
semver: SEMVER.NULL,
|
|
548
|
-
type: "style",
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
code: ":test_tube:",
|
|
552
|
-
description: "Add a Failing Test",
|
|
553
|
-
emoji: "🧪",
|
|
554
|
-
emojiLength: 1,
|
|
555
|
-
semver: SEMVER.NULL,
|
|
556
|
-
type: "test-fail",
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
code: ":white_check_mark:",
|
|
560
|
-
description: "Add Update or Pass Tests",
|
|
561
|
-
emoji: "✅",
|
|
562
|
-
emojiLength: 1,
|
|
563
|
-
semver: SEMVER.NULL,
|
|
564
|
-
type: "test",
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
code: ":speech_balloon:",
|
|
568
|
-
description: "Add or Update Text and Literals",
|
|
569
|
-
emoji: "💬",
|
|
570
|
-
emojiLength: 1,
|
|
571
|
-
semver: SEMVER.PATCH,
|
|
572
|
-
type: "texts",
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
code: ":label:",
|
|
576
|
-
description: "Add or Update Types",
|
|
577
|
-
emoji: "🏷️",
|
|
578
|
-
emojiLength: 0,
|
|
579
|
-
semver: SEMVER.PATCH,
|
|
580
|
-
type: "types",
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
code: ":pencil2:",
|
|
584
|
-
description: "Fix Typos",
|
|
585
|
-
emoji: "✏️",
|
|
586
|
-
emojiLength: 0,
|
|
587
|
-
semver: SEMVER.PATCH,
|
|
588
|
-
type: "typo",
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
code: ":lipstick:",
|
|
592
|
-
description: "Add or Update the UI and Style Files",
|
|
593
|
-
emoji: "💄",
|
|
594
|
-
emojiLength: 1,
|
|
595
|
-
semver: SEMVER.PATCH,
|
|
596
|
-
type: "ui",
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
code: ":arrow_up:",
|
|
600
|
-
description: "Upgrade Dependencies",
|
|
601
|
-
emoji: "⬆️",
|
|
602
|
-
emojiLength: 0,
|
|
603
|
-
semver: SEMVER.PATCH,
|
|
604
|
-
type: "upgrade",
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
code: ":children_crossing:",
|
|
608
|
-
description: "Improve User Experience / Usability",
|
|
609
|
-
emoji: "🚸",
|
|
610
|
-
emojiLength: 1,
|
|
611
|
-
semver: SEMVER.PATCH,
|
|
612
|
-
type: "ux",
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
code: ":safety_vest:",
|
|
616
|
-
description: "Add or update code related to validation",
|
|
617
|
-
emoji: "🦺",
|
|
618
|
-
emojiLength: 1,
|
|
619
|
-
semver: SEMVER.PATCH,
|
|
620
|
-
type: "validation",
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
code: ":construction:",
|
|
624
|
-
description: "Work in Progress",
|
|
625
|
-
emoji: "🚧",
|
|
626
|
-
emojiLength: 1,
|
|
627
|
-
semver: SEMVER.NULL,
|
|
628
|
-
type: "wip",
|
|
629
|
-
},
|
|
630
|
-
];
|
|
631
|
-
|
|
632
|
-
export default types;
|
package/src/index.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/*!
|
|
4
|
-
* For license information please see index.js.LICENSE.txt
|
|
5
|
-
*/
|
|
6
|
-
import meow from "meow";
|
|
7
|
-
|
|
8
|
-
import { commit, list } from "./commands/index.ts";
|
|
9
|
-
import { COMMANDS, COMMIT_FORMATS, FLAGS, OPTIONS } from "./lib/index.ts";
|
|
10
|
-
import { findCommand } from "./utils/index.ts";
|
|
11
|
-
|
|
12
|
-
const cli = meow(
|
|
13
|
-
`
|
|
14
|
-
Usage
|
|
15
|
-
$ ccommit -c
|
|
16
|
-
|
|
17
|
-
Flags
|
|
18
|
-
--${FLAGS.BREAKING}, -b 💥 Breaking Change
|
|
19
|
-
--${FLAGS.COMMIT}, -c 💽 Mode: Client
|
|
20
|
-
--${FLAGS.DRYRUN}, -n 🎽 Mode: Dry Run
|
|
21
|
-
--${FLAGS.EMOJI}, -e 😜 Emoji (default)
|
|
22
|
-
--${FLAGS.HOOK}, -u 🪝 Mode: Hook
|
|
23
|
-
--${FLAGS.LIST}, -l 📖 List all types
|
|
24
|
-
--${FLAGS.VERSION}, -v 📦 Print installed version
|
|
25
|
-
|
|
26
|
-
Options
|
|
27
|
-
--${OPTIONS.FORMAT} 😜 Commit Format: conventional|gitmoji (default)
|
|
28
|
-
--${OPTIONS.MESSAGE} 📝 Commit Message
|
|
29
|
-
--${OPTIONS.SCOPE} 🔬 Commit Scope
|
|
30
|
-
--${OPTIONS.TITLE} 📓 Commit Title
|
|
31
|
-
--${OPTIONS.TYPE} ✨ Commit Type
|
|
32
|
-
|
|
33
|
-
Notes
|
|
34
|
-
- Pass any non-format options the following will be required: --title, --type
|
|
35
|
-
- If you do not pass any options the Conventional Commit Generator prompt will run
|
|
36
|
-
- Branch Name detection is enabled to pre-populate Issue Tracker information in prompt
|
|
37
|
-
`,
|
|
38
|
-
{
|
|
39
|
-
flags: {
|
|
40
|
-
// Flags
|
|
41
|
-
[FLAGS.BREAKING]: { default: false, shortFlag: "b", type: "boolean" },
|
|
42
|
-
[FLAGS.COMMIT]: { shortFlag: "c", type: "boolean" },
|
|
43
|
-
[FLAGS.DRYRUN]: { shortFlag: "n", type: "boolean" },
|
|
44
|
-
[FLAGS.EMOJI]: { default: true, shortFlag: "e", type: "boolean" },
|
|
45
|
-
[FLAGS.HELP]: { shortFlag: "h", type: "boolean" },
|
|
46
|
-
[FLAGS.HOOK]: { shortFlag: "u", type: "boolean" },
|
|
47
|
-
[FLAGS.LIST]: { shortFlag: "l", type: "boolean" },
|
|
48
|
-
[FLAGS.SKIP]: { default: false, type: "boolean" },
|
|
49
|
-
[FLAGS.VERSION]: { shortFlag: "v", type: "boolean" },
|
|
50
|
-
// Options
|
|
51
|
-
[OPTIONS.FORMAT]: { default: COMMIT_FORMATS.GITMOJI, type: "string" },
|
|
52
|
-
[OPTIONS.MESSAGE]: { type: "string" },
|
|
53
|
-
[OPTIONS.SCOPE]: { type: "string" },
|
|
54
|
-
[OPTIONS.TITLE]: { type: "string" },
|
|
55
|
-
[OPTIONS.TYPE]: { type: "string" },
|
|
56
|
-
},
|
|
57
|
-
importMeta: import.meta,
|
|
58
|
-
},
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
const commands = {
|
|
62
|
-
[COMMANDS.COMMIT]: (options: any) => commit(options),
|
|
63
|
-
[COMMANDS.HOOK]: (options: any) => commit(options),
|
|
64
|
-
[COMMANDS.LIST]: () => list(),
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
findCommand(cli, commands);
|