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

Why are jake methods exposed globally #316

Closed danny-andrews closed 8 years ago

danny-andrews commented 8 years ago

What was the rationale behind exposing the main jake methods (e.g. desc, task, namespace) globally? It's a bit frustrating to have to add a linter annotation for all of them, and it runs the risk of collisions. This is a mistake mocha made which I think has hurt its adoption.

mde commented 8 years ago

I started building Jake around Node v0.2. Node was still pretty new and experimental, and I just wanted something to build my own projects without having to install Ruby. It originally was just a port of Rake, so I did most things the same way Rake did.

I would not be opposed to a major version bump that actually removes them from the global.