CLI design #112
earlAchromatic
started this conversation in
Ideas
CLI design
#112
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think the core cli can support a native Notion SSG. We can use eta template engine, a basic dev server, and build script under
ncms build
andncms serve/watch
options. This will let you use NotionCMS out of the box to build websites with total programmatic freedom and no framework required. Progressively enhance as desired. Since the SSG elements are so lightweight I feel that it makes sense to ship as part of this package as it adds a lot of value.Other features of the CLI:
push
functionality. This should be crafted with care because it could cause unintentional modifications to the source Notion pages. But it is powerful for migrations etc.new
- creates a config file filled out with your settings, hooks into a page and creates the notion database based on your input file (JSON) and any content you specify. This is ideal for quickly setting up a new project. You can add existing content, use a ncms plugin (migrate-ghost) to transform existing content to the ncms format or even local markdown files you want to be teleported to Notion.build
see above.serve/watch
see above.purge
to reset the cache.info
to read some meta data from the cache and print to terminal (this one's optional).Beta Was this translation helpful? Give feedback.
All reactions