mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Fixes typedoc & updates pipelines to test website (#5102)
* Fixes typedoc & updates pipelines to test website * Fixes typedoc * Fixes samples
This commit is contained in:
parent
422d19e3d6
commit
36efbe07d9
6 changed files with 27 additions and 17 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
|
@ -83,14 +83,18 @@ jobs:
|
||||||
- name: Run smoke test
|
- name: Run smoke test
|
||||||
run: npm run smoketest
|
run: npm run smoketest
|
||||||
|
|
||||||
# - name: Install website node modules
|
- name: Install website node modules
|
||||||
# working-directory: website
|
working-directory: website
|
||||||
# run: yarn install --frozen-lockfile
|
run: npm ci
|
||||||
|
|
||||||
# - name: Build website
|
- name: Install most recent version of monaco-editor
|
||||||
# working-directory: website
|
working-directory: website
|
||||||
# run: yarn run build
|
run: npm install monaco-editor
|
||||||
|
|
||||||
# - name: Test website
|
- name: Build website
|
||||||
# working-directory: website
|
working-directory: website
|
||||||
# run: yarn test
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Test website
|
||||||
|
working-directory: website
|
||||||
|
run: npm run test
|
||||||
|
|
|
||||||
4
.github/workflows/website.yml
vendored
4
.github/workflows/website.yml
vendored
|
|
@ -52,6 +52,10 @@ jobs:
|
||||||
working-directory: website
|
working-directory: website
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
|
- name: Test website
|
||||||
|
working-directory: website
|
||||||
|
run: npm run test
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@
|
||||||
// to the system and how the compiler is told to use ES6 (target=2).
|
// to the system and how the compiler is told to use ES6 (target=2).
|
||||||
|
|
||||||
// validation settings
|
// validation settings
|
||||||
monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
|
monaco.typescript.javascriptDefaults.setDiagnosticsOptions({
|
||||||
noSemanticValidation: true,
|
noSemanticValidation: true,
|
||||||
noSyntaxValidation: false,
|
noSyntaxValidation: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
// compiler options
|
// compiler options
|
||||||
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
|
monaco.typescript.javascriptDefaults.setCompilerOptions({
|
||||||
target: monaco.languages.typescript.ScriptTarget.ES2015,
|
target: monaco.typescript.ScriptTarget.ES2015,
|
||||||
allowNonTsExtensions: true,
|
allowNonTsExtensions: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -25,7 +25,7 @@ var libSource = [
|
||||||
"}",
|
"}",
|
||||||
].join("\n");
|
].join("\n");
|
||||||
var libUri = "ts:filename/facts.d.ts";
|
var libUri = "ts:filename/facts.d.ts";
|
||||||
monaco.languages.typescript.javascriptDefaults.addExtraLib(libSource, libUri);
|
monaco.typescript.javascriptDefaults.addExtraLib(libSource, libUri);
|
||||||
// When resolving definitions and references, the editor will try to use created models.
|
// When resolving definitions and references, the editor will try to use created models.
|
||||||
// Creating a model for the library allows "peek definition/references" commands to work with the library.
|
// Creating a model for the library allows "peek definition/references" commands to work with the library.
|
||||||
monaco.editor.createModel(libSource, "typescript", monaco.Uri.parse(libUri));
|
monaco.editor.createModel(libSource, "typescript", monaco.Uri.parse(libUri));
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ var modelUri = monaco.Uri.parse("a://b/foo.json"); // a made up unique URI for o
|
||||||
var model = monaco.editor.createModel(jsonCode, "json", modelUri);
|
var model = monaco.editor.createModel(jsonCode, "json", modelUri);
|
||||||
|
|
||||||
// configure the JSON language support with schemas and schema associations
|
// configure the JSON language support with schemas and schema associations
|
||||||
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
monaco.json.jsonDefaults.setDiagnosticsOptions({
|
||||||
validate: true,
|
validate: true,
|
||||||
schemas: [
|
schemas: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "CommonJS",
|
"module": "CommonJS",
|
||||||
"skipLibCheck": true
|
"skipLibCheck": true,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"strict": true
|
||||||
},
|
},
|
||||||
"include": ["../../out/monaco-editor/esm/vs/editor/editor.api.d.ts"],
|
"include": ["../../out/monaco-editor/esm/vs/editor/editor.main.d.ts"],
|
||||||
"exclude": ["theme"]
|
"exclude": ["theme"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://typedoc.org/schema.json",
|
"$schema": "https://typedoc.org/schema.json",
|
||||||
"entryPoints": ["../../out/monaco-editor/esm/vs/editor/editor.api.d.ts"],
|
"entryPoints": ["../../out/monaco-editor/esm/vs/editor/editor.main.d.ts"],
|
||||||
|
|
||||||
"out": "dist",
|
"out": "dist",
|
||||||
"theme": "default",
|
"theme": "default",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue