mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Do not check in generated samples file
This commit is contained in:
parent
91c9c0cec3
commit
bbaa2d846d
4 changed files with 2 additions and 342 deletions
|
|
@ -10,7 +10,6 @@
|
||||||
/samples/browser-esm-webpack-typescript/dist/*.js
|
/samples/browser-esm-webpack-typescript/dist/*.js
|
||||||
/samples/browser-esm-webpack-typescript-react/dist/*.js
|
/samples/browser-esm-webpack-typescript-react/dist/*.js
|
||||||
/src/typescript/lib/
|
/src/typescript/lib/
|
||||||
/test/manual/samples-all.generated.js
|
|
||||||
/test/manual/generated/
|
/test/manual/generated/
|
||||||
/website/lib/
|
/website/lib/
|
||||||
/website/typedoc/monaco.d.ts
|
/website/typedoc/monaco.d.ts
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ function generateTestSamplesTask() {
|
||||||
'//This is a generated file via `npm run simpleserver`\ndefine([], function() { return';
|
'//This is a generated file via `npm run simpleserver`\ndefine([], function() { return';
|
||||||
const suffix = '; });';
|
const suffix = '; });';
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
path.join(REPO_ROOT, 'test/manual/samples-all.generated.js'),
|
path.join(REPO_ROOT, 'test/manual/generated/all-samples.js'),
|
||||||
prefix + JSON.stringify(samples, null, '\t') + suffix
|
prefix + JSON.stringify(samples, null, '\t') + suffix
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
/// <reference path="../../node_modules/monaco-editor-core/monaco.d.ts" />
|
/// <reference path="../../node_modules/monaco-editor-core/monaco.d.ts" />
|
||||||
|
|
||||||
define(['./samples-all.generated'], function (ALL_SAMPLES) {
|
define(['./generated/all-samples'], function (ALL_SAMPLES) {
|
||||||
var XHR_SAMPLES = {};
|
var XHR_SAMPLES = {};
|
||||||
ALL_SAMPLES.forEach(function (sample) {
|
ALL_SAMPLES.forEach(function (sample) {
|
||||||
XHR_SAMPLES[sample.name] = sample.content;
|
XHR_SAMPLES[sample.name] = sample.content;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue