|
|
@ -6,7 +6,7 @@
|
|
|
|
//@ts-check
|
|
|
|
//@ts-check
|
|
|
|
|
|
|
|
|
|
|
|
const glob = require('glob');
|
|
|
|
const glob = require('glob');
|
|
|
|
const { copyFile, removeDir, tsc, dts, buildESM2, buildAMD2 } = require('../build/utils');
|
|
|
|
const { copyFile, removeDir, tsc, dts, buildESM, buildAMD } = require('../build/utils');
|
|
|
|
|
|
|
|
|
|
|
|
removeDir(`out`);
|
|
|
|
removeDir(`out`);
|
|
|
|
|
|
|
|
|
|
|
@ -35,23 +35,23 @@ dts(
|
|
|
|
|
|
|
|
|
|
|
|
//#region css
|
|
|
|
//#region css
|
|
|
|
|
|
|
|
|
|
|
|
buildESM2({
|
|
|
|
buildESM({
|
|
|
|
base: 'css',
|
|
|
|
base: 'css',
|
|
|
|
entryPoints: ['src/css/monaco.contribution.ts', 'src/css/cssMode.ts', 'src/css/css.worker.ts'],
|
|
|
|
entryPoints: ['src/css/monaco.contribution.ts', 'src/css/cssMode.ts', 'src/css/css.worker.ts'],
|
|
|
|
external: ['monaco-editor-core', '*/cssMode']
|
|
|
|
external: ['monaco-editor-core', '*/cssMode']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'css',
|
|
|
|
base: 'css',
|
|
|
|
entryPoint: 'src/css/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/css/monaco.contribution.ts',
|
|
|
|
amdModuleId: 'vs/language/css/monaco.contribution',
|
|
|
|
amdModuleId: 'vs/language/css/monaco.contribution',
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'css',
|
|
|
|
base: 'css',
|
|
|
|
entryPoint: 'src/css/cssMode.ts',
|
|
|
|
entryPoint: 'src/css/cssMode.ts',
|
|
|
|
amdModuleId: 'vs/language/css/cssMode'
|
|
|
|
amdModuleId: 'vs/language/css/cssMode'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'css',
|
|
|
|
base: 'css',
|
|
|
|
entryPoint: 'src/css/cssWorker.ts',
|
|
|
|
entryPoint: 'src/css/cssWorker.ts',
|
|
|
|
amdModuleId: 'vs/language/css/cssWorker'
|
|
|
|
amdModuleId: 'vs/language/css/cssWorker'
|
|
|
@ -61,7 +61,7 @@ buildAMD2({
|
|
|
|
|
|
|
|
|
|
|
|
//#region html
|
|
|
|
//#region html
|
|
|
|
|
|
|
|
|
|
|
|
buildESM2({
|
|
|
|
buildESM({
|
|
|
|
base: 'html',
|
|
|
|
base: 'html',
|
|
|
|
entryPoints: [
|
|
|
|
entryPoints: [
|
|
|
|
'src/html/monaco.contribution.ts',
|
|
|
|
'src/html/monaco.contribution.ts',
|
|
|
@ -70,18 +70,18 @@ buildESM2({
|
|
|
|
],
|
|
|
|
],
|
|
|
|
external: ['monaco-editor-core', '*/htmlMode']
|
|
|
|
external: ['monaco-editor-core', '*/htmlMode']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'html',
|
|
|
|
base: 'html',
|
|
|
|
entryPoint: 'src/html/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/html/monaco.contribution.ts',
|
|
|
|
amdModuleId: 'vs/language/html/monaco.contribution',
|
|
|
|
amdModuleId: 'vs/language/html/monaco.contribution',
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'html',
|
|
|
|
base: 'html',
|
|
|
|
entryPoint: 'src/html/htmlMode.ts',
|
|
|
|
entryPoint: 'src/html/htmlMode.ts',
|
|
|
|
amdModuleId: 'vs/language/html/htmlMode'
|
|
|
|
amdModuleId: 'vs/language/html/htmlMode'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'html',
|
|
|
|
base: 'html',
|
|
|
|
entryPoint: 'src/html/htmlWorker.ts',
|
|
|
|
entryPoint: 'src/html/htmlWorker.ts',
|
|
|
|
amdModuleId: 'vs/language/html/htmlWorker'
|
|
|
|
amdModuleId: 'vs/language/html/htmlWorker'
|
|
|
@ -91,7 +91,7 @@ buildAMD2({
|
|
|
|
|
|
|
|
|
|
|
|
//#region json
|
|
|
|
//#region json
|
|
|
|
|
|
|
|
|
|
|
|
buildESM2({
|
|
|
|
buildESM({
|
|
|
|
base: 'json',
|
|
|
|
base: 'json',
|
|
|
|
entryPoints: [
|
|
|
|
entryPoints: [
|
|
|
|
'src/json/monaco.contribution.ts',
|
|
|
|
'src/json/monaco.contribution.ts',
|
|
|
@ -100,18 +100,18 @@ buildESM2({
|
|
|
|
],
|
|
|
|
],
|
|
|
|
external: ['monaco-editor-core', '*/jsonMode']
|
|
|
|
external: ['monaco-editor-core', '*/jsonMode']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'json',
|
|
|
|
base: 'json',
|
|
|
|
entryPoint: 'src/json/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/json/monaco.contribution.ts',
|
|
|
|
amdModuleId: 'vs/language/json/monaco.contribution',
|
|
|
|
amdModuleId: 'vs/language/json/monaco.contribution',
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'json',
|
|
|
|
base: 'json',
|
|
|
|
entryPoint: 'src/json/jsonMode.ts',
|
|
|
|
entryPoint: 'src/json/jsonMode.ts',
|
|
|
|
amdModuleId: 'vs/language/json/jsonMode'
|
|
|
|
amdModuleId: 'vs/language/json/jsonMode'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'json',
|
|
|
|
base: 'json',
|
|
|
|
entryPoint: 'src/json/jsonWorker.ts',
|
|
|
|
entryPoint: 'src/json/jsonWorker.ts',
|
|
|
|
amdModuleId: 'vs/language/json/jsonWorker'
|
|
|
|
amdModuleId: 'vs/language/json/jsonWorker'
|
|
|
@ -126,7 +126,7 @@ copyFile(
|
|
|
|
`out/amd/typescript/lib/typescriptServices.js`
|
|
|
|
`out/amd/typescript/lib/typescriptServices.js`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
buildESM2({
|
|
|
|
buildESM({
|
|
|
|
base: 'typescript',
|
|
|
|
base: 'typescript',
|
|
|
|
entryPoints: [
|
|
|
|
entryPoints: [
|
|
|
|
'src/typescript/monaco.contribution.ts',
|
|
|
|
'src/typescript/monaco.contribution.ts',
|
|
|
@ -135,18 +135,18 @@ buildESM2({
|
|
|
|
],
|
|
|
|
],
|
|
|
|
external: ['monaco-editor-core', '*/tsMode']
|
|
|
|
external: ['monaco-editor-core', '*/tsMode']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'typescript',
|
|
|
|
base: 'typescript',
|
|
|
|
entryPoint: 'src/typescript/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/typescript/monaco.contribution.ts',
|
|
|
|
amdModuleId: 'vs/language/typescript/monaco.contribution',
|
|
|
|
amdModuleId: 'vs/language/typescript/monaco.contribution',
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'typescript',
|
|
|
|
base: 'typescript',
|
|
|
|
entryPoint: 'src/typescript/tsMode.ts',
|
|
|
|
entryPoint: 'src/typescript/tsMode.ts',
|
|
|
|
amdModuleId: 'vs/language/typescript/tsMode'
|
|
|
|
amdModuleId: 'vs/language/typescript/tsMode'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'typescript',
|
|
|
|
base: 'typescript',
|
|
|
|
entryPoint: 'src/typescript/tsWorker.ts',
|
|
|
|
entryPoint: 'src/typescript/tsWorker.ts',
|
|
|
|
amdModuleId: 'vs/language/typescript/tsWorker'
|
|
|
|
amdModuleId: 'vs/language/typescript/tsWorker'
|
|
|
@ -175,7 +175,7 @@ glob('../src/basic-languages/*/*.contribution.ts', { cwd: __dirname }, function
|
|
|
|
external.push(`*/${language}.contribution`);
|
|
|
|
external.push(`*/${language}.contribution`);
|
|
|
|
external.push(`*/${language}`);
|
|
|
|
external.push(`*/${language}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
buildESM2({
|
|
|
|
buildESM({
|
|
|
|
base: 'basic-languages',
|
|
|
|
base: 'basic-languages',
|
|
|
|
entryPoints,
|
|
|
|
entryPoints,
|
|
|
|
external
|
|
|
|
external
|
|
|
@ -184,14 +184,14 @@ glob('../src/basic-languages/*/*.contribution.ts', { cwd: __dirname }, function
|
|
|
|
|
|
|
|
|
|
|
|
// AMD
|
|
|
|
// AMD
|
|
|
|
{
|
|
|
|
{
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'basic-languages',
|
|
|
|
base: 'basic-languages',
|
|
|
|
entryPoint: 'src/basic-languages/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/basic-languages/monaco.contribution.ts',
|
|
|
|
amdModuleId: 'vs/basic-languages/monaco.contribution',
|
|
|
|
amdModuleId: 'vs/basic-languages/monaco.contribution',
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
amdDependencies: ['vs/editor/editor.api']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
for (const language of languages) {
|
|
|
|
for (const language of languages) {
|
|
|
|
buildAMD2({
|
|
|
|
buildAMD({
|
|
|
|
base: 'basic-languages',
|
|
|
|
base: 'basic-languages',
|
|
|
|
entryPoint: `src/basic-languages/${language}/${language}.ts`,
|
|
|
|
entryPoint: `src/basic-languages/${language}/${language}.ts`,
|
|
|
|
amdModuleId: `vs/basic-languages/${language}/${language}`
|
|
|
|
amdModuleId: `vs/basic-languages/${language}/${language}`
|
|
|
|