带有Meteor.js的LiveScript

时间:2014-01-12 18:41:25

标签: javascript meteor livescript

我想知道是否有一种简单的方法可以在Meteor.js应用程序中将LiveScript文件编译为js。发现这个mrt扩展名:

https://atmosphere.meteor.com/package/livescript-latest

但只做mrt add livescript-latest会产生错误:

While building package `livescript-latest`:
package.js:3:9: Package.register_extension() is no longer supported. Use Package._transitional_registerBuildPlugin instead.

在此扩展程序的git repo中,错误已修复。所以我可以直接使用smart.json:

"livescript-latest": {
      "git": "https://github.com/Whoaa512/meteor-livescript.git",
      "branch": "master"
    }

这似乎安装得很好,但是当我尝试将.ls文件添加到项目中时,似乎没有编译它们。

其他人尝试使用Meteor.js应用程序进行LiveScripting?

2 个答案:

答案 0 :(得分:1)

尝试使用其他livescript package。我不确定为什么有人创建了livescript-latest包 - 两者似乎都在使用版本1.2.0的文件。

mrt add livescript

当我使用LiveScript时,这对我有用。

答案 1 :(得分:1)

meteor add vasaka:livescript-compiler

https://atmospherejs.com/vasaka/livescript-compiler