@bendera/vscode-webview-elements

Webcomponents for creating Visual Studio Code extensions

Usage no npm install needed!

<script type="module">
  import benderaVscodeWebviewElements from 'https://cdn.skypack.dev/@bendera/vscode-webview-elements';
</script>

README

VSCode Webview Elements

For the end-user documentation, click here. This project made with LitElement and based on a modified version of the LitElement TypeScript starter.

Setup

Install dependencies:

npm ci

The main NPM tasks

Production build

npm run build

Start development mode

Start TypeScript compiler in development mode and start the @web-dev-server

npm run start

Generate the documentation site

npm run docs

Start the documentation site development server

npm run docs:start

Testing

npm run build:watch

# in another terminal instance:
npm run test:watch

Run tests

npm run test