Wednesday, May 14th, 2008
xmake: a JavaScript make-like utility
Peter Michaux has created a make, or rake-like utility for JavaScript called xmake.
You create a Xmakefile.js such as
-
-
/ defines println
-
require('helpers');
-
-
xmake.task('low', function() {
-
println('low');
-
});
-
-
xmake.task('mid1', ['low'], function() {
-
println('mid1');
-
});
-
-
xmake.task('mid2', ['low'], function() {
-
println('mid2');
-
});
-
-
xmake.task('high', ['mid1', 'mid2'], function() {
-
println('high');
-
});
-
And you run it via:
xmake [-f filename] taskname
This works with xjs, the server side JavaScript framework Peter is building. We are seeing a spur in these types of libraries as people do more on the server-side.












That’s really cool. Out of curiosity, I wonder if xmake could also be made to work within Adobe AIR?
Dylan, xmake is based on a pure JavaScript library that could be used in a browser if needed. The xmake command line utility could be used to compile a C program (though xmake currently doesn’t have file modification time checking but it could be added.) So if you have an AIR make-like task then you should be able to do it with xmake.