0.0.7 • Published 6 years ago
inject-git-repo v0.0.7
inject-git-repo
A tool that injects a repo to ./src/core folder or to another prespecified folder
Usage
- 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;
Done
- Add submodule
- Add branch
- update functionality
TODO
- Remove submodule functionality