1 module.exports = function (grunt) {
4 grunt.loadNpmTasks('grunt-contrib-clean');
5 grunt.loadNpmTasks('grunt-contrib-cssmin');
6 grunt.loadNpmTasks('grunt-contrib-less');
7 grunt.loadNpmTasks('grunt-contrib-watch');
8 grunt.loadNpmTasks('grunt-newer');
21 outputSourceFiles: true,
22 sourceMapURL: 'base.css.map',
23 sourceMapFilename: 'dist/css/base.css.map'
25 src: 'dist/less/base.less',
26 dest: 'dist/css/base.css'
32 outputSourceFiles: true,
33 sourceMapURL: 'screen.css.map',
34 sourceMapFilename: 'dist/css/screen.css.map'
36 src: 'dist/less/screen.less',
37 dest: 'dist/css/screen.css'
43 outputSourceFiles: true,
44 sourceMapURL: 'print.css.map',
45 sourceMapFilename: 'dist/css/print.css.map'
47 src: 'dist/less/print.less',
48 dest: 'dist/css/print.css'
54 outputSourceFiles: true,
55 sourceMapURL: 'ie8.css.map',
56 sourceMapFilename: 'dist/css/ie8.css.map'
58 src: 'dist/less/ie8.less',
59 dest: 'dist/css/ie8.css'
65 outputSourceFiles: true,
66 sourceMapURL: 'tablet.css.map',
67 sourceMapFilename: 'dist/css/tablet.css.map'
69 src: 'dist/less/tablet.less',
70 dest: 'dist/css/tablet.css'
76 outputSourceFiles: true,
77 sourceMapURL: 'phone.css.map',
78 sourceMapFilename: 'dist/css/phone.css.map'
80 src: 'dist/less/phone.less',
81 dest: 'dist/css/phone.css'
87 outputSourceFiles: true,
88 sourceMapURL: 'tiny.css.map',
89 sourceMapFilename: 'dist/css/tiny.css.map'
91 src: 'dist/less/tiny.less',
92 dest: 'dist/css/tiny.css'
98 outputSourceFiles: true,
99 sourceMapURL: 'seitenaufteilung.css.map',
100 sourceMapFilename: 'dist/css/seitenaufteilung.css.map'
102 src: 'dist/less/seitenaufteilung.less',
103 dest: 'dist/css/seitenaufteilung.css'
109 outputSourceFiles: true,
110 sourceMapURL: 'seitenkopf.css.map',
111 sourceMapFilename: 'dist/css/seitenkopf.css.map'
113 src: 'dist/less/seitenkopf.less',
114 dest: 'dist/css/seitenkopf.css'
120 compatibility: 'ie8',
125 src: 'dist/css/base.css',
126 dest: 'dist/css/base.min.css'
129 src: 'dist/css/screen.css',
130 dest: 'dist/css/screen.min.css'
133 src: 'dist/css/print.css',
134 dest: 'dist/css/print.min.css'
137 src: 'dist/css/ie8.css',
138 dest: 'dist/css/ie8.min.css'
141 src: 'dist/css/tablet.css',
142 dest: 'dist/css/tablet.min.css'
145 src: 'dist/css/phone.css',
146 dest: 'dist/css/phone.min.css'
149 src: 'dist/css/tiny.css',
150 dest: 'dist/css/tiny.min.css'
153 src: 'dist/css/seitenaufteilung.css',
154 dest: 'dist/css/seitenaufteilung.min.css'
157 src: 'dist/css/seitenkopf.css',
158 dest: 'dist/css/seitenkopf.min.css'
164 files: [ 'dist/less/**/*.less' ],
172 // Task to build and minify the CSS
173 grunt.registerTask('css', [ 'less', 'newer:cssmin' ]);
175 // Task to build the distribution
176 grunt.registerTask('dist', [ 'css' ]);
179 // Task to start a local http-server for development
180 grunt.registerTask('http-server', function() {
183 cmd: 'node_modules/http-server/bin/http-server',
184 args: [ 'dist', '-c0' ],
185 opts: { stdio: 'inherit' }
190 // Task to start development-environment
191 grunt.registerTask('devel', [ 'dist', 'http-server', 'watch' ]);
195 grunt.registerTask('default', [ 'dist' ]);