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

55
ci/webpack.config.js Normal file
View file

@ -0,0 +1,55 @@
const path = require('path');
module.exports = {
mode: 'production',
entry: {
"core": './ci/core.js',
"editor.worker": './vscode/out-monaco-editor-core/esm/vs/editor/editor.worker.js',
"json.worker": 'monaco-json/release/esm/json.worker',
"css.worker": 'monaco-css/release/esm/css.worker',
"html.worker": 'monaco-html/release/esm/html.worker',
"ts.worker": 'monaco-typescript/release/esm/ts.worker',
},
output: {
globalObject: 'self',
filename: '[name].bundle.js',
path: path.resolve(__dirname, '../dist')
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /\.(woff(2)?|ttf|eot|svg)(\?v=\d+\.\d+\.\d+)?$/,
use: [
{
loader: 'file-loader',
options: {
name: '[name].[ext]',
outputPath: 'fonts/'
}
}
]
}
]
},
resolve: {
alias: {
'monaco-editor-core/esm/vs/editor/editor.worker': path.resolve(__dirname, '../vscode/out-monaco-editor-core/esm/vs/editor/editor.worker.js'),
'monaco-editor-core': path.resolve(__dirname, '../vscode/out-monaco-editor-core/esm/vs/editor/editor.main.js'),
}
},
stats: {
all: false,
modules: true,
maxModules: 0,
errors: true,
warnings: true,
// our additional options
moduleTrace: true,
errorDetails: true,
chunks: true
}
};