我想知道是否有一种简单的方法可以在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?
答案 0 :(得分:1)
尝试使用其他livescript
package。我不确定为什么有人创建了livescript-latest
包 - 两者似乎都在使用版本1.2.0的文件。
mrt add livescript
当我使用LiveScript时,这对我有用。
答案 1 :(得分:1)
meteor add vasaka:livescript-compiler