How does TypeScript resolution work in playback mode?

I want to use Angular 2 with TypeScript in my Play project. I use the sbt-typescriptplugin and angular2WebJAR. When Play retrieves the WebJAR, it places it in target/web/public/main/lib/angular2. What I could do in my file app/assets/js/components/test.tsseems to be

import {Component} from 'angular2/core';

but tsc can't solve this, and I don't see any settings to tell where to look.

Is this currently possible? Will creating a project for just TypeScript material simplify?

+4
source share
2 answers

Javascript/Typescript webjars. Play, , .
. https://github.com/joost-de-vries/play-angular2-typescript

sbt- typescript , . , , bpervan.

0

, , .

: https://github.com/ArpNetworking/sbt-typescript/issues/33

TypeScript transpiler , , , 2.0. TypeScript github ( , SO )

, angular2 TypeScript Play - npm tsc. WebJars Scala (SuperManitu 1, ( , , ))

0

Source: https://habr.com/ru/post/1625093/


All Articles