mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
Move website files to /website/
This commit is contained in:
parent
430d8e6e17
commit
d9013a86c4
191 changed files with 9 additions and 9 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
**/release/
|
**/release/
|
||||||
/monaco-editor/typedoc/theme/
|
/monaco-editor/typedoc/theme/
|
||||||
/monaco-editor/typedoc/monaco.d.ts
|
/monaco-editor/typedoc/monaco.d.ts
|
||||||
/monaco-editor/website/lib/
|
|
||||||
/samples/browser-esm-parcel/.parcel-cache/
|
/samples/browser-esm-parcel/.parcel-cache/
|
||||||
/samples/browser-esm-parcel/dist/
|
/samples/browser-esm-parcel/dist/
|
||||||
/samples/browser-esm-vite-react/dist/**/*.js
|
/samples/browser-esm-vite-react/dist/**/*.js
|
||||||
|
|
@ -15,3 +14,4 @@
|
||||||
/src/typescript/lib/
|
/src/typescript/lib/
|
||||||
/test/manual/samples-all.generated.js
|
/test/manual/samples-all.generated.js
|
||||||
/test/manual/playground.generated/
|
/test/manual/playground.generated/
|
||||||
|
/website/lib/
|
||||||
|
|
|
||||||
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
|
|
@ -24,10 +24,10 @@
|
||||||
{
|
{
|
||||||
"type": "pwa-node",
|
"type": "pwa-node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "gulp website",
|
"name": "website",
|
||||||
"skipFiles": ["<node_internals>/**"],
|
"skipFiles": ["<node_internals>/**"],
|
||||||
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
|
"program": "${workspaceFolder}/build/website.js",
|
||||||
"args": ["website"],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}"
|
"cwd": "${workspaceFolder}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -368,7 +368,7 @@ function releaseDTS() {
|
||||||
|
|
||||||
writeFiles([monacodts, editorapidts], `release`);
|
writeFiles([monacodts, editorapidts], `release`);
|
||||||
|
|
||||||
fs.writeFileSync('monaco-editor/website/playground/monaco.d.ts.txt', contents);
|
fs.writeFileSync('website/playground/monaco.d.ts.txt', contents);
|
||||||
fs.writeFileSync('monaco-editor/typedoc/monaco.d.ts', contents);
|
fs.writeFileSync('monaco-editor/typedoc/monaco.d.ts', contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ const http = require('http');
|
||||||
const yaserver = require('yaserver');
|
const yaserver = require('yaserver');
|
||||||
const { REPO_ROOT } = require('./utils');
|
const { REPO_ROOT } = require('./utils');
|
||||||
|
|
||||||
const WEBSITE_GENERATED_PATH = path.join(REPO_ROOT, 'monaco-editor/website/playground/new-samples');
|
const WEBSITE_GENERATED_PATH = path.join(REPO_ROOT, 'website/playground/new-samples');
|
||||||
|
|
||||||
generateTestSamplesTask();
|
generateTestSamplesTask();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,14 +38,14 @@ generateWebsite();
|
||||||
*/
|
*/
|
||||||
function replaceWithRelativeResource(dataPath, contents, regex, callback) {
|
function replaceWithRelativeResource(dataPath, contents, regex, callback) {
|
||||||
return contents.replace(regex, function (_, m0) {
|
return contents.replace(regex, function (_, m0) {
|
||||||
const filePath = path.join(REPO_ROOT, 'monaco-editor/website', path.dirname(dataPath), m0);
|
const filePath = path.join(REPO_ROOT, 'website', path.dirname(dataPath), m0);
|
||||||
return callback(m0, fs.readFileSync(filePath));
|
return callback(m0, fs.readFileSync(filePath));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateWebsite() {
|
function generateWebsite() {
|
||||||
const files = readFiles('monaco-editor/website/**/*', {
|
const files = readFiles('website/**/*', {
|
||||||
base: 'monaco-editor/website',
|
base: 'website',
|
||||||
dot: true
|
dot: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 9 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue