Lace depends on @input-output-hk/lace-ui-toolkit
package, which is published from lace-ui-toolkit repository to Github Package Registry. In order to install dependencies from GitHub Package Registry, Personal Access Token needs to be provided.
Important
It is required to generate Personal Access Token (PAT) to be able to authorize to Github Package Registry prior to installing projects dependencies. For more details follow this link: Working with the npm registry.
- Go to Profile/Settings/Developer Settings/Personal access tokens/Tokens (classic) to generate a new PAT
- Select at least
read:packages
permissions to be able to download packages from GitHub Package Registry - Create
~/.yarnrc.yml
file in your home directory and insert:
npmScopes:
input-output-hk:
npmAlwaysAuth: true
npmAuthToken: YOUR_GITHUB_PAT
npmRegistryServer: 'https://npm.pkg.github.com'
For more details check GitHub's guide: Authenticating with personal access token
yarn install
cp ./apps/.env.defaults ./apps/.env
Once .env
files is created adjust it to your needs, and update LACE_EXTENSION_KEY
yarn build
- Go to
chrome://extensions/
oredge://extensions/
in selected web browser - Enable Developer mode
- Click Load unpacked and point out
dist
folder fromapps/browser-extension-wallet
which is built in previous step - Extension should be visible in Extensions and ready to use.
yarn [app] [command]
Available [app]
options:
browser
(./apps/browser-extension-wallet)staking
(./packages/staking)
Available [command]
options:
build
build-deps
- build only dependencies of a given appwatch
- build and watchwatch-deps
- build and watch only dependencies of a given app
You can mix them together.
Examples:
yarn browser watch
runs thewatch
command for all dependent workspaces of the browser-extension-wallet package and for the browser-extension-wallet app itself.yarn staking build-deps
builds all dependent workspaces of the staking package except the staking package itself.
In this workspace UI Toolkit is used in 4 places:
- apps/browser-extension-wallet
- packages/core
- packages/shared-wallets
- packages/staking
Based on the specific use case we can link it on:
- app level, check Working with UI Toolkit on an app level
- package level, check: Working with UI Toolkit on a package level
Linking UI Toolkit on app level, allows you to see all changes in app and packages using it.
Linking UI Toolkit on package level, allows you to develop components in isolation using for example Storybook.
Lace has been independently audited and manually verified by external auditor, FYEO, so the Lace team can improve code quality and security – giving you greater peace of mind. You can view the full report at lace.io/lace-audit-report