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

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

Reorganized for Node --- the SVN gods hate us all!

Lost all historical info on moved files, because SVN is a f *.

Also we have Node now, serving both the static content and forwarding
database requests.

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: false,
11                dumpLineNumbers: "all"
12            },
13            all: {
14                files: {
15                    'qed-client/css/qed.css': 'qed-client/css/qed.less'
16                }
17            }
18        },
19        jshint: {
20            options: {
21                jshintrc: ".jshintrc"
22            },
23            all: {
24                files: {
25                    src: ['qed**/*.js', '!node_modules/**']
26                }
27            }
28        },
29        htmlhint: {
30            options: {
31                htmlhintrc: ".htmlhintrc"
32            },
33            all: {
34                files: {
35                    src: ['*.html', 'qed**/*.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.