Skip to content

dlockhart/web-components-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Components Demo

Basic demonstration of building a web component using vanilla JavaScript compared to LitElement.

Also integrates some visual diff testing.

Resources

Web Components

Visual Diff

Setup

Clone the repo and run:

npm install

Run the Demos

To start a development server that hosts the demos, run:

npm run start

Then visit the URL output to the console.

By default, index.html loads the vanilla web component (vanilla.js). To use Lit instead, switch it to load lit.js.

Visual Diff Testing

To set a baseline set of golden screenshots, run:

npm run visual-diff:golden

To compare against the goldens, run:

npm run visual-diff

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published