curist / grunt-bower

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

Dev dependencies are copied to dist folder. #12

Closed TheLudd closed 11 years ago

TheLudd commented 11 years ago

Sholud the dev dependencies really be copied to the dist folder? I think that this at least should be configurable and that the default value should be false. Or is there a reason for copying the dev dependencies to the dist folder?

curist commented 11 years ago

It pretty much depends on your use case. For example, a project with following directory structure

.
├── app
│   ├── scripts/
│   ├── styles/
│   └── views/
├── component.json
├── components
│   ├── jquery/
│   ├── requirejs/
│   └── underscore/
├── Gruntfile.js
├── node_modules
│   ├── grunt/
│   ├── grunt-bower/
│   └── grunt-requirejs/
├── package.json
├── public
│   ├── index.html
│   ├── js/
│   └── styles/
└── README.md

run grunt bower to copy javascript libraries to public/js make sense, right?

TheLudd commented 11 years ago

For jQuery, requirejs and underscore, yes. They all belong in public. But do angular-scenario belong there? However I am pretty new to this enviroment so I don't have the complete picture of how the workflow of creating and deploying javascript based applications is supposed to be.

curist commented 11 years ago

I'll leave this open for another couple of days. If you come up with anything, let me know.