@databiosphere/findable-ui
v52.1.0
Published
- `src` contains TypeScript source files; `lib` will contain compiled JavaScript, which is what should be imported by the external application. - Import paths used by the external application need to specify the full path starting from the package name,
Readme
findable-ui
General info
srccontains TypeScript source files;libwill contain compiled JavaScript, which is what should be imported by the external application.- Import paths used by the external application need to specify the full path starting from the package name,
in the form
@databiosphere/findable-ui/lib/<path>, where<path>is the path of the file within thelibfolder.
Developing findable-ui alongside a consuming app
Use scripts/link.sh to build and install a local copy of findable-ui
into a consuming project (e.g. ncpi-dataset-catalog, data-browser):
Clone this repository into the same parent folder as the consuming app.
Set
nodeversion to22.12.0.Run
npm installin both repositories.From the consuming project directory:
../findable-ui/scripts/link.shThis compiles TypeScript, packs the output, installs it into
node_modules, clears the Next.js cache, and starts the dev server.To iterate: Ctrl+C the dev server, make changes in findable-ui, and hit up-arrow to re-run the script.
To restore the published version:
../findable-ui/scripts/unlink.sh
Consuming projects can optionally add thin wrappers in their package.json scripts:
{
"scripts": {
"link-findable": "../findable-ui/scripts/link.sh",
"unlink-findable": "../findable-ui/scripts/unlink.sh"
}
}