mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 12:57:47 +00:00
* Revert "[frameworks] Fix import in test (#3570)" This reverts commit9ee86df69d. * Revert "[frameworks] Rename frameworks to now-frameworks (#3569)" This reverts commitdaa5cbdd4b.
26 lines
603 B
TypeScript
26 lines
603 B
TypeScript
import Frameworks, { Framework } from '../../../packages/frameworks';
|
|
|
|
interface Example {
|
|
example: string;
|
|
path: string;
|
|
demo: string;
|
|
description: string;
|
|
tagline: string;
|
|
framework: string;
|
|
}
|
|
|
|
export async function getExampleList(): Promise<Example[]> {
|
|
return (Frameworks as Framework[])
|
|
.filter(f => f.demo)
|
|
.map(framework => {
|
|
return {
|
|
example: framework.name,
|
|
path: `/${framework.slug}`,
|
|
demo: framework.demo,
|
|
description: framework.description,
|
|
tagline: framework.tagline,
|
|
framework: framework.slug,
|
|
};
|
|
});
|
|
}
|