0.7.6 • Published 9 months ago

@mgct/cli v0.7.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

MGCT - MaGiC Tool

Codacy Badge

Magic that will help you with managing repositories.

Set of tools that helps to roll out and maintain GIT repositories of your project or company extremely fast.

Clone all projects from GIT to local

Create file config.json

[
  {
    "project": "React",
    "repo": "git@github.com:facebook/react.git",
    "path": "lib/react"
  }
]

Then run command in the folder where you have config.json

npx mgct create

Result: Projects that is listed in config.json will be cloned from GIT into folder ./projects

Update all projects from GIT to local

To update all projects with latest change - navigate to folder where config.json located:

npx mgct update

Show list of commits

npx mgct commits

Advanced

You can customize the location for projects:

npx mgct create --src=repos

Result: Projects that is listed in config.json will be cloned from GIT into specific folder ./repos

You can customize the config file for projects and source for projects to be cloned:

npx mgct create --src=repos --config=list.json

Copy/Paste for checking after deployment

# Step 1 - (Remove previous files)
rm -rf ~/Desktop/projects
rm -rf ~/Desktop/config.json
cd ~/Desktop
# Step 2 - (Generate Config)
echo "[{\"project\": \"Bootstrap\", \"repo\": \"git@github.com:twbs/bootstrap.git\", \"path\": \"bootstrap\"}]" > ./config.json
# Step 3 - (Optionally for cleaning npx cache)
npx clear-npx-cache
npx mgct create
# Step 4 - (Pull GIT projects)
npx mgct update
# Step 5 - (See commits list)
npx mgct commits
0.7.6

9 months ago

0.7.5

9 months ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago