Add support for content collections injection #8
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
question
Further information is requested
Currently, if a theme uses a Content Collection, the theme user has to either clone a template with the Content Collection or manually set it up inside their own project. It would be nice if themes had the ability to automatically inject Content Collections into a project. This could be accomplished using a library like
ts-morph
to read thecontent/config.ts
file and inject a schema into thecollections
objectGoals:
Things to consider:
recast
for codegen, should this be done usingts-morph
orrecast
?Working prototype using
ts-morph
: https://github.com/BryceRussell/prototype-inject-collectionThe text was updated successfully, but these errors were encountered: