~openerp-dev/openerp-web/trunk-customfilter-jir

« back to all changes in this revision

Viewing changes to addons/web/Gruntfile.js

  • Committer: Vidhin Mehta
  • Date: 2013-09-02 08:57:36 UTC
  • mfrom: (3747.2.76 openerp-web)
  • Revision ID: vme@tinyerp.com-20130902085736-rle0km7c5kxxi31o
[MERGE]Trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
module.exports = function(grunt) {
 
2
 
 
3
    grunt.initConfig({
 
4
        jshint: {
 
5
            src: ['static/src/**/*.js', 'static/test/**/*.js'],
 
6
            options: {
 
7
                sub: true, //[] instead of .
 
8
                evil: true, //eval
 
9
                laxbreak: true, //unsafe line breaks
 
10
            },
 
11
        },
 
12
        sass: {
 
13
            dev: {
 
14
                options: {
 
15
                    style: "expanded",
 
16
                },
 
17
                files: {
 
18
                    "static/src/css/base.css": "static/src/css/base.sass",
 
19
                }
 
20
            }
 
21
        },
 
22
        watch: {
 
23
            sass: {
 
24
                files: ["static/src/css/base.sass"],
 
25
                tasks: ['sass']
 
26
            },
 
27
        }
 
28
    });
 
29
 
 
30
    grunt.loadNpmTasks('grunt-contrib-jshint');
 
31
    grunt.loadNpmTasks('grunt-contrib-sass');
 
32
    grunt.loadNpmTasks('grunt-contrib-watch');
 
33
 
 
34
    grunt.registerTask('gen', ["sass"]);
 
35
    grunt.registerTask('watcher', ["gen", "watch"]);
 
36
    grunt.registerTask('test', []);
 
37
 
 
38
    grunt.registerTask('default', ['jshint']);
 
39
 
 
40
};
 
 
b'\\ No newline at end of file'