You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
460 B

  1. # Usage Examples
  2. ```js
  3. copy: {
  4. main: {
  5. files: [
  6. {src: ['path/*'], dest: 'dest/', filter: 'isFile'}, // includes files in path
  7. {src: ['path/**'], dest: 'dest/'}, // includes files in path and its subdirs
  8. {expand: true, cwd: 'path/', src: ['**'], dest: 'dest/'}, // makes all src relative to cwd
  9. {expand: true, flatten: true, src: ['path/**'], dest: 'dest/', filter: 'isFile'} // flattens results to a single level
  10. ]
  11. }
  12. }
  13. ```