【文件属性】:
文件名称:metalsmith-typescript:Metalsmith 的 TypeScript 编译插件
文件大小:31KB
文件格式:ZIP
更新时间:2021-06-17 01:50:22
JavaScript
金属匠打字稿
的插件。
安装
npm install metalsmith-typescript
用法
var typescript = require ( 'metalsmith-typescript' )
Metalsmith ( __dirname )
. use ( typescript ( options ) )
. build ( )
选项
使用以下任何一项或全部:
outDir
这是编译文件的目标路径字符串。
filter
这是用于编译目标文件的过滤器字符串(正则表达式)。
注意:TypeScript 编译器需要.ts扩展名来编译目标文件,此插件将扩展名字符串添加到过滤字符串中。
moduleType
这是用于编译目标文件的模块类型字符串。
测试
$ npm run test
执照
MIT 许可证,有关详细信息,请参阅。
【文件预览】:
metalsmith-typescript-master
----.gitignore(45B)
----package.json(644B)
----src()
--------lib()
--------test()
----LICENSE.md(1KB)
----README.md(936B)
----lib()
--------index.js(2KB)
----tsd.json(338B)
----.npmignore(11B)
----typings()
--------tsd.d.ts(82B)
--------mocha()
--------chai()
----test()
--------fixtures()
--------specs()