Lisk-sdk: Difficulty in testing lisk-core with local versions of lisk-sdk and lisk-framework

Created on 16 May 2019  路  2Comments  路  Source: LiskHQ/lisk-sdk

Expected behavior

Developers should be able to develop and test on lisk-core by linking to the local repo of lisk-sdk and lisk-framework.

Actual behavior

npm link only works for lisk-sdk but lisk-framework points again to the npm version.

Steps to reproduce

N/A

Which version(s) does this affect? (Environment, OS, etc...)

2.0.0

docs framework

Most helpful comment

For testing everything locally,

1) At root of lisk-sdk repo, run npx lerna link
2) At root of lisk-core repo, run npm link lisk-sdk

Notes:
1) If you have made changes in elements lib then make sure you run npm run build to see the changes
2) To clean up, install and build from scratch, npm run clean:node_modules && rm -rf ./node_modules && npm ci && npm run bootstrap -- --ci && npm run build

All 2 comments

For testing everything locally,

1) At root of lisk-sdk repo, run npx lerna link
2) At root of lisk-core repo, run npm link lisk-sdk

Notes:
1) If you have made changes in elements lib then make sure you run npm run build to see the changes
2) To clean up, install and build from scratch, npm run clean:node_modules && rm -rf ./node_modules && npm ci && npm run bootstrap -- --ci && npm run build

@MaciejBaj @ishantiw Can we add this steps and general starting step such as (npm ci, npm run bootstrap, npm run build) to the readme?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ScrewchMcMuffin picture ScrewchMcMuffin  路  3Comments

willclarktech picture willclarktech  路  4Comments

slaweet picture slaweet  路  3Comments

MaciejBaj picture MaciejBaj  路  3Comments

Isabello picture Isabello  路  4Comments