gitlab-env-generator

0.1.7 • Public • Published

GitLab env generator

A package that allows you to generate configuration files from gitlab variables

Installation

npm i -g gitlab-env-generator

Setting

add to package.json

  ...
  "scripts": {
    "env": "gitlab-env-generator --dir=PATH_TO_ENV_DIR --file=ENV_FILE_NAME --token=GITLAB_TOKEN --projectName=PROJECT_NAME_IN_GITLAB --url=URL_TO_GITLAB"
  }
  ...

or creates a .env file with content

dir=PATH_TO_ENV_DIR
file=ENV_FILE_NAME
token=GITLAB_TOKEN
url=https://gitlab.ACCOUNT_NAME.com/api/v4/
projectName=PROJECT_NAME_IN_GITLAB

and add to package.json

  ...
  "scripts": {
    "env": "gitlab-env-generator --env=.env"
  }
  ...

Readme

Keywords

none

Package Sidebar

Install

npm i gitlab-env-generator

Weekly Downloads

1

Version

0.1.7

License

MIT

Unpacked Size

7.2 kB

Total Files

6

Last publish

Collaborators

  • v.a.stekolschikov