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
vvs-uikit: React components used to build the VVS UIvvs-eslint-config: An ESLint config for VVS, with Typescript and Prettier supportvvs-frontend: Main VVS web appvvs-info-api: express nodejs API implementation for VVS on-chain data queryvvs-prelaunch: prelaunch landing page with count down clockvvs-profile-sdk: Handy functions to retrieve data for VVS Profile systemvvs-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=vvs-uikit
lerna run build --scope=vvs-sdk
lerna run build --scope=vvs-info-api
lerna run start:dev --stream --scope=vvs-info-api
lerna run build --scope=vvs-frontend
lerna run start --stream --scope=vvs-frontend
lerna run build --scope={vvs-uikit,vvs-sdk} && lerna run start --stream --scope=vvs-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