Closed piotrfonte closed 4 years ago
This is what we are reading from and writing to:
https://github.com/storycopter/storycopter/tree/next/packages/idoc/src/site — global settings for the idoc https://github.com/storycopter/storycopter/tree/next/packages/idoc/src/essentials — related mainly to Home/Credits pages https://github.com/storycopter/storycopter/tree/next/packages/idoc/src/chapters — all the user generated pages, we need to be able to create similar jsons when creating new pages…
So we need to be able to scan through these folders https://github.com/storycopter/storycopter/issues/44#issuecomment-581469245, load all these jsons, construct a state object that looks like this: https://github.com/storycopter/storycopter/blob/feature/51-document-inspector/packages/app/src/reducers/data.js#L24-L32 and save changes to disk before each preview and export
Please check
packages/idoc/src/chapters
andpackages/idoc/src/essentials
for naming conventions and folder structure.When opening a project folder we need:
Also… we don’t need to be running any Gatsby tasks till Preview or Export being triggered from the app.