git-semver-tagger 1.7.0 → 1.7.2
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
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Tagger CLI
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+
|
|
6
|
+
An opinionated program for automatic semantic versioning via git tags and information in commits.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
You can install the tool using any NPM-like system.
|
|
11
|
+
|
|
12
|
+
### Local Example
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm i -D git-semver-tagger # this will install it into a project as a dev dependency
|
|
16
|
+
|
|
17
|
+
npx tagger calculate-version # You can use npx to run a project's programs easily
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Global Example
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm i -g git-semver-tagger # this will install it globally into npm
|
|
24
|
+
|
|
25
|
+
tagger calculate-version # Now it should be available via NPM's path on your shell.
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
|
|
30
|
+
### Calculate Version
|
|
31
|
+
|
|
32
|
+
The `calculate-version` command will generate a new version number based on all of the commits since the last tag, and output as a string.
|
|
33
|
+
|
|
34
|
+
### Tag
|
|
35
|
+
|
|
36
|
+
The `tag` command will create a tag with the given version and push it back to the repository.
|
|
37
|
+
|
|
38
|
+
We recommend this command only is run after the build is validated. Use discernment to decide if it should happen before publication of artifacts, or afterward.
|
|
39
|
+
|
|
40
|
+
### Help
|
|
41
|
+
|
|
42
|
+
For a full listing of the available options in the program, please use the built-in help command.
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
digger --help
|
|
46
|
+
```
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
function addFormatStructureForTime(structure) {
|
|
309
309
|
this.g1a(structure);
|
|
310
310
|
}
|
|
311
|
-
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder,
|
|
311
|
+
initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
|
|
312
312
|
function offsetHours$default(padding, $super) {
|
|
313
313
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
314
314
|
var tmp;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
initMetadataForClass(TaggerConfig, 'TaggerConfig', TaggerConfig, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
88
88
|
//endregion
|
|
89
89
|
function Versions() {
|
|
90
|
-
this.h31_1 = '1.7.
|
|
90
|
+
this.h31_1 = '1.7.2';
|
|
91
91
|
}
|
|
92
92
|
var Versions_instance;
|
|
93
93
|
function Versions_getInstance() {
|
|
@@ -37,6 +37,11 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
37
37
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
+
if (typeof Math.log2 === 'undefined') {
|
|
41
|
+
Math.log2 = function (x) {
|
|
42
|
+
return Math.log(x) * Math.LOG2E;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
40
45
|
if (typeof Math.clz32 === 'undefined') {
|
|
41
46
|
Math.clz32 = function (log, LN2) {
|
|
42
47
|
return function (x) {
|
|
@@ -48,10 +53,11 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
53
|
};
|
|
49
54
|
}(Math.log, Math.LN2);
|
|
50
55
|
}
|
|
51
|
-
if (typeof
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
56
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
57
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
58
|
+
position = position || 0;
|
|
59
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
60
|
+
}});
|
|
55
61
|
}
|
|
56
62
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
57
63
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -64,12 +70,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
64
70
|
return lastIndex !== -1 && lastIndex === position;
|
|
65
71
|
}});
|
|
66
72
|
}
|
|
67
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
68
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
69
|
-
position = position || 0;
|
|
70
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
71
|
-
}});
|
|
72
|
-
}
|
|
73
73
|
//endregion
|
|
74
74
|
(function (_) {
|
|
75
75
|
'use strict';
|
|
@@ -93,8 +93,8 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
93
93
|
initMetadataForInterface(Entry, 'Entry');
|
|
94
94
|
initMetadataForInterface(KtMap, 'Map');
|
|
95
95
|
initMetadataForInterface(MutableIterable, 'MutableIterable');
|
|
96
|
-
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList,
|
|
97
|
-
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet,
|
|
96
|
+
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
|
|
97
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
|
|
98
98
|
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
|
|
99
99
|
initMetadataForCompanion(Companion_0);
|
|
100
100
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
@@ -114,7 +114,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
114
114
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
115
115
|
initMetadataForObject(Unit, 'Unit');
|
|
116
116
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
117
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection,
|
|
117
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
|
|
118
118
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
119
119
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
120
120
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
|
|
@@ -127,7 +127,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
127
127
|
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
|
|
128
128
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
|
|
129
129
|
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
130
|
-
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [
|
|
130
|
+
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
|
|
131
131
|
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
|
|
132
132
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
133
133
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|