@storm-software/git-tools 2.102.0 → 2.104.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/bin/git.cjs +58 -59
- package/bin/git.js +58 -59
- package/dist/{chunk-WAYANCDV.js → chunk-232JIEVA.js} +1 -1
- package/dist/{chunk-WZADZNEI.cjs → chunk-L2C6A3XV.cjs} +58 -59
- package/dist/{chunk-WEKKNQBE.js → chunk-TFEV2FZY.js} +58 -59
- package/dist/{chunk-JPOOLWH4.js → chunk-W7SYRJE7.js} +1 -1
- package/dist/{chunk-PDBBNGUQ.cjs → chunk-WTMYHIID.cjs} +3 -3
- package/dist/chunk-Y7XG7IJ6.cjs +18 -0
- package/dist/commit/config.cjs +3 -3
- package/dist/commit/config.js +2 -2
- package/dist/commitlint/config.cjs +20 -20
- package/dist/commitlint/config.js +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +3 -3
- package/dist/release/config.cjs +3 -3
- package/dist/release/config.d.cts +103 -383
- package/dist/release/config.d.ts +103 -383
- package/dist/release/config.js +2 -2
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +51 -191
- package/dist/types.d.ts +51 -191
- package/dist/types.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-YCY2PJXX.cjs +0 -18
package/bin/git.cjs
CHANGED
|
@@ -65313,6 +65313,7 @@ var _child_process = require('child_process'); var _child_process2 = _interopReq
|
|
|
65313
65313
|
// src/types.ts
|
|
65314
65314
|
_chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
|
|
65315
65315
|
var DEFAULT_COMMIT_TYPES = {
|
|
65316
|
+
/* --- Bumps version when selected --- */
|
|
65316
65317
|
chore: {
|
|
65317
65318
|
description: "Other changes that don't modify src or test files",
|
|
65318
65319
|
title: "Chore",
|
|
@@ -65323,36 +65324,16 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65323
65324
|
hidden: false
|
|
65324
65325
|
}
|
|
65325
65326
|
},
|
|
65326
|
-
|
|
65327
|
-
description: "
|
|
65328
|
-
title: "
|
|
65329
|
-
emoji: "\u{
|
|
65330
|
-
semverBump: "patch",
|
|
65331
|
-
changelog: {
|
|
65332
|
-
title: "Continuous Integration",
|
|
65333
|
-
hidden: false
|
|
65334
|
-
}
|
|
65335
|
-
},
|
|
65336
|
-
deps: {
|
|
65337
|
-
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
65338
|
-
title: "Dependencies",
|
|
65339
|
-
emoji: "\u{1F4E6} ",
|
|
65327
|
+
fix: {
|
|
65328
|
+
description: "A change that resolves an issue previously identified with the package",
|
|
65329
|
+
title: "Bug Fix",
|
|
65330
|
+
emoji: "\u{1FAB2} ",
|
|
65340
65331
|
semverBump: "patch",
|
|
65341
65332
|
changelog: {
|
|
65342
|
-
title: "
|
|
65333
|
+
title: "Bug Fixes",
|
|
65343
65334
|
hidden: false
|
|
65344
65335
|
}
|
|
65345
65336
|
},
|
|
65346
|
-
docs: {
|
|
65347
|
-
description: "A change that only includes documentation updates",
|
|
65348
|
-
title: "Documentation",
|
|
65349
|
-
emoji: "\u{1F4DC} ",
|
|
65350
|
-
semverBump: "none",
|
|
65351
|
-
changelog: {
|
|
65352
|
-
title: "Documentation",
|
|
65353
|
-
hidden: true
|
|
65354
|
-
}
|
|
65355
|
-
},
|
|
65356
65337
|
feat: {
|
|
65357
65338
|
description: "A change that adds a new feature to the package",
|
|
65358
65339
|
title: "Feature",
|
|
@@ -65363,23 +65344,13 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65363
65344
|
hidden: false
|
|
65364
65345
|
}
|
|
65365
65346
|
},
|
|
65366
|
-
|
|
65367
|
-
description: "
|
|
65368
|
-
title: "
|
|
65369
|
-
emoji: "\u{
|
|
65347
|
+
ci: {
|
|
65348
|
+
description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
65349
|
+
title: "Continuous Integration",
|
|
65350
|
+
emoji: "\u{1F9F0} ",
|
|
65370
65351
|
semverBump: "patch",
|
|
65371
65352
|
changelog: {
|
|
65372
|
-
title: "
|
|
65373
|
-
hidden: false
|
|
65374
|
-
}
|
|
65375
|
-
},
|
|
65376
|
-
perf: {
|
|
65377
|
-
description: "A code change that improves performance",
|
|
65378
|
-
title: "Performance Improvement",
|
|
65379
|
-
emoji: "\u23F1\uFE0F ",
|
|
65380
|
-
semverBump: "none",
|
|
65381
|
-
changelog: {
|
|
65382
|
-
title: "Performance Improvements",
|
|
65353
|
+
title: "Continuous Integration",
|
|
65383
65354
|
hidden: false
|
|
65384
65355
|
}
|
|
65385
65356
|
},
|
|
@@ -65389,27 +65360,38 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65389
65360
|
emoji: "\u{1F9EA} ",
|
|
65390
65361
|
semverBump: "patch",
|
|
65391
65362
|
changelog: {
|
|
65392
|
-
title: "Code Improvements",
|
|
65363
|
+
title: "Source Code Improvements",
|
|
65393
65364
|
hidden: false
|
|
65394
65365
|
}
|
|
65395
65366
|
},
|
|
65396
|
-
|
|
65397
|
-
description: "
|
|
65398
|
-
title: "
|
|
65399
|
-
emoji: "\u{
|
|
65367
|
+
style: {
|
|
65368
|
+
description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
65369
|
+
title: "Style Improvements",
|
|
65370
|
+
emoji: "\u{1F48E} ",
|
|
65400
65371
|
semverBump: "patch",
|
|
65401
65372
|
changelog: {
|
|
65402
|
-
title: "
|
|
65373
|
+
title: "Style Improvements",
|
|
65403
65374
|
hidden: false
|
|
65404
65375
|
}
|
|
65405
65376
|
},
|
|
65406
|
-
|
|
65407
|
-
description: "
|
|
65408
|
-
title: "
|
|
65409
|
-
emoji: "\
|
|
65410
|
-
semverBump: "
|
|
65377
|
+
perf: {
|
|
65378
|
+
description: "A code change that improves performance",
|
|
65379
|
+
title: "Performance Improvement",
|
|
65380
|
+
emoji: "\u23F1\uFE0F ",
|
|
65381
|
+
semverBump: "patch",
|
|
65382
|
+
changelog: {
|
|
65383
|
+
title: "Performance Improvements",
|
|
65384
|
+
hidden: false
|
|
65385
|
+
}
|
|
65386
|
+
},
|
|
65387
|
+
/* --- Does not bump version when selected --- */
|
|
65388
|
+
docs: {
|
|
65389
|
+
description: "A change that only includes documentation updates",
|
|
65390
|
+
title: "Documentation",
|
|
65391
|
+
emoji: "\u{1F4DC} ",
|
|
65392
|
+
semverBump: "none",
|
|
65411
65393
|
changelog: {
|
|
65412
|
-
title: "
|
|
65394
|
+
title: "Documentation",
|
|
65413
65395
|
hidden: false
|
|
65414
65396
|
}
|
|
65415
65397
|
},
|
|
@@ -65423,16 +65405,30 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65423
65405
|
hidden: true
|
|
65424
65406
|
}
|
|
65425
65407
|
},
|
|
65426
|
-
|
|
65427
|
-
|
|
65428
|
-
|
|
65429
|
-
|
|
65430
|
-
|
|
65408
|
+
/* --- Not included in commitlint but included in changelog --- */
|
|
65409
|
+
deps: {
|
|
65410
|
+
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
65411
|
+
title: "Dependencies",
|
|
65412
|
+
emoji: "\u{1F4E6} ",
|
|
65413
|
+
hidden: true,
|
|
65414
|
+
semverBump: "patch",
|
|
65431
65415
|
changelog: {
|
|
65432
|
-
title: "
|
|
65416
|
+
title: "Dependency Upgrades",
|
|
65433
65417
|
hidden: false
|
|
65434
65418
|
}
|
|
65435
65419
|
},
|
|
65420
|
+
/* --- Not included in commitlint or changelog --- */
|
|
65421
|
+
build: {
|
|
65422
|
+
description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
65423
|
+
title: "Build",
|
|
65424
|
+
emoji: "\u{1F6E0} ",
|
|
65425
|
+
hidden: true,
|
|
65426
|
+
semverBump: "none",
|
|
65427
|
+
changelog: {
|
|
65428
|
+
title: "Build",
|
|
65429
|
+
hidden: true
|
|
65430
|
+
}
|
|
65431
|
+
},
|
|
65436
65432
|
release: {
|
|
65437
65433
|
description: "Publishing a commit containing a newly released version",
|
|
65438
65434
|
title: "Publish Release",
|
|
@@ -65450,7 +65446,10 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
65450
65446
|
type: "select",
|
|
65451
65447
|
title: "Commit Type",
|
|
65452
65448
|
description: "Select the commit type that best describes your changes",
|
|
65453
|
-
enum: DEFAULT_COMMIT_TYPES,
|
|
65449
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter((type) => DEFAULT_COMMIT_TYPES[type].hidden !== true).reduce((ret, type) => {
|
|
65450
|
+
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
65451
|
+
return ret;
|
|
65452
|
+
}, {}),
|
|
65454
65453
|
defaultValue: "chore",
|
|
65455
65454
|
maxLength: 20,
|
|
65456
65455
|
minLength: 3
|
package/bin/git.js
CHANGED
|
@@ -65313,6 +65313,7 @@ import childProcess from "node:child_process";
|
|
|
65313
65313
|
// src/types.ts
|
|
65314
65314
|
init_esm_shims();
|
|
65315
65315
|
var DEFAULT_COMMIT_TYPES = {
|
|
65316
|
+
/* --- Bumps version when selected --- */
|
|
65316
65317
|
chore: {
|
|
65317
65318
|
description: "Other changes that don't modify src or test files",
|
|
65318
65319
|
title: "Chore",
|
|
@@ -65323,36 +65324,16 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65323
65324
|
hidden: false
|
|
65324
65325
|
}
|
|
65325
65326
|
},
|
|
65326
|
-
|
|
65327
|
-
description: "
|
|
65328
|
-
title: "
|
|
65329
|
-
emoji: "\u{
|
|
65330
|
-
semverBump: "patch",
|
|
65331
|
-
changelog: {
|
|
65332
|
-
title: "Continuous Integration",
|
|
65333
|
-
hidden: false
|
|
65334
|
-
}
|
|
65335
|
-
},
|
|
65336
|
-
deps: {
|
|
65337
|
-
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
65338
|
-
title: "Dependencies",
|
|
65339
|
-
emoji: "\u{1F4E6} ",
|
|
65327
|
+
fix: {
|
|
65328
|
+
description: "A change that resolves an issue previously identified with the package",
|
|
65329
|
+
title: "Bug Fix",
|
|
65330
|
+
emoji: "\u{1FAB2} ",
|
|
65340
65331
|
semverBump: "patch",
|
|
65341
65332
|
changelog: {
|
|
65342
|
-
title: "
|
|
65333
|
+
title: "Bug Fixes",
|
|
65343
65334
|
hidden: false
|
|
65344
65335
|
}
|
|
65345
65336
|
},
|
|
65346
|
-
docs: {
|
|
65347
|
-
description: "A change that only includes documentation updates",
|
|
65348
|
-
title: "Documentation",
|
|
65349
|
-
emoji: "\u{1F4DC} ",
|
|
65350
|
-
semverBump: "none",
|
|
65351
|
-
changelog: {
|
|
65352
|
-
title: "Documentation",
|
|
65353
|
-
hidden: true
|
|
65354
|
-
}
|
|
65355
|
-
},
|
|
65356
65337
|
feat: {
|
|
65357
65338
|
description: "A change that adds a new feature to the package",
|
|
65358
65339
|
title: "Feature",
|
|
@@ -65363,23 +65344,13 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65363
65344
|
hidden: false
|
|
65364
65345
|
}
|
|
65365
65346
|
},
|
|
65366
|
-
|
|
65367
|
-
description: "
|
|
65368
|
-
title: "
|
|
65369
|
-
emoji: "\u{
|
|
65347
|
+
ci: {
|
|
65348
|
+
description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
65349
|
+
title: "Continuous Integration",
|
|
65350
|
+
emoji: "\u{1F9F0} ",
|
|
65370
65351
|
semverBump: "patch",
|
|
65371
65352
|
changelog: {
|
|
65372
|
-
title: "
|
|
65373
|
-
hidden: false
|
|
65374
|
-
}
|
|
65375
|
-
},
|
|
65376
|
-
perf: {
|
|
65377
|
-
description: "A code change that improves performance",
|
|
65378
|
-
title: "Performance Improvement",
|
|
65379
|
-
emoji: "\u23F1\uFE0F ",
|
|
65380
|
-
semverBump: "none",
|
|
65381
|
-
changelog: {
|
|
65382
|
-
title: "Performance Improvements",
|
|
65353
|
+
title: "Continuous Integration",
|
|
65383
65354
|
hidden: false
|
|
65384
65355
|
}
|
|
65385
65356
|
},
|
|
@@ -65389,27 +65360,38 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65389
65360
|
emoji: "\u{1F9EA} ",
|
|
65390
65361
|
semverBump: "patch",
|
|
65391
65362
|
changelog: {
|
|
65392
|
-
title: "Code Improvements",
|
|
65363
|
+
title: "Source Code Improvements",
|
|
65393
65364
|
hidden: false
|
|
65394
65365
|
}
|
|
65395
65366
|
},
|
|
65396
|
-
|
|
65397
|
-
description: "
|
|
65398
|
-
title: "
|
|
65399
|
-
emoji: "\u{
|
|
65367
|
+
style: {
|
|
65368
|
+
description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
65369
|
+
title: "Style Improvements",
|
|
65370
|
+
emoji: "\u{1F48E} ",
|
|
65400
65371
|
semverBump: "patch",
|
|
65401
65372
|
changelog: {
|
|
65402
|
-
title: "
|
|
65373
|
+
title: "Style Improvements",
|
|
65403
65374
|
hidden: false
|
|
65404
65375
|
}
|
|
65405
65376
|
},
|
|
65406
|
-
|
|
65407
|
-
description: "
|
|
65408
|
-
title: "
|
|
65409
|
-
emoji: "\
|
|
65410
|
-
semverBump: "
|
|
65377
|
+
perf: {
|
|
65378
|
+
description: "A code change that improves performance",
|
|
65379
|
+
title: "Performance Improvement",
|
|
65380
|
+
emoji: "\u23F1\uFE0F ",
|
|
65381
|
+
semverBump: "patch",
|
|
65382
|
+
changelog: {
|
|
65383
|
+
title: "Performance Improvements",
|
|
65384
|
+
hidden: false
|
|
65385
|
+
}
|
|
65386
|
+
},
|
|
65387
|
+
/* --- Does not bump version when selected --- */
|
|
65388
|
+
docs: {
|
|
65389
|
+
description: "A change that only includes documentation updates",
|
|
65390
|
+
title: "Documentation",
|
|
65391
|
+
emoji: "\u{1F4DC} ",
|
|
65392
|
+
semverBump: "none",
|
|
65411
65393
|
changelog: {
|
|
65412
|
-
title: "
|
|
65394
|
+
title: "Documentation",
|
|
65413
65395
|
hidden: false
|
|
65414
65396
|
}
|
|
65415
65397
|
},
|
|
@@ -65423,16 +65405,30 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
65423
65405
|
hidden: true
|
|
65424
65406
|
}
|
|
65425
65407
|
},
|
|
65426
|
-
|
|
65427
|
-
|
|
65428
|
-
|
|
65429
|
-
|
|
65430
|
-
|
|
65408
|
+
/* --- Not included in commitlint but included in changelog --- */
|
|
65409
|
+
deps: {
|
|
65410
|
+
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
65411
|
+
title: "Dependencies",
|
|
65412
|
+
emoji: "\u{1F4E6} ",
|
|
65413
|
+
hidden: true,
|
|
65414
|
+
semverBump: "patch",
|
|
65431
65415
|
changelog: {
|
|
65432
|
-
title: "
|
|
65416
|
+
title: "Dependency Upgrades",
|
|
65433
65417
|
hidden: false
|
|
65434
65418
|
}
|
|
65435
65419
|
},
|
|
65420
|
+
/* --- Not included in commitlint or changelog --- */
|
|
65421
|
+
build: {
|
|
65422
|
+
description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
65423
|
+
title: "Build",
|
|
65424
|
+
emoji: "\u{1F6E0} ",
|
|
65425
|
+
hidden: true,
|
|
65426
|
+
semverBump: "none",
|
|
65427
|
+
changelog: {
|
|
65428
|
+
title: "Build",
|
|
65429
|
+
hidden: true
|
|
65430
|
+
}
|
|
65431
|
+
},
|
|
65436
65432
|
release: {
|
|
65437
65433
|
description: "Publishing a commit containing a newly released version",
|
|
65438
65434
|
title: "Publish Release",
|
|
@@ -65450,7 +65446,10 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
65450
65446
|
type: "select",
|
|
65451
65447
|
title: "Commit Type",
|
|
65452
65448
|
description: "Select the commit type that best describes your changes",
|
|
65453
|
-
enum: DEFAULT_COMMIT_TYPES,
|
|
65449
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter((type) => DEFAULT_COMMIT_TYPES[type].hidden !== true).reduce((ret, type) => {
|
|
65450
|
+
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
65451
|
+
return ret;
|
|
65452
|
+
}, {}),
|
|
65454
65453
|
defaultValue: "chore",
|
|
65455
65454
|
maxLength: 20,
|
|
65456
65455
|
minLength: 3
|
|
@@ -3,6 +3,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
3
3
|
|
|
4
4
|
// src/types.ts
|
|
5
5
|
var DEFAULT_COMMIT_TYPES = {
|
|
6
|
+
/* --- Bumps version when selected --- */
|
|
6
7
|
chore: {
|
|
7
8
|
description: "Other changes that don't modify src or test files",
|
|
8
9
|
title: "Chore",
|
|
@@ -13,36 +14,16 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
13
14
|
hidden: false
|
|
14
15
|
}
|
|
15
16
|
},
|
|
16
|
-
|
|
17
|
-
description: "
|
|
18
|
-
title: "
|
|
19
|
-
emoji: "\u{
|
|
20
|
-
semverBump: "patch",
|
|
21
|
-
changelog: {
|
|
22
|
-
title: "Continuous Integration",
|
|
23
|
-
hidden: false
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
deps: {
|
|
27
|
-
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
28
|
-
title: "Dependencies",
|
|
29
|
-
emoji: "\u{1F4E6} ",
|
|
17
|
+
fix: {
|
|
18
|
+
description: "A change that resolves an issue previously identified with the package",
|
|
19
|
+
title: "Bug Fix",
|
|
20
|
+
emoji: "\u{1FAB2} ",
|
|
30
21
|
semverBump: "patch",
|
|
31
22
|
changelog: {
|
|
32
|
-
title: "
|
|
23
|
+
title: "Bug Fixes",
|
|
33
24
|
hidden: false
|
|
34
25
|
}
|
|
35
26
|
},
|
|
36
|
-
docs: {
|
|
37
|
-
description: "A change that only includes documentation updates",
|
|
38
|
-
title: "Documentation",
|
|
39
|
-
emoji: "\u{1F4DC} ",
|
|
40
|
-
semverBump: "none",
|
|
41
|
-
changelog: {
|
|
42
|
-
title: "Documentation",
|
|
43
|
-
hidden: true
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
27
|
feat: {
|
|
47
28
|
description: "A change that adds a new feature to the package",
|
|
48
29
|
title: "Feature",
|
|
@@ -53,23 +34,13 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
53
34
|
hidden: false
|
|
54
35
|
}
|
|
55
36
|
},
|
|
56
|
-
|
|
57
|
-
description: "
|
|
58
|
-
title: "
|
|
59
|
-
emoji: "\u{
|
|
37
|
+
ci: {
|
|
38
|
+
description: "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)",
|
|
39
|
+
title: "Continuous Integration",
|
|
40
|
+
emoji: "\u{1F9F0} ",
|
|
60
41
|
semverBump: "patch",
|
|
61
42
|
changelog: {
|
|
62
|
-
title: "
|
|
63
|
-
hidden: false
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
perf: {
|
|
67
|
-
description: "A code change that improves performance",
|
|
68
|
-
title: "Performance Improvement",
|
|
69
|
-
emoji: "\u23F1\uFE0F ",
|
|
70
|
-
semverBump: "none",
|
|
71
|
-
changelog: {
|
|
72
|
-
title: "Performance Improvements",
|
|
43
|
+
title: "Continuous Integration",
|
|
73
44
|
hidden: false
|
|
74
45
|
}
|
|
75
46
|
},
|
|
@@ -79,27 +50,38 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
79
50
|
emoji: "\u{1F9EA} ",
|
|
80
51
|
semverBump: "patch",
|
|
81
52
|
changelog: {
|
|
82
|
-
title: "Code Improvements",
|
|
53
|
+
title: "Source Code Improvements",
|
|
83
54
|
hidden: false
|
|
84
55
|
}
|
|
85
56
|
},
|
|
86
|
-
|
|
87
|
-
description: "
|
|
88
|
-
title: "
|
|
89
|
-
emoji: "\u{
|
|
57
|
+
style: {
|
|
58
|
+
description: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",
|
|
59
|
+
title: "Style Improvements",
|
|
60
|
+
emoji: "\u{1F48E} ",
|
|
90
61
|
semverBump: "patch",
|
|
91
62
|
changelog: {
|
|
92
|
-
title: "
|
|
63
|
+
title: "Style Improvements",
|
|
93
64
|
hidden: false
|
|
94
65
|
}
|
|
95
66
|
},
|
|
96
|
-
|
|
97
|
-
description: "
|
|
98
|
-
title: "
|
|
99
|
-
emoji: "\
|
|
100
|
-
semverBump: "
|
|
67
|
+
perf: {
|
|
68
|
+
description: "A code change that improves performance",
|
|
69
|
+
title: "Performance Improvement",
|
|
70
|
+
emoji: "\u23F1\uFE0F ",
|
|
71
|
+
semverBump: "patch",
|
|
101
72
|
changelog: {
|
|
102
|
-
title: "
|
|
73
|
+
title: "Performance Improvements",
|
|
74
|
+
hidden: false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
/* --- Does not bump version when selected --- */
|
|
78
|
+
docs: {
|
|
79
|
+
description: "A change that only includes documentation updates",
|
|
80
|
+
title: "Documentation",
|
|
81
|
+
emoji: "\u{1F4DC} ",
|
|
82
|
+
semverBump: "none",
|
|
83
|
+
changelog: {
|
|
84
|
+
title: "Documentation",
|
|
103
85
|
hidden: false
|
|
104
86
|
}
|
|
105
87
|
},
|
|
@@ -113,16 +95,30 @@ var DEFAULT_COMMIT_TYPES = {
|
|
|
113
95
|
hidden: true
|
|
114
96
|
}
|
|
115
97
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
98
|
+
/* --- Not included in commitlint but included in changelog --- */
|
|
99
|
+
deps: {
|
|
100
|
+
description: "Changes that add, update, or remove dependencies. This includes devDependencies and peerDependencies",
|
|
101
|
+
title: "Dependencies",
|
|
102
|
+
emoji: "\u{1F4E6} ",
|
|
103
|
+
hidden: true,
|
|
104
|
+
semverBump: "patch",
|
|
121
105
|
changelog: {
|
|
122
|
-
title: "
|
|
106
|
+
title: "Dependency Upgrades",
|
|
123
107
|
hidden: false
|
|
124
108
|
}
|
|
125
109
|
},
|
|
110
|
+
/* --- Not included in commitlint or changelog --- */
|
|
111
|
+
build: {
|
|
112
|
+
description: "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)",
|
|
113
|
+
title: "Build",
|
|
114
|
+
emoji: "\u{1F6E0} ",
|
|
115
|
+
hidden: true,
|
|
116
|
+
semverBump: "none",
|
|
117
|
+
changelog: {
|
|
118
|
+
title: "Build",
|
|
119
|
+
hidden: true
|
|
120
|
+
}
|
|
121
|
+
},
|
|
126
122
|
release: {
|
|
127
123
|
description: "Publishing a commit containing a newly released version",
|
|
128
124
|
title: "Publish Release",
|
|
@@ -140,7 +136,10 @@ var DEFAULT_COMMIT_QUESTIONS = {
|
|
|
140
136
|
type: "select",
|
|
141
137
|
title: "Commit Type",
|
|
142
138
|
description: "Select the commit type that best describes your changes",
|
|
143
|
-
enum: DEFAULT_COMMIT_TYPES,
|
|
139
|
+
enum: Object.keys(DEFAULT_COMMIT_TYPES).filter((type) => DEFAULT_COMMIT_TYPES[type].hidden !== true).reduce((ret, type) => {
|
|
140
|
+
ret[type] = DEFAULT_COMMIT_TYPES[type];
|
|
141
|
+
return ret;
|
|
142
|
+
}, {}),
|
|
144
143
|
defaultValue: "chore",
|
|
145
144
|
maxLength: 20,
|
|
146
145
|
minLength: 3
|