source: Dev/trunk/client/qed/Gruntfile.js @ 432

Last change on this file since 432 was 432, checked in by hendrikvanantwerpen, 12 years ago

Split up and re-organized LESS. Not sure how it all works yet though.

File size: 1.1 KB
Line 
1var fs = require('fs');
2var path = require('path');
3
4module.exports = function(grunt) {
5
6    grunt.initConfig({
7        pkg: grunt.file.readJSON('package.json'),
8        less: {
9            options: {
10                strictImports: true
11            },
12            all: {
13                files: {
14                    'css/qed.css': 'css/qed.less'
15                }
16            }
17        },
18        jshint: {
19            options: {
20                jshintrc: ".jshintrc"
21            },
22            all: {
23                files: {
24                    src: ['**/*.js', '!node_modules/**']
25                }
26            }
27        },
28        htmlhint: {
29            options: {
30                htmlhintrc: ".htmlhintrc"
31            },
32            all: {
33                files: {
34                    src: ['**/*.html', '!node_modules/**']
35                }
36            }
37        }
38    });
39
40    grunt.loadNpmTasks('grunt-contrib-less');
41    grunt.loadNpmTasks('grunt-contrib-jshint');
42    grunt.loadNpmTasks('grunt-htmlhint');
43
44    grunt.registerTask('default', ['less', 'jshint', 'htmlhint']);
45};
Note: See TracBrowser for help on using the repository browser.