문제

I wonder if there is an easy way to get LiveScript files compiled to js in Meteor.js app. Found this mrt extension:

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

But doing mrt add livescript-latest only gives error:

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

In the git repo of this extension the error is already fixed. So I can this directly to smart.json:

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

This seems to be installed fine, but when I try adding .ls files to the project, they are not seems to be compiled.

Anyone else tried LiveScripting with Meteor.js apps?

도움이 되었습니까?

해결책

Try using the other livescript package. I'm not sure why someone created the livescript-latest package - both seem to be using version 1.2.0 of livescript.

mrt add livescript

This worked for me back when I was using LiveScript.

다른 팁

meteor add vasaka:livescript-compiler

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top