What's 'jakefile' in recent testing commits?

Topics: Code Checkins
Dec 21, 2012 at 3:31 PM

It seemed to first appear on 19th of December, commit 09e212f08fcb:

http://typescript.codeplex.com/SourceControl/changeset/09e212f08fcb

 

It says things like 'This file contains the build logic for the public repo' -- but what does it mean in plain English?

Does it mean this is compiling stuff without nmake dependency? That would be good, because not so many people are keen on learning how that utility works, and it's got no value in JavaScript world.

Or is it just reduced build script for the benefit of tests?

What's the story behind that jakefile?

Dec 28, 2012 at 3:43 AM

jake is a JavaScript based build system (see https://github.com/mde/jake )

For best results, install it globally via npm (npm install -g jake)

After this, you should be able to go to the root of your the repo, run "jake", and TypeScript will build.  You can also pass targets, e.g. "jake clean local runtests" to do a clean build and run the tests.

This build system should work cross-platform.

Dec 28, 2012 at 12:18 PM

Wow, that's even cooler than I thought, thanks a lot billti. That's a nice Christmas present :-)

 

Would be great to have this stuff built without any external dependency, after all the compiler manages to compile on its own already. But that might be a rather bold thing to ask for New Year ;-)

Dec 28, 2012 at 2:38 PM
Everything has an external dependency, it's a matter of where you draw a line. For a JavaScript related project, a dependency on Node.js these days is like a C# project having a dependency on the .NET framework.
Cheers,
Mark
Sent from Surface Mail
From: mihailik
Sent: ‎28‎ ‎December‎ ‎2012 ‎13‎:‎18
To: mark@markrendle.net
Subject: Re: What's 'jakefile' in recent testing commits? [typescript:415152]

From: mihailik

Wow, that's even cooler than I thought, thanks a lot billti. That's a nice Christmas present :-)

Would be great to have this stuff built without any external dependency, after all the compiler manages to compile on its own already. But that might be a rather bold thing to ask for New Year ;-)

Dec 28, 2012 at 2:44 PM

Node.js is not really necessary (as the compiler works without it just fine). But modules like jake are less justified. Building of tests shouldn't be that complicated in this case. 

 

But anyway, moving from proprietary nmake to something more open and manageable is a great progress. 

Dec 28, 2012 at 3:50 PM
The compiler is a Node.js package.
Sent from Surface Mail
From: mihailik
Sent: ‎28‎ ‎December‎ ‎2012 ‎15‎:‎44
To: mark@markrendle.net
Subject: Re: What's 'jakefile' in recent testing commits? [typescript:415152]

From: mihailik

Node.js is not really necessary (as the compiler works without it just fine). But modules like jake are less justified. Building of tests shouldn't be that complicated in this case.

But anyway, moving from proprietary nmake to something more open and manageable is a great progress.

Dec 28, 2012 at 6:21 PM

Or is it a single js file?