1.0.0 • Published 9 years ago
metalsmith-typescript v1.0.0
metalsmith-typescript
A TypeScript plugin for Metalsmith.
Installation
npm install metalsmith-typescript
Usage
var typescript = require('metalsmith-typescript')
Metalsmith(__dirname)
.use(typescript(options))
.build()
Options
Use any or all of the following:
outDir
This is a destination path string for compiled files.
filter
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.
moduleType
This is a module type string for compile target files.
Tests
$ npm run test
License
MIT License, see LICENSE for details.
1.0.0
9 years ago