Giter Site home page Giter Site logo

stab-at-lang-editor's Introduction

stab-at-lang-editor

This project is a prototype for running an editor and language server, that was generated by Langium, in a browser. The idea is to wrap the editor in a Lit WebComponent so that it can be packaged for reuse.

Project Structure

The project consists of:

hello-world

A small Langium language server/editor project that implements a simple "HelloWorld" grammar. When you build this project, it is configured to produce a web worker that can be used in the browser to move the language server from a Node backend into the browser itself, eliminating the need for a server-based language server.

To build:

cd hello-world
npm run buildall

hello-world-editor-lit

A Lit component project that wraps the hello-world language.

This project is still needing CSS work, but implements the basic functionality

To build:

cd hello-world-editor-lit
npm run build

To serve:

npm run dev

wrapper-js-html

A reconstitution of the example shown here. This project uses Vite for building and bundling.

To build:

cd wrapper-js-html
npm run build

To serve:

npm run dev

wrapper-hello-world-code

Demonstrates the use of code to initialize an editor using resources created from the hello-world project. These resources are manually copied into folders for use at runtime.

To build:

cd wrapper-hello-world-code
npm run build

To serve:

npm run dev

wrapper-js-code

A reconstitution of the example shown here. This project uses Vite for building and bundling.

To build:

cd wrapper-js-code
npm run build

To serve:

npm run dev

stab-at-lang-editor's People

Contributors

ballcoach12 avatar integragreg avatar patonwilliams avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.