tpack-coffee-script

2.9.0 • Public • Published

tpack-coffee-script

TPack 插件:使用 coffeescript 编译 CoffeeScript。

安装

$ npm install tpack-coffee-script -g

使用

编译 CoffeeScript 并重命名为 JS

tpack.src("*.coffee").pipe(tpack.plugin("tpack-coffee-script"));

源映射(Source Map)

本插件可生成源映射,具体用法见 源映射

配置

tpack.src("*.coffee").pipe(tpack.plugin("tpack-coffee-script"), {
    bare: false,
    header: false,
    literate: false,
    filename: "",
    sourceMap: "",
    sourceRoot: false,
    generatedFile: "",
    sourceFiles: [""]
    // 配置...
});

另参考 https://github.com/jashkenas/coffeescript/

Package Sidebar

Install

npm i tpack-coffee-script

Weekly Downloads

0

Version

2.9.0

License

MIT

Last publish

Collaborators

  • teal