Giter Club home page Giter Club logo

meteor-typescript's Introduction

#meteor-typescript

A meteor smart package for TypeScript support

Installation

Currently, there is only a command line typescript compiler available. For the meteor smart package, the file compilation has to be performed synchronously. Node does not provide an easy way to do so out of the box, sadly.

Prepare

Install the exec-sync package with $ npm install -g exec-sync globally. exec-sync has to be found by node inside your project directory, so maybe you'll have to use the $ npm link exec-sync command to make it available in there.

Windows

I did not try this myself, but as sky-dev mentioned here, there are some additional steps needed to make the exec-sync package work in Windows.

First, Python 2 needs to be installed and 'C:\Python27' added to your Windows environment PATH variable in order for 'npm install -g exec-sync' to work.
Second, I had to execute 'npm link exec-sync' in a console run as an administrator, because Meteor does not recognize the default install directory of 'C:\Users[user]\AppData\Roaming\npm\node_modules'. Also, it is important to note that you must be navigated to 'C:\Program Files (x86)\Meteor\lib\node_modules' for it to link node_modules to the correct location.

Atmosphere

Manually

  • Download the meteor project from github
  • Download and add the meteor-typescript package to the packages folder of meteor
  • run the meteor script from the folder you checked the github repo out into, not the locally installed one

Usage

All files with a .ts extension will be converted automatically into a javascript file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.