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

web-components-starter

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

web-components-starter

A Web Components starter project

  • 0.0.15
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

web-components-starter

A Web Components starter project

web-components-starter-screenshot


System requirements:

  • Node.js

Develop using the npm module:

Create a new project directory

mkdir -p hello-web-components \
 && cd hello-web-components \
 && npm init -y

Install the npm module

 npm i web-components-starter

Copy the starter index.html to the root of the project

cp node_modules/web-components-starter/dist/build-ie11-iife/index.html ./

Update the path to the module

export C=container I=index N=iife WCS=web-components-starter \
 && sed "s#./$N/main.js#./node_modules/$WCS/dist/build-ie11-$N/$N/main.js#g" ./$I.html > $I.html.new \
 && mv index.html.new index.html

Serve the project

npx serve -s .

Develop using the git repository:

Open a terminal, clone this repository, and run one of the following in the root of the project:

  • npm run start - by default builds a view targeting IE11+ (from IE11, to Edge, Chrome, Firefox, and Safari)

  • npm run start-custom-elements-shady-dom - targeting browsers after IE11 (a Custom Elements v1 and shady DOM polyfill only)

  • npm run start-no-polyfills - targets evergreen browsers supporting Custom Elements v1 and shadow DOM (builds a minimal view in a "vanilla js" style)

FAQs

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

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