@ckeditor/ckeditor5-dev-manual-server 61.2.0 → 62.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +27 -4
- package/package.json +1 -1
- package/theme/catalog.css +2 -1
package/dist/index.js
CHANGED
|
@@ -182,9 +182,22 @@ function manualTestsPlugin(options) {
|
|
|
182
182
|
const translationsModuleCode = options.language ? createManualTranslationsModule(options.paths, options.language) : null;
|
|
183
183
|
return {
|
|
184
184
|
name: "ckeditor5-manual-tests",
|
|
185
|
-
config(config = {}) {
|
|
185
|
+
config(config = {}, { command }) {
|
|
186
186
|
workspaceRoot = resolve(config.root || process.cwd());
|
|
187
|
-
return {
|
|
187
|
+
return {
|
|
188
|
+
input: getManualBuildInputs(),
|
|
189
|
+
build: command == "build" ? { rolldownOptions: {
|
|
190
|
+
preserveEntrySignatures: false,
|
|
191
|
+
output: {
|
|
192
|
+
strictExecutionOrder: true,
|
|
193
|
+
codeSplitting: { groups: [{
|
|
194
|
+
name: "manual-shared",
|
|
195
|
+
minShareCount: 100,
|
|
196
|
+
includeDependenciesRecursively: false
|
|
197
|
+
}] }
|
|
198
|
+
}
|
|
199
|
+
} } : void 0
|
|
200
|
+
};
|
|
188
201
|
},
|
|
189
202
|
configResolved(config) {
|
|
190
203
|
workspaceRoot = config.root;
|
|
@@ -234,7 +247,14 @@ function manualTestsPlugin(options) {
|
|
|
234
247
|
if (isManualCatalogHtmlFile(context.filename, getManualCatalogBuildInputFilePath())) return html.replace("./catalog.ts", getManualCatalogScriptPublicPath());
|
|
235
248
|
const entry = getManualPageEntryForFile(context.filename);
|
|
236
249
|
if (!entry) return;
|
|
237
|
-
const tags = [
|
|
250
|
+
const tags = [{
|
|
251
|
+
tag: "link",
|
|
252
|
+
attrs: {
|
|
253
|
+
rel: "icon",
|
|
254
|
+
href: "data:image/png;base64,iVBORw0KGgo="
|
|
255
|
+
},
|
|
256
|
+
injectTo: "head-prepend"
|
|
257
|
+
}, createModuleScriptTag(getManualBootstrapScriptPublicPath(), "head-prepend")];
|
|
238
258
|
if (html.includes(`<${MANUAL_HEADER_ELEMENT}`)) tags.push(...createManualHeaderTags(entry, getManualHeaderScriptPublicPath(), toBaseCatalogPath(base, entry.htmlFilePath)));
|
|
239
259
|
return {
|
|
240
260
|
html,
|
|
@@ -395,7 +415,10 @@ function ckDebugPlugin() {
|
|
|
395
415
|
if (!debugFlags.has(flagName)) return match;
|
|
396
416
|
return `${indentation}/* @if ${flagName} */${body}`;
|
|
397
417
|
});
|
|
398
|
-
return transformedCode === code ? null :
|
|
418
|
+
return transformedCode === code ? null : {
|
|
419
|
+
code: transformedCode,
|
|
420
|
+
map: null
|
|
421
|
+
};
|
|
399
422
|
}
|
|
400
423
|
}
|
|
401
424
|
};
|
package/package.json
CHANGED