curist / grunt-bower

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

Specify locations of arbitrary file types? #24

Closed grawk closed 10 years ago

grawk commented 10 years ago

It looks like you can specify locations for css and js resources. But what I need to do is move around arbitrary file types (.dust, .properties) from components which contain those. I haven't spent a lot of time proving this is NOT possible but it looks like it's not (yet?) possible to have that level of control with this task?

E.g.

component has a directory structure like:

js/
css/
templates/
  - foo.dust
locales/
  US/
    en/
      - foo.properties

But my project requires that all templates (whether they are from bower or part of the main project) be in a single parent templates directory. So, I have to move around not just css/js but also these other file types.

I hope that's enough information. Please let me know. Thanks!

curist commented 10 years ago

Are you looking for something like this?

bower: {
  dev: {
    dest: 'public/',
    css_dest: 'public/styles',
    dust_dest: 'templates'
  }
}

If so, then yes, it's supported.

curist commented 10 years ago

Ah wait, just figure out what you meant. Do you want wildcard file paths? It's not possible for now, but I will take further look at this issue. For the locale properties part, currently we don't preserve the full path, so even if we cover that, it will ends up with flattened file structure in the locales folder.

grawk commented 10 years ago

Thanks for the quick reply. So it looks like the *_dest keys are parsed for meaning then. Sorry I didn't recognize that. And yes, I need to maintain directory structure in the copying routine.

curist commented 10 years ago

Fixed in v0.14.1.