curist / grunt-bower

grunt task to copy bower installed packages to other folder(s)
MIT License
93 stars 27 forks source link

Components with no main specified failing to copy #3

Closed grancalavera closed 11 years ago

grancalavera commented 11 years ago

This fix appends [name].js to src_path when it doesn't end with .js.

grancalavera commented 11 years ago

This doesn't fix the issue for requirejs, where the component name is requirejs, but the actual main file name is require.js.

curist commented 11 years ago

Hey, sorry for the late reply. grunt-bower v0.4.1 is handling this case now, but still, thanks for the pull request.

And since bower version > 0.4 won't read from package.json, grunt-bower is also handling that, too!

grancalavera commented 11 years ago

Thanks for the info, I'll take a look. In the end I gave up on bower and started again with volo, creating a simple init template with just what I need, feel free to take a look (still work in progress): https://github.com/grancalavera/grunt-templates

curist commented 11 years ago

Just checked, didn't aware of volo's add has a -amdoff switch, it seems to be a nice workflow you got there :+1: