Move website files to `/website/`
parent
430d8e6e17
commit
d9013a86c4
|
@ -3,7 +3,6 @@
|
|||
**/release/
|
||||
/monaco-editor/typedoc/theme/
|
||||
/monaco-editor/typedoc/monaco.d.ts
|
||||
/monaco-editor/website/lib/
|
||||
/samples/browser-esm-parcel/.parcel-cache/
|
||||
/samples/browser-esm-parcel/dist/
|
||||
/samples/browser-esm-vite-react/dist/**/*.js
|
||||
|
@ -15,3 +14,4 @@
|
|||
/src/typescript/lib/
|
||||
/test/manual/samples-all.generated.js
|
||||
/test/manual/playground.generated/
|
||||
/website/lib/
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
{
|
||||
"type": "pwa-node",
|
||||
"request": "launch",
|
||||
"name": "gulp website",
|
||||
"name": "website",
|
||||
"skipFiles": ["<node_internals>/**"],
|
||||
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
|
||||
"args": ["website"],
|
||||
"program": "${workspaceFolder}/build/website.js",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
|
|
|
@ -368,7 +368,7 @@ function releaseDTS() {
|
|||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ const http = require('http');
|
|||
const yaserver = require('yaserver');
|
||||
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();
|
||||
|
||||
|
|
|
@ -38,14 +38,14 @@ generateWebsite();
|
|||
*/
|
||||
function replaceWithRelativeResource(dataPath, contents, regex, callback) {
|
||||
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));
|
||||
});
|
||||
}
|
||||
|
||||
function generateWebsite() {
|
||||
const files = readFiles('monaco-editor/website/**/*', {
|
||||
base: 'monaco-editor/website',
|
||||
const files = readFiles('website/**/*', {
|
||||
base: 'website',
|
||||
dot: true
|
||||
});
|
||||
|
||||
|
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 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…
Reference in New Issue