-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.versionrc.js
More file actions
37 lines (32 loc) · 841 Bytes
/
Copy path.versionrc.js
File metadata and controls
37 lines (32 loc) · 841 Bytes
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
const re = /Version: (\d\.\d\.\d)/;
function readVersion(contents) {
const matches = contents.match(re);
return matches[1];
}
function writeVersion(contents, version) {
return contents.replace(re, `Version: ${version}`);
}
const updater = { readVersion, writeVersion };
const trackers = [
{
filename: "modaled.el",
updater
}
];
module.exports = {
types: [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "chore", "section": "Misc"},
{"type": "docs", "section": "Misc"},
{"type": "style", "section": "Misc"},
{"type": "refactor", "section": "Misc"},
{"type": "perf", "section": "Misc"},
{"type": "test", "section": "Misc"},
{"type": "ci", "section": "Misc"}
],
// read version
packageFiles: trackers,
// write version
bumpFiles: trackers
};