1.0.0 • Published 6 years ago

sissi-moves v1.0.0

Weekly downloads
3
License
GPL-3.0-or-later
Repository
github
Last release
6 years ago

sissi-moves – content migration for sissi

Hi, it’s me again. sissi, your *simple static sites* generator.

If you want to turn your simple React app into a static site with a built-in CMS look no further! Or actually, do: the sissi repo is where you'll find all you need. See you there!

If you're a sissi fan and want to contribute – welcome! I'm glad you're here. I have to apologise, though. Please bear with me. I have but two parents and they are working hard on their sissi-to-do-lists. Contribution guidelines and thorough documentation of all packages are somewhere in there. Somewhere... For now, this will have to do:

What sissi-moves can do

sissi moves is responsible for keeping the content.json up to date – every time the CMS is started or visited. This means:

  • creating a new content.json when there is none
  • calculating (and then storing) a hash from the structure.json and comparing it with the stored one to detect changes
  • migrating the existing content.json if the structure.json has been changed
  • creating a content.json.backup to make sure no data is lost in the process

During migration the minimum amount of pages and sections is created while invalid pages, sections and fields are removed.