nippur72 / RiotTS

RiotJS for TypeScript
MIT License
101 stars 8 forks source link

npm package and Typescript 2.0 module issue #36

Closed sandrokeil closed 8 years ago

sandrokeil commented 8 years ago

I'm playing around with the riot-ts npm package and Typescript 2.0, but the riot module is not found.

Can you update your RiotTS-helloworld example with only npm and without bower please? My tsconfig.json looks like this:

{
    "files": [
        "./node_modules/riot-ts/index.d.ts",
        "src/main.ts"
    ],
    "compilerOptions": {
        "noImplicitAny": false,
        "target": "es2015",
        "experimentalDecorators": true,
        "sourceMap": true,
        "jsx": "preserve"
    }
}

I've tried different import definitions for the timer example, but I got different errors. Have you any ideas?

sandrokeil commented 8 years ago

If you are familiar with Docker, you can use my Typescript 2.0 Docker Image.

$ docker run --rm -it --volume $(pwd):/app sandrokeil/typescript [ gulp | tsc | bower | node | typings |webpack ]
nippur72 commented 8 years ago

btw riot-ts is not mine, I had to publish it as riot-typescript. Please read my comment in #30.

sandrokeil commented 8 years ago

The new version 1.0.10 works like a charm. :+1: