forked from FoundKeyGang/FoundKey
Remove needless type annotations
This commit is contained in:
parent
f0e7a3f976
commit
ac2e820e7e
1 changed files with 2 additions and 2 deletions
|
@ -71,14 +71,14 @@ gulp.task('build:ts', () =>
|
||||||
);
|
);
|
||||||
|
|
||||||
gulp.task('build:about:docs', () => {
|
gulp.task('build:about:docs', () => {
|
||||||
function getLicenseHtml(path: string): string {
|
function getLicenseHtml(path: string) {
|
||||||
return escapeHtml(fs.readFileSync(path, 'utf-8'))
|
return escapeHtml(fs.readFileSync(path, 'utf-8'))
|
||||||
.replace(/\r\n/g, '\n')
|
.replace(/\r\n/g, '\n')
|
||||||
.replace(/(.)\n(.)/g, '$1 $2')
|
.replace(/(.)\n(.)/g, '$1 $2')
|
||||||
.replace(/(^|\n)(.*?)($|\n)/g, '<p>$2</p>');
|
.replace(/(^|\n)(.*?)($|\n)/g, '<p>$2</p>');
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLicenseSectionHtml(path: string): string {
|
function getLicenseSectionHtml(path: string) {
|
||||||
try {
|
try {
|
||||||
const pkg = JSON.parse(fs.readFileSync(Path.parse(path).dir + '/package.json', 'utf-8'));
|
const pkg = JSON.parse(fs.readFileSync(Path.parse(path).dir + '/package.json', 'utf-8'));
|
||||||
const licenseHtml = getLicenseHtml(path);
|
const licenseHtml = getLicenseHtml(path);
|
||||||
|
|
Loading…
Reference in a new issue