Package Exports
- ember-cli-markdown-to-json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ember-cli-markdown-to-json) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ember-cli-markdown-to-json
An addon that wraps broccoli-static-site-json, to generate json files from markdown.
Installation
ember install ember-cli-markdown-to-json
Usage
// ember-cli-build.js
'ember-cli-markdown-to-json': [
{
attributes: [
'categories',
'date',
'slug',
'title'
],
collections: [{
src: 'blog/posts',
output: 'posts.json'
}],
contentFolder: 'post',
contentTypes: ['description', 'html'],
folder: 'blog/posts',
references: ['author'],
type: 'post'
},
{
attributes: [
'name',
'image',
'coverImage',
'coverMeta',
'bio',
'website',
'twitter',
'facebook',
'location'
],
contentFolder: 'author',
collections: [{
src: 'blog/authors',
output: 'authors.json'
}],
folder: 'blog/authors',
type: 'author'
}
]
License
This project is licensed under the MIT License.