mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
Move html sources into /src/
This commit is contained in:
parent
d2a70a52f5
commit
a8df4018f1
23 changed files with 80 additions and 304 deletions
|
|
@ -11,10 +11,11 @@ removeDir(`out`);
|
|||
|
||||
tsc(`src/tsconfig.json`);
|
||||
|
||||
dts(`out/amd/css/monaco.contribution.d.ts`, `out/release/css/monaco.d.ts`, 'monaco.languages.css');
|
||||
dts(
|
||||
`out/amd/css/monaco.contribution.d.ts`,
|
||||
`out/release/css/monaco.d.ts`,
|
||||
'monaco.languages.css'
|
||||
`out/amd/html/monaco.contribution.d.ts`,
|
||||
`out/release/html/monaco.d.ts`,
|
||||
'monaco.languages.html'
|
||||
);
|
||||
|
||||
buildESM2({
|
||||
|
|
@ -38,3 +39,29 @@ buildAMD2({
|
|||
entryPoint: 'src/css/cssWorker.ts',
|
||||
amdModuleId: 'vs/language/css/cssWorker'
|
||||
});
|
||||
|
||||
buildESM2({
|
||||
base: 'html',
|
||||
entryPoints: [
|
||||
'src/html/monaco.contribution.ts',
|
||||
'src/html/htmlMode.ts',
|
||||
'src/html/html.worker.ts'
|
||||
],
|
||||
external: ['monaco-editor-core', '*/htmlMode']
|
||||
});
|
||||
buildAMD2({
|
||||
base: 'html',
|
||||
entryPoint: 'src/html/monaco.contribution.ts',
|
||||
amdModuleId: 'vs/language/html/monaco.contribution',
|
||||
amdDependencies: ['vs/editor/editor.api']
|
||||
});
|
||||
buildAMD2({
|
||||
base: 'html',
|
||||
entryPoint: 'src/html/htmlMode.ts',
|
||||
amdModuleId: 'vs/language/html/htmlMode'
|
||||
});
|
||||
buildAMD2({
|
||||
base: 'html',
|
||||
entryPoint: 'src/html/htmlWorker.ts',
|
||||
amdModuleId: 'vs/language/html/htmlWorker'
|
||||
});
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ exports.build = build;
|
|||
*/
|
||||
function buildESM(options) {
|
||||
build({
|
||||
entryPoints: options.entryPoints.map(e => (`${options.base}/${e}`)),
|
||||
entryPoints: options.entryPoints.map((e) => `${options.base}/${e}`),
|
||||
bundle: true,
|
||||
target: 'esnext',
|
||||
format: 'esm',
|
||||
|
|
@ -260,7 +260,9 @@ function buildOneAMD(type, options) {
|
|||
},
|
||||
globalName: 'moduleExports',
|
||||
banner: {
|
||||
js: `${bundledFileHeader}define("${options.amdModuleId}",[${(options.amdDependencies || []).map(dep => (`"${dep}"`)).join(',')}],()=>{`
|
||||
js: `${bundledFileHeader}define("${options.amdModuleId}",[${(options.amdDependencies || [])
|
||||
.map((dep) => `"${dep}"`)
|
||||
.join(',')}],()=>{`
|
||||
},
|
||||
footer: {
|
||||
js: 'return moduleExports;\n});'
|
||||
|
|
@ -315,7 +317,9 @@ function buildOneAMD2(type, options) {
|
|||
},
|
||||
globalName: 'moduleExports',
|
||||
banner: {
|
||||
js: `${bundledFileHeader}define("${options.amdModuleId}",[${(options.amdDependencies || []).map(dep => (`"${dep}"`)).join(',')}],()=>{`
|
||||
js: `${bundledFileHeader}define("${options.amdModuleId}",[${(options.amdDependencies || [])
|
||||
.map((dep) => `"${dep}"`)
|
||||
.join(',')}],()=>{`
|
||||
},
|
||||
footer: {
|
||||
js: 'return moduleExports;\n});'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue