Added markup for the integration of the template in the Spring-Thymeleaf-App
[examples/template-development] / Gruntfile.js
index 9125a55..b6aa9aa 100644 (file)
@@ -14,7 +14,11 @@ module.exports = function(grunt) {
         expand: true,
         cwd: 'html',
         src: '**/*.html',
-        dest: 'dist/thymeleaf/templates',
+        dest: 'dist/thymeleaf/templates'
+      },
+      fonts: {
+        src: 'fonts/**/*',
+        dest: 'dist/'
       }
     },
 
@@ -59,6 +63,18 @@ module.exports = function(grunt) {
 
   });
 
+  grunt.registerTask('http-server', function() {
+
+    grunt.util.spawn({
+      cmd: 'node_modules/http-server/bin/http-server',
+      args: [ 'dist' ],
+      opts: { stdio: 'inherit' }
+    });
+
+  });
+
   grunt.registerTask('default', [ 'copy', 'less', 'svgstore' ]);
 
+  grunt.registerTask('run-server', [ 'default', 'http-server', 'watch' ]);
+
 };