sissi-moves v1.0.0
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.jsonwhen there is none
- calculating (and then storing) a hash from the structure.jsonand comparing it with the stored one to detect changes
- migrating the existing content.jsonif thestructure.jsonhas been changed
- creating a content.json.backupto 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.