grunt-patternprimer
grunt-patternprimer copied to clipboard
Collect pattern files from several subfolders
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?