mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Prep for 0.8.0
This commit is contained in:
parent
daadc5b223
commit
3c875c4ac9
6 changed files with 1274 additions and 1116 deletions
20
gulpfile.js
20
gulpfile.js
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue