0.5.3 • Published 2 years ago

@uigstudio/gitlab-env v0.5.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Gitlab env

Install

npm install @uig/gitlab-env --save-dev

or

yarn add -D @uig/gitlab-env

Usage

Save gitlab Personal Access Token to ~/.glconfig to use it in all projects. 1. Create PATH - https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html - Needed scope: api, read_api, read_repository 2. Save token gitlab api url in ~/.glconfig file

{
  "token" : "<TOKEN>",
  "url" : "<GITLAB_INSTANCE_URL>"
}
  1. Edit package.json > postinstall script:
{
    "scripts": {
        "postinstall": "gitlab-env -i <ID>"
    }
}
  1. Run it once
yarn postinstall

Available props

NameTypeDefaultDescription
-i, --idstring or numberREQUIREDGitlab project id
-e, --envstringlocalEnviroment
-o, --outputstring.env.localOutout file
-c, --glConfigstring~/.glconfigFile with gitlab auth token
-t, --tokenstringundefinedGitlab auth token
-b, --blockliststringundefinedComa separated blocked keys
-m, --modeenum(replace, append)replaceSave mode
-u, --urlstringhttps://gitlab.comGitlab instance url
0.5.3

2 years ago

0.5.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago