grunt-contrib-copy を使用して、一部のディレクトリを除外しながらsrc
、フォルダーの内容をフォルダーにコピーしようとしています。dist
src
├── bower_components
│ └── ...
├── components
│ ├── html5shiv.js
│ └── jquery.min.js
├── js
│ └── ...
├── scss
│ └── ...
└── index.html
私の単調な仕事:
copy: {
main: {
expand: true,
flatten: true,
src: ['src/*', '!src/js', '!src/scss', '!src/bower_components'],
dest: 'dist/',
},
}
これ欲しい:
dist
├── components
│ ├── html5shiv.js
│ └── jquery.min.js
└── index.html
しかし、私はこれを得ています:
dist
├── components
└── index.html
私は何を間違っていますか?ご覧いただきありがとうございます。