Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/opportunityliu/hexo-renderer-ts
- Owner: OpportunityLiu
- License: mit
- Created: 2018-08-14T02:38:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-27T03:26:23.000Z (almost 3 years ago)
- Last Synced: 2024-11-22T01:34:32.437Z (about 1 month ago)
- Topics: hexo, hexo-renderer, typescript
- Language: TypeScript
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-renderer-ts
hexo renderer for typescript files.## Options
SeeIn `_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){
// ...
});
```