Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 897 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 897 Bytes

Quickstart guide for the @serlo/editor-web-component in lit

Lit is a webcomponent framework by Google. The Serlo Editor integrates natively into any environment due to its support for webcomponents. This repo is a minimal barebones example on how to get a Serlo editor started in a lit environment.

Usually, lit is used with TypeScript but to keep the sample small we have opted for the tiniest example possible. All principles apply equally to any other environment that lit can be set up in.

Usage

  1. yarn
  2. yarn start

Usage with local editor-web-component

  1. Clone the frontend repo
  2. cd packages/editor && yarn yalc:publish
  3. cd ../editor-web-component && yalc add @serlo/editor && yarn yalc:publish
  4. Navigate into this repo and do yalc add @serlo/editor-web-component && yarn start