Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wenyan-lang/rollup-plugin

文言鋪蓋 - Rollup plugin for wenyan-lang
https://github.com/wenyan-lang/rollup-plugin

rollup-plugin wenyan wenyan-lang

Last synced: about 2 months ago
JSON representation

文言鋪蓋 - Rollup plugin for wenyan-lang

Awesome Lists containing this project

README

        

# wenyan-rollup-plugin

Rollup.js plugin for wenyan-lang

## Install

```bash
npm i -D @wenyan/rollup-plugin @wenyan/core
```

## Rollup Config

```js
import wenyan from '@wenyan/rollup-plugin'

export default ({
input: '圖靈機.wy',
output: {
file: 'dist/turing.js',
format: 'cjs',
},
plugins: [
wenyan({
// options of wenyan.compile
strict: true,
romanizeIdentifiers: 'pinyin',
// ...etc
}),
],
})
```

The options field well passed to the wenyan `compile` function. Check [this doc](https://github.com/wenyan-lang/wenyan/wiki/Compiler-API#compiler-options) for details.

You can also check out the [examples](./examples).

## TODO

- [ ] A code name
- [ ] Unit tests