Skip to content

Commit 4edaf27

Browse files
authored
Merge pull request #2948 from input-output-hk/chore/ddw-1069-update-readme-to-include-linking-steps
2 parents 3dd9e2f + 7b897b6 commit 4edaf27

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ Debug
124124
/cardano-cli
125125
/cardano-wallet
126126
.vscode
127+
.yalc
128+
yalc.lock
127129

128130
# Typescript
129131
*.scss.d.ts

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
### Chores
1414

15+
- Added steps on how to link with `react-polymorph` and other external UI libraries ([PR 2948](https://github.com/input-output-hk/daedalus/pull/2948))
1516
- Published selfnode installers for all 3 platforms ([PR 2971](https://github.com/input-output-hk/daedalus/pull/2971))
1617

1718
## 4.10.0
@@ -99,12 +100,12 @@
99100

100101
### Fixes
101102

102-
- Improved error handling for incorrect passphrase and incorrect hardware wallet error ([PR 2860](https://github.com/input-output-hk/daedalus/pull/2860))
103+
- Improved error handling for incorrect passphrase and incorrect hardware wallet error ([PR 2860](https://github.com/input-output-hk/daedalus/pull/2860))
103104
- Fixed rewards CSV export issues ([PR 2885](https://github.com/input-output-hk/daedalus/pull/2885))
104105
- Fixed behaviour of wallet settings option of the app menu ([PR 2838](https://github.com/input-output-hk/daedalus/pull/2838))
105106
- Fixed styling of ITN rewards feature ([PR 2861](https://github.com/input-output-hk/daedalus/pull/2861))
106107
- Fixed available disk space takes a long time to show ([PR 2849](https://github.com/input-output-hk/daedalus/pull/2849))
107-
108+
108109
### Chores
109110

110111
- Migrated codebase from javascript to typescript ([PR 2843](https://github.com/input-output-hk/daedalus/pull/2843))

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,26 @@ You can debug the main process by following one of these approaches:
207207

208208
The inspector runs on port 9229
209209

210+
### Linking with UI Libraries (e.g. React Polymorph)
211+
212+
You can link libraries with Daedalus using one of the following steps:
213+
214+
#### 1) Using `yalc`
215+
216+
1) Install `yalc` globally using `yarn global add yalc`.
217+
2) Run `yalc publish` from the library's root directory that you want to link with Daedalus.
218+
3) Switch to Daedalus and run `yalc add <package-name>` or preferably `yalc link <package-name>`.
219+
4) You should be able to start Daedalus and see the changes you are making locally in the library.
220+
5) To make sure your changes are reflected as you update code in the library, use `yalc push`.
221+
222+
#### 2) Using `yarn link`
223+
224+
1) From the Daedalus root directory, go to `node_modules/react` and `yarn link`.
225+
2) Navigate to the `react-dom` package in the same directory and run `yarn link` again.
226+
3) Go to the library's root directory and run `yarn link`, `yarn link react` and `yarn link react-dom`.
227+
4) Go back to the Daedalus root directory and run `yarn link <package-name>`.
228+
5) Finally, run `yarn build:watch` from the library's root directory.
229+
210230
## Testing
211231

212232
You can find more details regarding tests setup within

0 commit comments

Comments
 (0)