open-index/open-npm huggingface dataset:
npm package: @lucy/codemirror-lang
Description: CodeMirror 6 language support for Lucy
Author: Matthew Phillips
Latest version: 0.1.0

# @lucy/codemirror-lang

This package implements Lucy language support for [CodeMirror 6](https://codemirror.net/6).

## Usage

Language extensions are used with an EditorState object like so:

```js
import {EditorState, EditorView, basicSetup} from "@codemirror/basic-setup";
import {Compartment} from "@codemirror/state"
import {defaultTabBinding} from "@codemirror/commands";
import {keymap} from "@codemirror/view";
import {lucy} from '@lucy/codemirror-lang';

const language = new Compartment();
const tabSize = new Compartment();

const lucySrc = `
state idle {
  start => guard(:loggedIn) => downloading
}

state downloading {

}
`;

const view = new EditorView({
  state: EditorState.create({
    doc: lucySrc.trim(),
    extensions: [
      basicSetup,
      keymap.of([defaultTabBinding]),
      language.of(lucy()),
      tabSize.of(EditorState.tabSize.of(2)),
    ]
  }),
  parent: document.querySelector('#app')
});
```

## License

BSD-2-Clause
npm package: @lucy/liblucy
Description: The Lucy compiler project.
Author: Matthew Phillips
Latest version: 0.5.6

# liblucy

__liblucy__ is the core piece of [Lucy](https://lucylang.org/) the DSL. It contains the core compiler that is compiled to wasm for usage in JavaScript environments such as Node.js. It also includes the CLI compiler, `lucyc`.

## Contributing

See the [contributing page](https://lucylang.org/docs/contributing/) for information on how to build liblucy and the workflow for making changes.

## License

BSD-2-Clause
npm package: @lucy/prism
Description: Prism plugin for the Lucy language
Author: Matthew Phillips
Latest version: 1.5.0

# @lucy/prism

This is a Prism plugin for Lucy syntax highlighting.

## Usage

This package exports a function that takes a `Prism` object. Typical usage looks like:

```js
const Prism = require('prismjs');
const addLucy = require('@lucy/prism');

addLucy(Prism);

// Now use Prism as normal.
```

## License

BSD-2-Clause
npm package: @lucy/rollup-plugin
Description: Rollup plugin for Lucy
Author: Matthew Phillips
Latest version: 0.1.4

# @lucy/rollup-plugin

A Rollup plugin for Lucy.

## Install

```shell
npm install @lucy/rollup-plugin --save-dev
```

## Usage

> *Important*: This plugin currently only works with ESM rollup configs.

Import and use like any other Rollup plugin.

__rollup.config.mjs__

```js
// rollup.config.js
import lucy from '@lucy/rollup-plugin';

export default ({
  input: 'entry.js',
  plugins: [lucy()],
  output: [{
    file: 'bundle.js',
    format: 'es'
  }]
});
```

## License

BSD-2-Clause
npm package: @lucy/snowpack-plugin
Description: A Snowpack plugin for Lucy
Author: Matthew Phillips
Latest version: 0.1.1

# @lucy/snowpack-plugin

Use [Lucy](https://lucylang.org/) files in a Snowpack project.

## Install

```shell
npm install @lucy/snowpack-plugin --save-dev
```

## Configuration

__snowpack.config.js__

```js
module.exports = {
  // ...
  plugins: [
    '@lucy/snowpack-plugin'
  ]
}
```

## License

BSD-2-Clause