CI testing for editor distro, webpack bundling and smoke test (#1675)

Bundle/Test with latest VS Code.
This commit is contained in:
Peng Lyu 2019-11-18 11:50:42 -08:00 committed by GitHub
parent 68d9e00fbe
commit 3d0dae8fe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 3237 additions and 1 deletions

25
ci/core.js Normal file
View file

@ -0,0 +1,25 @@
import * as monaco from 'monaco-editor-core';
self.MonacoEnvironment = {
getWorkerUrl: function (moduleId, label) {
return './editor.worker.bundle.js';
}
}
window.instance = monaco.editor.create(document.getElementById('container'), {
value: [
'from banana import *',
'',
'class Monkey:',
' # Bananas the monkey can eat.',
' capacity = 10',
' def eat(self, N):',
' \'\'\'Make the monkey eat N bananas!\'\'\'',
' capacity = capacity - N*banana.size',
'',
' def feeding_frenzy(self):',
' eat(9.25)',
' return "Yum yum"',
].join('\n'),
language: 'python'
});