hexo-renderer-ts

1.3.0 • Public • Published

hexo-renderer-ts

hexo renderer for typescript files.

Options

See https://www.typescriptlang.org/docs/handbook/compiler-options.html

In _config.yml:

render:
  ts:
    target: ES2015
    removeComments: true
    newLine: Lf
    pretty: false

Or from tsconfig.json file

render:
  ts: tsconfig.json # path to tsconfig.json file

Or by API:

hexo.render.render({text: '', engine: 'ts'}, {
  target: 'ES2015',
  removeComments: true, 
  newLine: 'Lf', 
  pretty: false}).then(function(result){
  // ...
});

Readme

Keywords

Package Sidebar

Install

npm i hexo-renderer-ts

Weekly Downloads

1

Version

1.3.0

License

MIT

Unpacked Size

5.65 kB

Total Files

4

Last publish

Collaborators

  • opportunity