Skip to content

Commit

Permalink
Merge pull request #4 from diramazioni/minimal_svelte_ctx
Browse files Browse the repository at this point in the history
add preset for svelte and sveltekit migration guide
  • Loading branch information
khromov authored Dec 10, 2024
2 parents b871875 + 9c336a4 commit d63d8af
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/lib/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,31 @@ export const combinedPresets: Record<string, PresetConfig> = {
removeHtmlComments: true,
normalizeWhitespace: true
}
}
},
'svelte-migration': {
title: 'Svelte + SvelteKit migration guide',
description:
'Only Svelte + SvelteKit docs for migrating ',
owner: 'sveltejs',
repo: 'svelte.dev',
glob: [
// Svelte
'**/apps/svelte.dev/content/docs/svelte/07-misc/07-v5-migration-guide.md',
// SvelteKit
'**/apps/svelte.dev/content/docs/kit/60-appendix/30-migrating-to-sveltekit-2.md'
],
ignore: [
],
prompt: SVELTE_5_PROMPT,
minimize: {
removeLegacy: true,
removePlaygroundLinks: true,
removeNoteBlocks: true,
removeDetailsBlocks: true,
removeHtmlComments: true,
normalizeWhitespace: true
}
},
}

export const sveltePresets: Record<string, PresetConfig> = {
Expand Down

0 comments on commit d63d8af

Please sign in to comment.