Meteor Typescript Seed project
This is a seed project which you can use to start your own project with Typescript and Meteor.
Though it will work with most versions of Typescript and Meteor, I have tested it with:
- Meteor versions:
- Typescript versions:
With Typescript version
<1.1, the delays in compilation become intolerable
for a large project.
Fork this repository and change the name of the project in
You will need this only once.
# Fetches and installs the meteor-typescript-libs and DefinitelyTyped bower install
The name of the folder for the definitions is set to
.bower instead of the
bower_components because Meteor ignores folders which start with
a period while building your application.
An alternate way to manage
DefinitelyTyped dependencies is to use tsd.
Run the following commands in three different terminals:
tsc --watch --out client/main.js client/main.ts
tsc --watch --out server/main.js server/main.ts
Most conventions are described on the meteor-typescript-libs.
However, the speed of compilation has become so far that it is not worth the
effort to write definition
.d.ts files manually anymore.
As long as you reference other files from
main.ts using the
<reference path=".../my-file.ts" /> syntax, Typescript will automatically add
them to the watch-list and continue to watch them.
This project relies on: