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
Since Legion V2, we move out and retire the older package manager that uses Nexus and move in to Package & Registries built in from our private GitLab.
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=XXXXXXXXXXXXalways-auth=true//gitlab.playcourt.id/api/v4/projects/21411/packages/npm/:_authToken="XXXXXXXXXXXX"
Fill the XXXXXXXXXXXX
with given credentials you receive from the request process.
- 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