This commit is contained in:
syuilo 2017-01-14 01:28:11 +09:00
parent 03d2dd5703
commit fd66f5f7e1

View File

@ -70,6 +70,7 @@ gulp.task('build:ts', () =>
.pipe(gulp.dest('./built/'))
);
gulp.task('build:about:docs', () => {
function getLicenseHtml(path: string): string {
return escapeHtml(fs.readFileSync(path, 'utf-8'))
.replace(/\r\n/g, '\n')
@ -87,7 +88,6 @@ function getLicenseSectionHtml(path: string): string {
}
}
gulp.task('build:about:docs', () => {
const licenses = glob.sync('./node_modules/**/LICENSE*');
const licenseHtml = getLicenseHtml('./LICENSE');
const thirdpartyLicensesHtml = licenses.map(license => getLicenseSectionHtml(license)).join('');