An open API service indexing awesome lists of open source software.

https://github.com/serlo/serlo-editor-lit

Example implementation of the serlo webcomponent editor in a lit environment
https://github.com/serlo/serlo-editor-lit

Last synced: over 1 year ago
JSON representation

Example implementation of the serlo webcomponent editor in a lit environment

Awesome Lists containing this project

README

          

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

[Lit](https://lit.dev/) is a webcomponent framework by Google. The [Serlo Editor](https://www.npmjs.com/package/@serlo/editor-web-component) 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`