A TypeScript plugin for Metalsmith.
npm install metalsmith-typescript
var typescript = require('metalsmith-typescript')
Metalsmith(__dirname)
.use(typescript(options))
.build()
Use any or all of the following:
This is a destination path string for compiled files.
This is a filter string(regex) for compile target files.
Note:
TypeScript compiler requires .ts
extensions for compile target files,
and this plugin add the extension string to filter string.
This is a module type string for compile target files.
Additional, custom compiler options.
$ npm run test
MIT License, see LICENSE for details.