web - we can use git subtree.
Basically, we will create a subtree at apps/web and create a new remote branch for the subtree. When we create a new application, we will pull the subtree into the new application. This allows us to keep it in sync with the apps/web folder and use it as the initialization code for the new app
To add a new app to your ShipThing project, you need to follow these steps:
Create a subtree
First, we need to create a subtree for theapps/web folder. We will create a branch named web-branch and create a subtree for the apps/web folder.
Create a new app
Now, we can create a new application in the apps folder. Let’s say we want to create a new appai-chat at apps/ai-chat with the same structure as the apps/web folder (which acts as the template for all new apps).
apps/ai-chat folder with the contents of the apps/web folder.
Update the app
Pull the latest updates from the ShipThing repository
The command below will update all the changes from the ShipThing repository:Push the web-branch updates
After you have pulled the updates from the ShipThing repository, you can split the branch again and push the updates to theweb-branch:
web-branch: