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.
yarn
yarn start
- Clone the frontend repo
cd packages/editor && yarn yalc:publish
cd ../editor-web-component && yalc add @serlo/editor && yarn yalc:publish
- Navigate into this repo and do
yalc add @serlo/editor-web-component && yarn start