sync.js 626 B

123456789101112131415161718192021222324252627
  1. /**
  2. * A grunt task to keep directories in sync. It is very similar to grunt-contrib-copy
  3. * but tries to copy only those files that has actually changed.
  4. *
  5. * ---------------------------------------------------------------
  6. *
  7. * Synchronize files from the `assets` folder to `.tmp/public`,
  8. * smashing anything that's already there.
  9. *
  10. * For usage docs see:
  11. * https://github.com/tomusdrw/grunt-sync
  12. *
  13. */
  14. module.exports = function(grunt) {
  15. grunt.config.set('sync', {
  16. dev: {
  17. files: [{
  18. cwd: './assets',
  19. src: ['**/*.!(coffee)'],
  20. dest: '.tmp/public'
  21. }]
  22. }
  23. });
  24. grunt.loadNpmTasks('grunt-sync');
  25. };