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

Unable to load jakefile #274

Closed happysahota closed 10 years ago

happysahota commented 10 years ago

Hi,

I just tried to make use of jake but found really weird issue that jake is unable to load jakefile. Do you have any idea how to resolve it. Directory Structure: jake_test-- --------------jake.sh --------------jakefile.js

Here is trace log: jake aborted. Error: No Jakefile. Specify a valid path with -f/--jakefile, or place one in the current directory. at api.fail (/opt/lampp/htdocs/jake_test/node_modules/jake/lib/api.js:336:18) at EventEmitter.utils.mixin.run (/opt/lampp/htdocs/jake_test/node_modules/jake/lib/jake.js:319:9) at Object. (/opt/lampp/htdocs/jake_test/node_modules/jake/bin/cli.js:25:10) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:901:3

Help really appriciated.

mde commented 10 years ago

A few questions -- what is in the jake.sh? It looks like you've installed Jake as a local module -- are you just starting with with the local CLI script, or are you trying to embed Jake inside your program?

happysahota commented 10 years ago

Actually jake.sh has simple command of "node_modules/.bin/jake $*"

But I able to figure it out that: "Jakefile.js" has to start with a capital "J"

For which I'm Thankful to James Shore.

Thank you

mde commented 10 years ago

Glad you were able to get it sorted!