@@ -42,6 +42,7 @@ Daedalus - Cryptocurrency Wallet
4242 trusted-substituters =
4343 trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
4444 extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib
45+ experimental-features = nix-command flakes
4546
4647 # If you are running on a Mac with M1 chip please uncomment 'system' setting to enforce running on Rosetta2
4748 # system = x86_64-darwin
@@ -207,6 +208,26 @@ You can debug the main process by following one of these approaches:
207208
208209The inspector runs on port 9229
209210
211+ ### Linking with UI Libraries (e.g. React Polymorph)
212+
213+ You can link libraries with Daedalus using one of the following steps:
214+
215+ #### 1) Using ` yalc `
216+
217+ 1 ) Install ` yalc ` globally using ` yarn global add yalc ` .
218+ 2 ) Run ` yalc publish ` from the library's root directory that you want to link with Daedalus.
219+ 3 ) Switch to Daedalus and run ` yalc add <package-name> ` or preferably ` yalc link <package-name> ` .
220+ 4 ) You should be able to start Daedalus and see the changes you are making locally in the library.
221+ 5 ) To make sure your changes are reflected as you update code in the library, use ` yalc push ` .
222+
223+ #### 2) Using ` yarn link `
224+
225+ 1 ) From the Daedalus root directory, go to ` node_modules/react ` and ` yarn link ` .
226+ 2 ) Navigate to the ` react-dom ` package in the same directory and run ` yarn link ` again.
227+ 3 ) Go to the library's root directory and run ` yarn link ` , ` yarn link react ` and ` yarn link react-dom ` .
228+ 4 ) Go back to the Daedalus root directory and run ` yarn link <package-name> ` .
229+ 5 ) Finally, run ` yarn build:watch ` from the library's root directory.
230+
210231## Testing
211232
212233You can find more details regarding tests setup within
0 commit comments