|
|
@ -15,20 +15,24 @@ tsc(`src/tsconfig.json`);
|
|
|
|
|
|
|
|
|
|
|
|
//#region Type Defintion
|
|
|
|
//#region Type Defintion
|
|
|
|
|
|
|
|
|
|
|
|
dts(`out/amd/css/monaco.contribution.d.ts`, `out/release/css/monaco.d.ts`, 'monaco.languages.css');
|
|
|
|
|
|
|
|
dts(
|
|
|
|
dts(
|
|
|
|
`out/amd/html/monaco.contribution.d.ts`,
|
|
|
|
`out/amd/language/css/monaco.contribution.d.ts`,
|
|
|
|
`out/release/html/monaco.d.ts`,
|
|
|
|
`out/release/language/css/monaco.d.ts`,
|
|
|
|
|
|
|
|
'monaco.languages.css'
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
dts(
|
|
|
|
|
|
|
|
`out/amd/language/html/monaco.contribution.d.ts`,
|
|
|
|
|
|
|
|
`out/release/language/html/monaco.d.ts`,
|
|
|
|
'monaco.languages.html'
|
|
|
|
'monaco.languages.html'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
dts(
|
|
|
|
dts(
|
|
|
|
`out/amd/json/monaco.contribution.d.ts`,
|
|
|
|
`out/amd/language/json/monaco.contribution.d.ts`,
|
|
|
|
`out/release/json/monaco.d.ts`,
|
|
|
|
`out/release/language/json/monaco.d.ts`,
|
|
|
|
'monaco.languages.json'
|
|
|
|
'monaco.languages.json'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
dts(
|
|
|
|
dts(
|
|
|
|
`out/amd/typescript/monaco.contribution.d.ts`,
|
|
|
|
`out/amd/language/typescript/monaco.contribution.d.ts`,
|
|
|
|
`out/release/typescript/monaco.d.ts`,
|
|
|
|
`out/release/language/typescript/monaco.d.ts`,
|
|
|
|
'monaco.languages.typescript'
|
|
|
|
'monaco.languages.typescript'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
@ -37,24 +41,28 @@ dts(
|
|
|
|
//#region css
|
|
|
|
//#region css
|
|
|
|
|
|
|
|
|
|
|
|
buildESM({
|
|
|
|
buildESM({
|
|
|
|
base: 'css',
|
|
|
|
base: 'language/css',
|
|
|
|
entryPoints: ['src/css/monaco.contribution.ts', 'src/css/cssMode.ts', 'src/css/css.worker.ts'],
|
|
|
|
entryPoints: [
|
|
|
|
|
|
|
|
'src/language/css/monaco.contribution.ts',
|
|
|
|
|
|
|
|
'src/language/css/cssMode.ts',
|
|
|
|
|
|
|
|
'src/language/css/css.worker.ts'
|
|
|
|
|
|
|
|
],
|
|
|
|
external: ['monaco-editor-core', '*/cssMode']
|
|
|
|
external: ['monaco-editor-core', '*/cssMode']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'css',
|
|
|
|
base: 'language/css',
|
|
|
|
entryPoint: 'src/css/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/language/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']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'css',
|
|
|
|
base: 'language/css',
|
|
|
|
entryPoint: 'src/css/cssMode.ts',
|
|
|
|
entryPoint: 'src/language/css/cssMode.ts',
|
|
|
|
amdModuleId: 'vs/language/css/cssMode'
|
|
|
|
amdModuleId: 'vs/language/css/cssMode'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'css',
|
|
|
|
base: 'language/css',
|
|
|
|
entryPoint: 'src/css/cssWorker.ts',
|
|
|
|
entryPoint: 'src/language/css/cssWorker.ts',
|
|
|
|
amdModuleId: 'vs/language/css/cssWorker'
|
|
|
|
amdModuleId: 'vs/language/css/cssWorker'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -63,28 +71,28 @@ buildAMD({
|
|
|
|
//#region html
|
|
|
|
//#region html
|
|
|
|
|
|
|
|
|
|
|
|
buildESM({
|
|
|
|
buildESM({
|
|
|
|
base: 'html',
|
|
|
|
base: 'language/html',
|
|
|
|
entryPoints: [
|
|
|
|
entryPoints: [
|
|
|
|
'src/html/monaco.contribution.ts',
|
|
|
|
'src/language/html/monaco.contribution.ts',
|
|
|
|
'src/html/htmlMode.ts',
|
|
|
|
'src/language/html/htmlMode.ts',
|
|
|
|
'src/html/html.worker.ts'
|
|
|
|
'src/language/html/html.worker.ts'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
external: ['monaco-editor-core', '*/htmlMode']
|
|
|
|
external: ['monaco-editor-core', '*/htmlMode']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'html',
|
|
|
|
base: 'language/html',
|
|
|
|
entryPoint: 'src/html/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/language/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']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'html',
|
|
|
|
base: 'language/html',
|
|
|
|
entryPoint: 'src/html/htmlMode.ts',
|
|
|
|
entryPoint: 'src/language/html/htmlMode.ts',
|
|
|
|
amdModuleId: 'vs/language/html/htmlMode'
|
|
|
|
amdModuleId: 'vs/language/html/htmlMode'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'html',
|
|
|
|
base: 'language/html',
|
|
|
|
entryPoint: 'src/html/htmlWorker.ts',
|
|
|
|
entryPoint: 'src/language/html/htmlWorker.ts',
|
|
|
|
amdModuleId: 'vs/language/html/htmlWorker'
|
|
|
|
amdModuleId: 'vs/language/html/htmlWorker'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -93,28 +101,28 @@ buildAMD({
|
|
|
|
//#region json
|
|
|
|
//#region json
|
|
|
|
|
|
|
|
|
|
|
|
buildESM({
|
|
|
|
buildESM({
|
|
|
|
base: 'json',
|
|
|
|
base: 'language/json',
|
|
|
|
entryPoints: [
|
|
|
|
entryPoints: [
|
|
|
|
'src/json/monaco.contribution.ts',
|
|
|
|
'src/language/json/monaco.contribution.ts',
|
|
|
|
'src/json/jsonMode.ts',
|
|
|
|
'src/language/json/jsonMode.ts',
|
|
|
|
'src/json/json.worker.ts'
|
|
|
|
'src/language/json/json.worker.ts'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
external: ['monaco-editor-core', '*/jsonMode']
|
|
|
|
external: ['monaco-editor-core', '*/jsonMode']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'json',
|
|
|
|
base: 'language/json',
|
|
|
|
entryPoint: 'src/json/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/language/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']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'json',
|
|
|
|
base: 'language/json',
|
|
|
|
entryPoint: 'src/json/jsonMode.ts',
|
|
|
|
entryPoint: 'src/language/json/jsonMode.ts',
|
|
|
|
amdModuleId: 'vs/language/json/jsonMode'
|
|
|
|
amdModuleId: 'vs/language/json/jsonMode'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'json',
|
|
|
|
base: 'language/json',
|
|
|
|
entryPoint: 'src/json/jsonWorker.ts',
|
|
|
|
entryPoint: 'src/language/json/jsonWorker.ts',
|
|
|
|
amdModuleId: 'vs/language/json/jsonWorker'
|
|
|
|
amdModuleId: 'vs/language/json/jsonWorker'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -123,33 +131,33 @@ buildAMD({
|
|
|
|
//#region typescript
|
|
|
|
//#region typescript
|
|
|
|
|
|
|
|
|
|
|
|
copyFile(
|
|
|
|
copyFile(
|
|
|
|
`src/typescript/lib/typescriptServices-amd.js`,
|
|
|
|
`src/language/typescript/lib/typescriptServices-amd.js`,
|
|
|
|
`out/amd/typescript/lib/typescriptServices.js`
|
|
|
|
`out/amd/language/typescript/lib/typescriptServices.js`
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
buildESM({
|
|
|
|
buildESM({
|
|
|
|
base: 'typescript',
|
|
|
|
base: 'language/typescript',
|
|
|
|
entryPoints: [
|
|
|
|
entryPoints: [
|
|
|
|
'src/typescript/monaco.contribution.ts',
|
|
|
|
'src/language/typescript/monaco.contribution.ts',
|
|
|
|
'src/typescript/tsMode.ts',
|
|
|
|
'src/language/typescript/tsMode.ts',
|
|
|
|
'src/typescript/ts.worker.ts'
|
|
|
|
'src/language/typescript/ts.worker.ts'
|
|
|
|
],
|
|
|
|
],
|
|
|
|
external: ['monaco-editor-core', '*/tsMode']
|
|
|
|
external: ['monaco-editor-core', '*/tsMode']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'typescript',
|
|
|
|
base: 'language/typescript',
|
|
|
|
entryPoint: 'src/typescript/monaco.contribution.ts',
|
|
|
|
entryPoint: 'src/language/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']
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'typescript',
|
|
|
|
base: 'language/typescript',
|
|
|
|
entryPoint: 'src/typescript/tsMode.ts',
|
|
|
|
entryPoint: 'src/language/typescript/tsMode.ts',
|
|
|
|
amdModuleId: 'vs/language/typescript/tsMode'
|
|
|
|
amdModuleId: 'vs/language/typescript/tsMode'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
buildAMD({
|
|
|
|
buildAMD({
|
|
|
|
base: 'typescript',
|
|
|
|
base: 'language/typescript',
|
|
|
|
entryPoint: 'src/typescript/tsWorker.ts',
|
|
|
|
entryPoint: 'src/language/typescript/tsWorker.ts',
|
|
|
|
amdModuleId: 'vs/language/typescript/tsWorker'
|
|
|
|
amdModuleId: 'vs/language/typescript/tsWorker'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|