This repository is a monorepo manage with yarn workspaces and Lerna.
Forked from https://github.com/pancakeswap/pancake-toolkit
Imported https://github.com/pancakeswap/pancake-frontend
Imported https://github.com/pancakeswap/pancake-swap-sdk
Imported https://github.com/pancakeswap/pancake-info-api
uranus-uikit
: React components used to build the VVS UIuranus-eslint-config
: An ESLint config for VVS, with Typescript and Prettier supporturanus-frontend
: Main VVS web appuranus-info-api
: express nodejs API implementation for VVS on-chain data queryuranus-prelaunch
: prelaunch landing page with count down clockuranus-profile-sdk
: Handy functions to retrieve data for VVS Profile systemuranus-swap-sdk
: Handy functions to retrieve data for VVS contractstoken-lists
: Main VVS token list and tools to validate it
npm install --global lerna
lerna bootstrap
lerna run build --scope=uranus-uikit
lerna run build --scope=uranus-swap-sdk
lerna run build --scope=uranus-info-api
lerna run start:dev --stream --scope=uranus-info-api
lerna run build --scope=uranus-frontend
lerna run start --stream --scope=uranus-frontend
lerna run build --scope={uranus-uikit,uranus-swap-sdk} && lerna run start --stream --scope=uranus-frontend
lerna run test
lerna run lint
lerna run format:check
lerna import ~/pancake-frontend --flatten
lerna import ~/pancake-swap-sdk --flatten
lerna import ~/pancake-info-api --flatten
--flatten
is important and commit history may lost without it
change name
in <child>/package.json
after imported
lerna add vvs-uikit --scope=vvs-frontend
lerna add vvs-sdk --scope=vvs-frontend
lerna clean -y
rm -rf node_modules
rm yarn.lock
Change package version in <root>/package.json
https://medium.com/mitterio/multirepo-to-lerna-js-monorepo-80f6657cb443