mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 10:35:22 +08:00
Merge pull request #24307 from ffflorian/generate-changelog
Add generate-changelog
This commit is contained in:
8
types/generate-changelog/generate-changelog-tests.ts
Normal file
8
types/generate-changelog/generate-changelog-tests.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import * as changelog from 'generate-changelog';
|
||||
|
||||
changelog.generate({
|
||||
exclude: ['chore'],
|
||||
minor: true,
|
||||
repoUrl: 'https://github.com/lob/generate-changelog',
|
||||
tag: 'v1.6.0...v1.7.0'
|
||||
}).then(changelog => changelog.trim());
|
||||
21
types/generate-changelog/index.d.ts
vendored
Normal file
21
types/generate-changelog/index.d.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// Type definitions for generate-changelog 1.7
|
||||
// Project: https://github.com/lob/generate-changelog#readme
|
||||
// Definitions by: Florian Keller <https://github.com/ffflorian>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export interface Options {
|
||||
/** exclude listed commit types (e.g. `['chore', 'style', 'refactor']`) */
|
||||
exclude?: string[];
|
||||
/** whether it should be a patch changelog */
|
||||
patch?: boolean;
|
||||
/** whether it should be a minor changelog */
|
||||
minor?: boolean;
|
||||
/** whether it should be a major changelog */
|
||||
major?: boolean;
|
||||
/** repo URL that will be used when linking commits */
|
||||
repoUrl?: string;
|
||||
/** generate from specific tag or range (e.g. `v1.2.3` or `v1.2.3..v1.2.4`)' */
|
||||
tag?: string;
|
||||
}
|
||||
|
||||
export function generate(options: Options): Promise<string>;
|
||||
23
types/generate-changelog/tsconfig.json
Normal file
23
types/generate-changelog/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"generate-changelog-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/generate-changelog/tslint.json
Normal file
1
types/generate-changelog/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user