Skip to content
andreigiura edited this page Jan 5, 2023 · 9 revisions

Create npm link:

  1. Clone dapp-core in the same folder as your project (my-dapp)

  2. In dapp-core run: npm link ../my-dapp/node_modules/react ../my-dapp/node_modules/axios

  3. In dapp-core run: npm run build and npm run start

  4. In my-dapp run: npm link ../dapp-core/dist

  5. In my-dapp run: npm run start

YALC alternative:

Prerequisite: npm i -g yalc

  1. Clone dapp-core repository

  2. In dapp-core run: yarn install

  3. In dapp-core run: yarn build and yarn start and cd dist

  4. In my-dapp (your project) run: yalc link @elrondnetwork/dapp-core

  5. After every change in dapp core run (while in 'dist' folder): yalc publish --push

To remove yalc dependecies from you project, in my-dapp run: yalc remove --all

Clone this wiki locally