           include(compile)
 
     clean:
-      dev: ['tmp']
+      tmp: ['tmp']
       dist: ['dist']
+      dev: ['dist']
 
     glob:
-      dev:
-        files: [
-          expand: true
-          cwd: 'tmp'
-          src: ['**/*.html']
-          dest: 'tmp'
-          ext: '.html'
-        ]
-      dist:
-        files: [
-          expand: true
-          cwd: 'dist'
-          src: ['**/*.html']
-          dest: 'dist'
-          ext: '.html'
-        ]
+      tmp:
+        files: globFiles
+      dev:
+        files: globDistFiles
+      dist:
+        files: globDistFiles
         options:
           concat: true
           minify: true

          livereload: true

    copy:
      devAssets:
        expand: true
        cwd: 'assets'
        src: ['**/*', '!css/**/*.<%= cssExt %>', '!js/**/*.coffee']
        dest: 'tmp'
      devComponents:
          expand: true
          cwd: '.components'
          src: ['**/*', '!**/src/**']

          lorem: lorem
<% } else if(options.html === 'ejs') { %>
    ejs:
      tmp:
        files: htmlFiles
      dev:
        files: htmlDistFiles
      dist:
        files: htmlDistFiles
      options:
        lorem: lorem
<% } %>
