Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/opportunityliu/hexo-renderer-ts

hexo renderer for typescript files.
https://github.com/opportunityliu/hexo-renderer-ts

hexo hexo-renderer typescript

Last synced: 27 days ago
JSON representation

hexo renderer for typescript files.

Awesome Lists containing this project

README

        

# hexo-renderer-ts
hexo renderer for typescript files.

## Options
See

In `_config.yml`:
```yaml
render:
ts:
target: ES2015
removeComments: true
newLine: Lf
pretty: false
```
Or from `tsconfig.json` file
```yaml
render:
ts: tsconfig.json # path to tsconfig.json file
```
Or by API:
```javascript
hexo.render.render({text: '', engine: 'ts'}, {
target: 'ES2015',
removeComments: true,
newLine: 'Lf',
pretty: false}).then(function(result){
// ...
});
```