Socket
Socket
Sign inDemoInstall

stencil-vue2-output-target

Package Overview
Dependencies
6
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stencil-vue2-output-target

Vue2 output target for @stencil/core components.


Version published
Weekly downloads
181
decreased by-61.73%
Maintainers
1
Install size
59.9 MB
Created
Weekly downloads
 

Readme

Source

npm version GitHub license

Vue 2 Stencil Output Targets

This project was forked from Stencils Vue Output targets in an effort to fully support Vue 2 for components built with @stencil/core

Installation

npm install -D stencil-vue2-output-target

# OR

yarn add -D stencil-vue2-output-target

Usage

Vue

Stencil Config setup

import { Config } from "@stencil/core";
import { vueOutputTarget } from "stencil-vue2-output-target";

export const config: Config = {
  namespace: "demo",
  outputTargets: [
    vueOutputTarget({
      componentCorePackage: "component-library",
      proxiesFile: "../component-library-vue/src/components.ts",
      componentModels: vueComponentModels,
    }),
    {
      type: "dist",
    },
  ],
};
componentCorePackage

This is the NPM package name of your core stencil package. In the case of Ionic we chose ‘@ionic/core’. This is the package that gets published that contains just your web components. This package is then used by the Vue package as a dependency

proxiesFile

This is the output file that gets generated by the outputTarget. This file should be referencing a different package location. In the example case we are choosing a sibling directory’s src directory. We will then create a Vue package that exports all components defined in this file.

Setup of Vue Component Library

There is an example component library package available on Github so that you can get started. This repo will likely live as a sibling to your Stencil component library.

Usage

import { DemoComponent } from "component-library-vue";

FAQs

Last updated on 09 Sep 2020

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc