Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stencil-vue2-output-target

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stencil-vue2-output-target

Vue2 output target for @stencil/core components.

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
increased by131.82%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 25 Aug 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