Merge pull request #19169 from spicypixel-forks/spicypixel/git-rev

Add git-rev package
This commit is contained in:
Daniel Rosenwasser
2017-08-22 10:14:32 -07:00
committed by GitHub
4 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import * as gitRev from "git-rev";
gitRev.short((result) => {});
gitRev.long((result) => {});
gitRev.branch((result) => {});
gitRev.tag((result) => {});
gitRev.log((result) => {});

10
types/git-rev/index.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
// Type definitions for git-rev 0.2
// Project: https://github.com/tblobaum/git-rev
// Definitions by: Spicy Pixel <http://spicypixel.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function short(callback: (short: string) => void): void;
export function long(callback: (long: string) => void): void;
export function branch(callback: (branch: string) => void): void;
export function tag(callback: (tag: string) => void): void;
export function log(callback: (log: string[][]) => void): void;

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"git-rev-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }