Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/seven-roses-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@svelte-add/config': patch
---

chore: move `mdsvex` to a different category
3 changes: 1 addition & 2 deletions packages/config/adders/official.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export const adderCategories: AdderCategories = {
testing: ['vitest', 'playwright'],
css: ['tailwindcss', 'bulma', 'bootstrap'],
db: ['drizzle'],
markdown: ['mdsvex'],
tools: ['storybook', 'routify'],
additionalFunctionality: ['storybook', 'mdsvex', 'routify'],
};

export const adderIds = Object.values(adderCategories).flatMap((x) => x);
15 changes: 5 additions & 10 deletions packages/config/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export type CategoryInfo = {
description: string;
};

export type CategoryKeys = 'codeQuality' | 'css' | 'db' | 'markdown' | 'tools' | 'testing';
export type CategoryKeys = 'codeQuality' | 'css' | 'db' | 'testing' | 'additionalFunctionality';
export type CategoryDetails = Record<CategoryKeys, CategoryInfo>;

export type AdderCategories = Record<CategoryKeys, string[]>;
Expand All @@ -25,19 +25,14 @@ export const categories: CategoryDetails = {
name: 'CSS',
description: 'Can be used to style your components',
},
tools: {
id: 'tools',
name: 'Tools',
description: 'Different tools',
additionalFunctionality: {
id: 'additionalFunctionality',
name: 'Additional functionality',
description: '',
},
db: {
id: 'db',
name: 'Database',
description: '',
},
markdown: {
id: 'markdown',
name: 'Markdown',
description: '',
},
};