0.1.3 • Published 4 years ago

auto-clone v0.1.3

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

auto-clone

Clone repo and start the workflow.

Config

cat ~/.auto-clonerc

{
  "dir": "~/projects",
  "options": "--depth=1",
  "workflows": [
    {
      "test": "github",
      "after": [
        "git config user.name wmzy && git config user.email 1256573276@qq.com",
        "code .",
        "test -f package-lock.json && npm ci",
        "test -f yarn.lock && yarn install --frozen-lockfile"
      ]
    },
    {
      "test": "gitlab",
      "after": [
        "git config user.name [gitlab user name] && git config user.email [gitlab user email]",
        "code ."
      ]
    }
  ]
}

TODO

  • support js config
  • merge config items
  • after hooks error handler