From 771d246a96cd476fa9fddf600c532a28b2efd93a Mon Sep 17 00:00:00 2001 From: to-s Date: Mon, 19 Oct 2020 12:38:51 -0400 Subject: Substitute author and email by git config (#186) * Substitute author and email by git config * Upgraded version of typescript Due to https://github.com/cschlosser/doxdocgen/pull/186#discussion_r505813068 * Moved to CppDocGen.generateAuthorTag() Due to https://github.com/cschlosser/doxdocgen/pull/186#discussion_r505819542 * Update README.md Due to https://github.com/cschlosser/doxdocgen/pull/186#discussion_r505822908 * Update TestSetup.ts * Added tests * Changed return type to string Due to https://ci.appveyor.com/project/cschlosser/doxdocgen/builds/35818180#L566 Co-authored-by: Christoph Schlosser <2466365+cschlosser@users.noreply.github.com> --- package.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'package.json') diff --git a/package.json b/package.json index 8304c41..ceee719 100644 --- a/package.json +++ b/package.json @@ -225,6 +225,16 @@ "description": "Array of keywords that should be removed from the input prior to parsing.", "type": "array", "default": [] + }, + "doxdocgen.generic.useGitUserName": { + "description": "Substitute {author} with git config --get user.name.", + "type": "boolean", + "default": false + }, + "doxdocgen.generic.useGitUserEmail": { + "description": "Substitute {email} with git config --get user.email.", + "type": "boolean", + "default": false } } } @@ -253,6 +263,7 @@ "test": "npm run compile && node ./node_modules/vscode/bin/test" }, "dependencies": { + "simple-git": "^2.20.1", "env-var": "^4.1.0", "moment": "^2.20.1", "opn": "^5.2.0" @@ -267,7 +278,7 @@ "mocha": "^6.2.1", "remap-istanbul": "^0.13.0", "tslint": "^5.20.0", - "typescript": "^2.7.2", + "typescript": "^3.8.3", "vscode": "^1.1.36", "yargs-parser": ">=13.1.2" } -- cgit v1.2.3