我想知道是否有一种简单的方法可以将LiveScript文件编译成Meteor.js应用程序中的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文件添加到项目中时,它们似乎没有被编译。
还有人尝试过LiveScripting和Meteor.js应用程序吗?
发布于 2014-01-13 00:42:40
尝试使用另一个 package。我不知道为什么有人创建了livescript-latest包-两者似乎都在使用livescript的1.2.0版本。
mrt add livescript这在我使用LiveScript的时候对我起了作用。
发布于 2014-10-11 20:14:08
meteor add vasaka:livescript-compiler
https://stackoverflow.com/questions/21078735
复制相似问题