0.0.19-beta • Published 2 years ago
@zanake/mdx v0.0.19-beta
@zanake/mdx
A utility to collect and parse the meta object export
from .mdx
files in a given directory for React projects.
Meta object export
This is what the parser will be expecting, to validate against Typescript types / interfaces
. In the future we can support custom fields, that fit individual cases.
export const meta = {
title: '',
published: true,
date: 'YYYY-MM-dd',
author: '',
thumbnail: {
src: '',
source: {
name: 'Free / paid image service',
url: 'https://....',
},
artist: {
name: 'John Doe',
profile: 'https://....',
},
},
labels: ['lorem', 'ipsum', 'dolor', 'sit', 'amet', ...],
excerpt:
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vehicula tristique nisl, vitae auctor mauris auctor in. Quisque a tincidunt nisl, eget auctor massa. Nullam lacus dui, mollis egestas mi eu, varius vehicula sapien',
};
Development
This library was generated with Nx, as part of a monorepo. Here are some commands to target this specific project in the repository.
Action | Command |
---|---|
Run unit tests | nx test mdx |
Compile & build | nx build mdx |
0.0.19-beta
2 years ago
0.0.18-beta
2 years ago
0.0.17-beta
2 years ago
0.0.16-beta
2 years ago
0.0.15-beta
2 years ago
0.0.14-beta
2 years ago
0.0.13-beta
2 years ago
0.0.12-beta
2 years ago
0.0.10-beta
2 years ago
0.0.9-beta
2 years ago
0.0.8-beta
2 years ago
0.0.7-beta
2 years ago
0.0.6-beta
2 years ago
0.0.5-beta
2 years ago
0.0.4
2 years ago