nanka iroiro
This commit is contained in:
parent
6927ffa979
commit
5ad77e8a3a
10 changed files with 155 additions and 93 deletions
12
src/version.ts
Normal file
12
src/version.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import prominence = require('prominence');
|
||||
import git = require('git-last-commit');
|
||||
|
||||
const getVersion = new Promise<string>(async resolve => {
|
||||
const commit = await prominence(git).getLastCommit();
|
||||
|
||||
const version = commit.shortHash;
|
||||
|
||||
resolve(version);
|
||||
});
|
||||
|
||||
export default getVersion;
|
||||
Loading…
Add table
Add a link
Reference in a new issue