Skip to main content
Give us your valuable feedback

It will help us understand how we can serve you better

Give feedback

Development

Installation

Guide for installing Legion to your development

banner-Installation

Prequisites

Already have at least these below:

  • Nodejs v16 or above, if you are using multiple versions of node, we recommend using nvm to manage its version
  • Node Package Manager v8 or above
  • Yarn v1.22.19 or above

Installation

Proxy and Authentication

In this version of Legion, we move out and plan to retire the older system that uses Nexus and move in to Package & Registries built in from GitLab Playcourt.

Other changes occurred is having it scoped now, rather than doing an infrastructure level installation.

  1. Create .npmrc file to your project.

  2. Follow the step here in order to create your authorization token needed in the .npmrc, otherwise, you can skip this step and continue to step number 3.

  3. Write down following script regarding package authorization:

@legion-ui:registry=https://gitlab.playcourt.id/api/v4/projects/21411/packages/npm/
always-auth=true
//gitlab.playcourt.id/api/v4/projects/21411/packages/npm/:_authToken="XXXXXXXXXXXX"
  1. After that with either one of your package manager.
# npm
npm install @emotion/react @emotion/styled @legion-ui/core @legion-ui/dates
# yarn
yarn add @emotion/react @emotion/styled @legion-ui/core @legion-ui/dates