added npm as a dependency
output the build files to targetDir
Merge pull request #3 from ziahamza/master

Fix a npm dependency bug and redirect build files to targetDir