jakejs / jake

JavaScript build tool, similar to Make or Rake. Built to work with Node.js.
http://jakejs.com
Apache License 2.0
1.97k stars 190 forks source link

running on the browser? #248

Open der-On opened 10 years ago

der-On commented 10 years ago

I want to use the same testTasks on the server as on the browser. Is it possible to run jake from within the browser?

mde commented 10 years ago

Wow. There's nothing specifically preventing Jake from running in the browser. The Jakefile and .jake files are loaded using plain Node require, so if you can get tasks into the runtime, things should pretty much work. The only specific stumbling block for TestTask is that it assumes it should be loading test files according to the provided glob/regex patterns. You'd probably have to refactor it a bit to load test files another way.