I'm looking for info on how to create a project on GitHub that can be duplicated and installed for another client.
In the same way as the prismic Multi-language starter project.
I'm looking for info on how to create a project on GitHub that can be duplicated and installed for another client.
In the same way as the prismic Multi-language starter project.
Hey @micha,
It's cool that you're working on creating start projects!
A starter project is basically a normal functioning project. I think it should work fine if you create a Prismic project and delete the slicemachine.config.json
file. Then use degit
to download the project files and run npx @slicemachine/init
to create a repostiory, configure Slice Machine, and push your models.
The one difference is that you won't be able to include documents. The official Prismic starters include special documents that have been generated for that purpose, but that is not a publicly-available feature. If you want to include documents, I would recommend checking out the Migration API. It should be possible to create your own documents
folder and write a script to push the contents of that folder to the repository after you initialize it.
Let me know if you have any other questions, or if you run into any obstacles!
Sam
Hi @samlittlefair, is there a possibility that the feature for generating these special starter documents will be publicly-available at some point?
Hi John,
Creating projects through our CLI like the example projects will never be made publicly available because of the manual work it entails on our side. We are in fact deprecating it on our side.
But fortunately you can create a script with the migration API which will do the same thing. Your JSON documents live in the project and are sent to the new repo with the API. You can learn more about the Migration API helper packages with these docs and videos:
Thanks.