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.
read:packages
permissions to be able to download packages from GitHub Package Registry~/.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
chrome://extensions/
or edge://extensions/
in selected web browserdist
folder from apps/browser-extension-wallet
which is built in previous stepyarn [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 appYou can mix them together.
Examples:
yarn browser watch
runs the watch
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:
Based on the specific use case we can link it on:
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