Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wenyan-lang/rollup-plugin
- Owner: wenyan-lang
- License: mit
- Created: 2020-01-30T05:42:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T22:14:59.000Z (3 months ago)
- Last Synced: 2024-10-30T10:41:22.185Z (2 months ago)
- Topics: rollup-plugin, wenyan, wenyan-lang
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@wenyanlang/rollup-plugin
- Size: 17.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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