Prep for 0.8.0

This commit is contained in:
Alex Dima 2017-01-18 18:29:26 +01:00
parent daadc5b223
commit 3c875c4ac9
6 changed files with 1274 additions and 1116 deletions

View file

@ -178,14 +178,6 @@ function addPluginDTS() {
// Ensure consistent indentation and line endings
contents = cleanFile(contents);
// Mark events in doc!!
contents = contents.replace(/( \*\/\n\s+)on(.*IDisposable)/gm, function(_, m0, m1) {
var m = m0.match(/( +)$/);
var indentation = m[1];
return ' * @event\n' + indentation + ' */\n' + indentation + 'on' + m1;
});
data.contents = new Buffer(contents);
fs.writeFileSync('website/playground/monaco.d.ts.txt', contents);
@ -226,14 +218,14 @@ function addPluginThirdPartyNotices() {
var extraContent = [];
metadata.METADATA.PLUGINS.forEach(function(plugin) {
var thirdPartyNoticePath = path.join(path.dirname(plugin.paths.npm), 'ThirdPartyNotices.txt');
try {
var thirdPartyNoticeContent = fs.readFileSync(thirdPartyNoticePath).toString();
thirdPartyNoticeContent = thirdPartyNoticeContent.split('\n').slice(8).join('\n');
extraContent.push(thirdPartyNoticeContent);
} catch (err) {
if (!plugin.thirdPartyNotices) {
return;
}
console.log('ADDING ThirdPartyNotices from ' + plugin.thirdPartyNotices);
var thirdPartyNoticeContent = fs.readFileSync(plugin.thirdPartyNotices).toString();
thirdPartyNoticeContent = thirdPartyNoticeContent.split('\n').slice(8).join('\n');
extraContent.push(thirdPartyNoticeContent);
});
contents += '\n' + extraContent.join('\n');