Added a SVG-graphic as logo
[examples/template-development] / Gruntfile.js
1 module.exports = function(grunt) {
2
3   grunt.loadNpmTasks('grunt-contrib-copy');
4   grunt.loadNpmTasks('grunt-contrib-less');
5   grunt.loadNpmTasks('grunt-contrib-watch');
6   grunt.loadNpmTasks('grunt-svgstore');
7
8   grunt.initConfig({
9
10     pkg: grunt.file.readJSON('package.json'),
11
12     copy: {
13       html: {
14         expand: true,
15         cwd: 'html',
16         src: '**/*.html',
17         dest: 'dist/thymeleaf/templates',
18       }
19     },
20
21     less: {
22       compile: {
23         options: {
24           sourceMapURL: 'frontend.css.map',
25           sourceMapFilename: 'dist/css/frontend.css.map'
26         },
27         src: 'less/frontend.less',
28         dest: 'dist/css/frontend.css'
29       }
30     },
31
32     svgstore: {
33       options: {
34         cleanup: true
35       },
36       sprite: {
37         files: {
38           'dist/img/sprite.svg': [
39             'img/mo.svg'
40           ]
41         }
42       }
43     },
44
45     watch: {
46       copy: {
47         files: [ 'html/**/*.html' ],
48         tasks: [ 'copy' ]
49       },
50       less: {
51         files: [ 'less/**/*.less' ],
52         tasks: [ 'less' ]
53       },
54       svgstore: {
55         files: [ 'img/**/*.svg' ],
56         tasks: [ 'svgstore' ]
57       }
58     }
59
60   });
61
62   grunt.registerTask('default', [ 'copy', 'less', 'svgstore' ]);
63
64 };