Skip to content
Snippets Groups Projects

mth-select-taxonomy

pipeline status npm package

A tree selector to pick a taxonomy from the NCBI database.

Events

Name Description Type of $event
select triggered when the user clicks on a taxon { id: string, name: string, parentId: string}

Use example

This web component requires Vuetify.

<template>
  <MthSelectTaxonomy @select="console.log($event)" />
</template>

<script setup lang="ts">
import { MthSelectTaxonomy } from "@metabohub/mth-select-taxonomy"; //import component
import "@metabohub/mth-select-taxonomy/dist/style.css"; // import style
</script>

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Run Unit Tests with Vitest

npm run test:unit

Check the coverage of the unit tests :

npm run coverage

Lint with ESLint

npm run lint

View documentation

npm run storybook

CICD pipeline

Deploy

.publish:
  stage: deploy
  before_script:
    - apt-get update && apt-get install -y git default-jre
    - npm install
    - npm run build

This builds the component as an npm package.