3

How can I configure my Windows environment to build/deploy TypeScript source code using Makefile script?

What do I need?

EDIT

I Have a clone of TypeScript repository in my pc. Now I want know how to run the Makefile script to deploy the TypeScript compiler. I Want to compile my own source code of TypeScript compiler. What utilities do I need for this?

2 Answers 2

4

On plain windows setup u can run tsc.js through windows script host (WSH) as well.

Actually... file management without node.js is done through WSH. You can check it out yourself. It is in the sources under compiler in io.ts.

To build compiler yourself... all u need to do is just pass plain "src/tsc.ts" to compiler and setup some output dir such as "bin2"... if you wanna use relative paths remember about setting your current directory.

Here is an example of how it works... I have done it this way.

  1. Run cmd
  2. Go to "YOURS_TYPESCRIPT/src/compiler/" directory
  3. Write:

    tsc --out ../../bin/tsc2.js tsc.ts

  4. Now you are a fine mother of another typescript compiler. :)

Edit: You have so many options on windows by default that it is even funny you ask for another one for makefiles. :P

You could use batch(*.bat) files or WSH with JScript([ecma scripting again] *.js ) or Visual Basic(that one I didn't use). Why make someone into installing another one if those got all u need?

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for the post! I'll check.
Is it normal to get tons of errors (maybe sometimes)? I just ran a git pull tried to compile as you said and I get lots of errors...
2

You'll need to have the command-line TypeScript Compiler installed on your machine. You can get this for node.js (npm install -g typescript) if you're running that locally.

tsc helloworld.ts

You should be able to patch that into your build process at this point.

5 Comments

That I know. I Have a clone of TypeScript repository. Now I want know how to run the Makefile script to deploy the TypeScript compiler. What utilities do I need for this?
@Diullei If I understand you correctly, you want NMake.
@Jonathan yes, you are correct. Do you know where I can download the nmake.exe? I have not found a valid download link.
@Diullei You should be able to get it with VS Express or the Windows SDK. MSBuild may also work; this isn't my forte but it appears to me that MSBuild is replacing NMake.
thank you for the post. I'll check. Thanks so much for trying to help me!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.