atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

`create-template` package to `npm create @tomic/template`

Open joepio opened this issue 1 year ago • 1 comments

We could make a create-template package that allows users to do things like npm create @tomic/template Since these are just executable scripts we can do things like generate a users ontologies and have some options like what framework to use.

Originally posted by @Polleps in https://github.com/atomicdata-dev/atomic-server/issues/923#issuecomment-2304394809

Goals

  • Make it easier for devs to start a website using @tomic/lib and @tomic/svelte
  • Dogfeed our APIs so we make them as easy as possible for our main usecase (Headless CMS)
  • Test libs in a project in the CI (instead of just relying on unit tests)

TODO

  • [ ] Template (sveltekit?) project, should be minimal
    • [ ] Render Articles
    • [ ] Render a Collection (using some custom view)
    • [ ] Search bar
    • [ ] Readme that mentions the CLI and links to docs where needed
  • [ ] Template ontology (article, menu item)
  • [ ] cli action that copies a folder
  • [ ] link to an ontology to create types
  • [ ] e2e tests (should use pnpm link)
  • [ ] Publish new NPM package

joepio avatar Aug 23 '24 07:08 joepio