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
To be able to use Legion, you must be authenticated first through the .npmrc
to access the private registry of the package.
But in order to be authenticated you have to gain the access from the Legion UI Support, by filling the following This link request, if your request is granted you will be given an authentication token and registry to pull the package from immediately.
After you gained it, follow steps below:
Add
.npmrc
file to your project, make sure to not push it to your repo or add it to your.gitignore
:Fill the
.npmrc
file with following lines:
registry=??_auth=??always-auth=true
Replace the ??
placeholder with the gained credentials you get from the email.
- Now you should be ready to go to use Legion!
Install or Add Dependency
To install and save it in your package.json
dependencies, please run following command using npm:
npm install legion-ui
Or if you use yarn, don’t worry we got your needs covered too!
yarn add legion-ui
Adding the themes
With our intention to simplify, make both designer and developer product development seamless, some tribes have their team already provided, following are the currently available tribes for installation.
Tribe Name | Npm Command | Yarn Command |
---|---|---|
Agree | npm install @legion-theme/agree | yarn add @legion-theme/agree |
Logee | npm install @legion-theme/logee | yarn add @legion-theme/logee |
EDU | npm install @legion-theme/edu | yarn add @legion-theme/edu |
ENT | npm install @legion-theme/ent | yarn add @legion-theme/ent |
EWZ | npm install @legion-theme/ewz | yarn add @legion-theme/ewz |
FIN | npm install @legion-theme/fin | yarn add @legion-theme/fin |
SMB | npm install @legion-theme/smb | yarn add @legion-theme/smb |
VPL | npm install @legion-theme/vpl | yarn add @legion-theme/vpl |
And with that, you’re set and ready to configure it in our next article!
Do you have feedback?
Please let us know to make it better