Development
Installation
Guide for installing Legion to your development
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.
Create
.npmrc
file to your project.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.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"
- After that with either one of your package manager.
# npmnpm install @emotion/react @emotion/styled @legion-ui/core @legion-ui/dates# yarnyarn add @emotion/react @emotion/styled @legion-ui/core @legion-ui/dates