New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

collective-webcomponents

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collective-webcomponents

Stencil Component Starter

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Collective Webcomponents

Webcomponents for Collective made with Stencil

Getting Started

To start building a new web component using Stencil, clone this repo to a new directory:

git clone https://github.com/builder/collective-webcomponents.git
cd collective-webcomponents

and run:

npm install
npm start

To watch for file changes during develop, run:

npm run dev

To build the component for production, run:

npm run build

To run the unit tests for the components, run:

npm test

Try using Visual Studio Code to view and edit this code, it has best in class typescript/tsx support.

Need help? Check out the stencil docs here.

Using these components

Script tag

  • Publish to NPM
  • Put a script tag similar to this <script src='https://unpkg.com/collective-webcomponents@0.0.1/dist/collectivewebcomponents.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install collective-webcomponents --save
  • Put a script tag similar to this <script src='node_modules/collective-webcomponents/dist/collectivewebcomponents.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install collective-webcomponents --save
  • Add an import to the npm packages import collective-webcomponents;
  • Then you can use the element anywhere in your template, JSX, html etc

FAQs

Package last updated on 22 Jun 2018

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