projects
/
examples
/
template-development
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added markup for the integration of the template in the Spring-Thymeleaf-App
[examples/template-development]
/
Gruntfile.js
diff --git
a/Gruntfile.js
b/Gruntfile.js
index
9125a55
..
b6aa9aa
100644
(file)
--- a/
Gruntfile.js
+++ b/
Gruntfile.js
@@
-14,7
+14,11
@@
module.exports = function(grunt) {
expand: true,
cwd: 'html',
src: '**/*.html',
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('default', [ 'copy', 'less', 'svgstore' ]);
+ grunt.registerTask('run-server', [ 'default', 'http-server', 'watch' ]);
+
};
};