New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elwins-test-web-components-vue

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elwins-test-web-components-vue

Vue specific wrapper for elwins-test-web-components

  • 0.3.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

Built With Stencil

Elwins Test Web Components for Vue 3

These are my test Web Components specifically build for Vue 3.

Using these components

Add this package to your project:

npm install elwins-test-web-components-vue --save

Or:

yarn add elwins-test-web-components-vue

Edit the main.js file like this:

import { createApp } from "vue";
import App from "./App.vue";
import {
  applyPolyfills,
  defineCustomElements,
} from "elwins-test-web-components/loader";

const app = createApp(App);

applyPolyfills().then(() => {
  defineCustomElements().then(() => {
    app.mount("#app");
  });
});

This is needed because defineCustomElements is async. Otherwise the Vue 3 mount is ran before the custom elements are fully defined, resulting in Vue 3 not correctly binding object/array values on load.

Import the component(s) you want to use:

import { EveButton } from "elwins-test-web-components-vue";

Use it in your template as any Vue component:

<EveButton href="https://elwinvaneede.com">Website</EveButton>

How to release a new version

  • Build the core package
  • Run build on this package
  • Publish

FAQs

Package last updated on 09 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc