source: Dev/trunk/src/Gruntfile.js @ 452

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

Completed separation of client and server.

File size: 1.2 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: false,
11                dumpLineNumbers: "all"
12            },
13            all: {
14                files: {
15                    'client/qed-client/css/qed.css': 'client/qed-client/css/qed.less'
16                }
17            }
18        },
19        jshint: {
20            options: {
21                jshintrc: ".jshintrc"
22            },
23            all: {
24                files: {
25                    src: ['client/qed-client/**/*.js', 'server/**.js', '!**/node_modules/**']
26                }
27            }
28        },
29        htmlhint: {
30            options: {
31                htmlhintrc: ".htmlhintrc"
32            },
33            all: {
34                files: {
35                    src: ['*.html', 'client/qed-client/**.html', '!**/node_modules/**']
36                }
37            }
38        }
39    });
40
41    grunt.loadNpmTasks('grunt-contrib-less');
42    grunt.loadNpmTasks('grunt-contrib-jshint');
43    grunt.loadNpmTasks('grunt-htmlhint');
44
45    grunt.registerTask('default', ['less', 'jshint', 'htmlhint']);
46};
Note: See TracBrowser for help on using the repository browser.