JSPM

  • Created
  • Published
  • Downloads 113
  • Score
    100M100P100Q80863F
  • License MIT

Webcomponents for creating Visual Studio Code extensions

Package Exports

  • @bendera/vscode-webview-elements

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bendera/vscode-webview-elements) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

This sample uses the TypeScript compiler to produce JavaScript that runs in modern browsers.

To build the JavaScript version of your component:

npm run build

To watch files and rebuild when the files are modified, run the following command in a separate shell:

npm run build:watch

Both the TypeScript compiler and lit-analyzer are configured to be very strict. You may want to change tsconfig.json to make them less strict.

Testing

This sample uses Karma, Chai, Mocha, and the open-wc test helpers for testing. See the open-wc testing documentation for more information.

Tests can be run with the test script:

npm test

Run tests

npm run test