1

我想知道是否有一种简单的方法可以在 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 存储库中,该错误已修复。所以我可以直接把这个放到smart.json:

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

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

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

4

2 回答 2

1

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

mrt add livescript

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

于 2014-01-13T00:42:40.100 回答
1

meteor add vasaka:livescript-compiler

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

于 2014-10-11T20:14:08.923 回答