Do not check in generated samples file

pull/2779/head
Alex Dima 3 years ago
parent 91c9c0cec3
commit bbaa2d846d
No known key found for this signature in database
GPG Key ID: 39563C1504FDD0C9

@ -10,7 +10,6 @@
/samples/browser-esm-webpack-typescript/dist/*.js
/samples/browser-esm-webpack-typescript-react/dist/*.js
/src/typescript/lib/
/test/manual/samples-all.generated.js
/test/manual/generated/
/website/lib/
/website/typedoc/monaco.d.ts

@ -51,7 +51,7 @@ function generateTestSamplesTask() {
'//This is a generated file via `npm run simpleserver`\ndefine([], function() { return';
const suffix = '; });';
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
);

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" />
define(['./samples-all.generated'], function (ALL_SAMPLES) {
define(['./generated/all-samples'], function (ALL_SAMPLES) {
var XHR_SAMPLES = {};
ALL_SAMPLES.forEach(function (sample) {
XHR_SAMPLES[sample.name] = sample.content;

Loading…
Cancel
Save