A tool that injects a repo to ./src/core folder or to another prespecified folder
- Install 'npm install --save-dev inject-git-repo`
- Create .env (if it does not exist)
- Add
INJECT_REPO=...
- replace...
with your repo; - Add
INJECT_REPO_BRANCH=...
- replace...
with your prefered repo branch; - Add
INJECT_REPO_BRANCH_OVERWRITE=...
- replace...
with 'y' or 'n';
- This helps you automatically answer the overwrite question on repo or branch change;
- On your package.json at the "scripts" part add
"prestart": "inject-git-repo"
and"prebuild": "inject-git-repo"
; - You are ready to go every time you build or start your project it will clone or pull from the INJECT_REPO;
- Add submodule
- Add branch
- update functionality
- Remove submodule functionality