madhums / node-genem

(not maintained) Opinionated MVC generator for NodeJS that uses express and mongoose.
MIT License
54 stars 5 forks source link

Fix path issue #4

Closed rhalff closed 9 years ago

rhalff commented 11 years ago

Hi madhums,

I should probably have made an issue first, anyway...

I tried to use node-genem and for me it would always try to generate the code in the current dir.

It seems like the path is always empty, because ._args is always empty, this means the path will always be '.'

For the generation of the models and views etc. I hardcoded the path to '.', effectively that's how it always worked accidently.

For the init option I took the app name as path, for this is what one would expect.

If you don't know what I'm talking about or have a better sollution yourself, feel free to deny this request :-)

Greetings, Rob Halff