ebi-vue-components-test
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

ebi-vue-components

Vue3 Components Library consisting of generic vue components used across EMBL-EBI

Installation

npm install ebi-vue-components

Add following configuration to nuxt.config.ts

app: {
        head: {
            script: [
                { src: 'https://ebi.emblstatic.net/web_guidelines/EBI-Framework/v1.4/js/script.js' }
            ],
            link: [
                { rel: 'stylesheet', href: 'https://assets.emblstatic.net/vf/v2.5.9/css/styles.css' },
                { rel: 'stylesheet', href: 'https://assets.emblstatic.net/vf/v2.4.12/assets/ebi-header-footer/ebi-header-footer.css' },
            ],
        }
    }

Create a nuxt plugin file ebi-components.public.ts in plugins directory, and add the following

import index from "ebi-vue-components";

export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.vueApp.use( index );
});

All set! Now directly use components created in this library in your code without adding any import.

Contribution

In order to contribute to this package, create your component in components directory and explicitly export it components/index.ts

Add the component in App.vue to test it locally before publishing

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint

Publish to npm

npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i ebi-vue-components-test

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

18.3 kB

Total Files

34

Last publish

Collaborators

  • rickaat