litfile-compiler

0.1.3 • Public • Published

Litfile Compiler

This library parses .lit files and compiles them into JavaScript.

Litfiles are basically the same as Vue files, if you've ever seen one. Except you don't need to build everything in litfiles because it's Web Components.

As the name suggests, this is designed to work with LitElement.

Installation

npm install litfile-compiler

Usage

This package exposes a single API.

```js
import compile from 'litfile-compiler';

const document = "...";

const compiled = compile(document).code;
```

Information on the proper structure of a `.lit` file can be found in the root of this repository.

Contributing

Do not contribute bad code. Do contribute good code.

Readme

Keywords

none

Package Sidebar

Install

npm i litfile-compiler

Weekly Downloads

2

Version

0.1.3

License

ISC

Unpacked Size

46.8 kB

Total Files

12

Last publish

Collaborators

  • geel9