grunt-patternprimer icon indicating copy to clipboard operation
grunt-patternprimer copied to clipboard

Collect pattern files from several subfolders

Open annaf-dev opened this issue 9 years ago • 0 comments

Hello, the structure of my projects is a bit different. I don't have all my patterns (html-files) in one folder but in several subfolders.

My structure looks like that:

| root
| - components
| -- app
| --- my_component1
| ---- scssfile.scss
| ---- htmlfile.html
| --- my_component2
| ---- htmlfile.html
| --- my_component3
| ---- htmlfile.html
| ---- jsfile.js
| and so on

So I would like to collect all html files in the subfolders of the app folder - without writing each subfolder itself. I tried it that way (like I did with other grunt plugins), which doesn't work.

patternprimer: {
      options: {
        wwwroot: 'build',
        css: ['assets/css/global.css'],
        dest: 'patterns',
        src: 'components/app/**/*.html'
      },
      snapshot: {
        snapshot: true
      }
    }

Is it possible to extend the src option like that (or similar) to make it work that way?

annaf-dev avatar Jun 23 '15 16:06 annaf-dev