mumoshu / play2-typescript

TypeScript assets handling for Play 2.0. Compiles .ts files under the /assets dir along with the project.
Other
74 stars 14 forks source link

dependent modules are created in the wrong directory #20

Open MasseGuillaume opened 10 years ago

MasseGuillaume commented 10 years ago

the following test case fail

app/assets/javascripts/main.ts

import jquery = module("jquery");
import underscore = module("underscore");

export module A {
    console.log(jquery.$ + underscore._);
}

app/assets/javascripts/jquery.ts

export var $ = null;

app/assets/javascripts/underscore.ts

export var _ = null;

it creates jquery.js in the javascripts folder (app/assets/javascripts)

and then complains it could not find in the temp folder

MatchError: java.lang.AssertionError: assertion failed: One of those files should exist: List(Path(/tmp/1382069450085-1/jquery.js), Path(/tmp/1382069450085-1/javascripts/jquery.js), Path(/tmp/1382069450085-1/assets/javascripts/jquery.js), Path(/tmp/1382069450085-1/app/assets/javascripts/jquery.js), Path(/tmp/1382069450085-1/web/app/assets/javascripts/jquery.js), Path(/tmp/1382069450085-1/Sauce/web/app/assets/javascripts/jquery.js), Path(/tmp/1382069450085-1/project/Sauce/web/app/assets/javascripts/jquery.js), Path(/tmp/1382069450085-1/Repo/project/Sauce/web/app/assets/javascripts/jquery.js), Path(/tmp/1382069450085-1/gui/Repo/project/Sauce/web/app/assets/javascripts/jquery.js), Path(/tmp/1382069450085-1/home/gui/Repo/project/Sauce/web/app/assets/javascripts/jquery.js)) (of class java.lang.AssertionError)
mumoshu commented 10 years ago

Hi, @MasseGuillaume

Thanks a lot for your detailed feedback! I'll publish 0.3.0-RC1, which would fix the problem, to the Maven Central soon. For now, you can try it building the play-2.2 branch of play2-typescript yourself: https://github.com/mumoshu/play2-typescript/tree/play-2.2

Regards, Yusuke