Skip to content

create-template package to npm create @tomic/template #952

@joepio

Description

@joepio

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 #923 (comment)

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
  • Publish it to netlify (and add docs)
  • Publish it to cloudflar (and add docs)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions