Add the github-linguist package
This commit only adds a single package and all of its transitive dependencies. The github-linguist package will be used for counting lines of code as a baseline for databases we are analyzing.
This commit is contained in:
parent
896b4ff181
commit
c4a84a93d4
152 changed files with 17057 additions and 24 deletions
28
node_modules/github-linguist/dist/directory.d.ts
generated
vendored
Normal file
28
node_modules/github-linguist/dist/directory.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { LineInfo } from './file';
|
||||
export interface LocDirOptions {
|
||||
cwd?: string;
|
||||
include?: string[] | string;
|
||||
exclude?: string[] | string;
|
||||
}
|
||||
export interface LocResult {
|
||||
files: string[];
|
||||
info: LineInfo;
|
||||
languages: {
|
||||
[key: string]: LineInfo & {
|
||||
sum: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Collect the info of a directory.
|
||||
*/
|
||||
export declare class LocDir {
|
||||
private cwd;
|
||||
private include;
|
||||
private exclude;
|
||||
constructor(options: LocDirOptions);
|
||||
/**
|
||||
* Calculate directory info.
|
||||
*/
|
||||
loadInfo(): Promise<LocResult>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue