metalsmith-typescript

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i metalsmith-typescript

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • mao.instantlife