cms/drupal/profiles/drustack/libraries/modernizr/grunt.js
changeset 541 e756a8c72c3d
equal deleted inserted replaced
540:07239de796bb 541:e756a8c72c3d
       
     1 /*global module */
       
     2 module.exports = function( grunt ) {
       
     3     'use strict';
       
     4 
       
     5     grunt.initConfig({
       
     6         meta: {
       
     7           version: '2.8.3',
       
     8           banner: '/*!\n' +
       
     9             ' * Modernizr v<%= meta.version %>\n' +
       
    10             ' * www.modernizr.com\n *\n' +
       
    11             ' * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton\n' +
       
    12             ' * Available under the BSD and MIT licenses: www.modernizr.com/license/\n */'
       
    13         },
       
    14         qunit: {
       
    15             files: ['test/index.html']
       
    16         },
       
    17         lint: {
       
    18             files: [
       
    19                 'grunt.js',
       
    20                 'modernizr.js',
       
    21                 'feature-detects/*.js'
       
    22             ]
       
    23         },
       
    24         min: {
       
    25             dist: {
       
    26                 src: [
       
    27                     '<banner:meta.banner>',
       
    28                     'modernizr.js'
       
    29                 ],
       
    30                 dest: 'modernizr.min.js'
       
    31             }
       
    32         },
       
    33         watch: {
       
    34             files: '<config:lint.files>',
       
    35             tasks: 'lint'
       
    36         },
       
    37         jshint: {
       
    38             options: {
       
    39                 boss: true,
       
    40                 browser: true,
       
    41                 curly: false,
       
    42                 devel: true,
       
    43                 eqeqeq: false,
       
    44                 eqnull: true,
       
    45                 expr: true,
       
    46                 evil: true,
       
    47                 immed: false,
       
    48                 laxcomma: true,
       
    49                 newcap: false,
       
    50                 noarg: true,
       
    51                 smarttabs: true,
       
    52                 sub: true,
       
    53                 undef: true
       
    54             },
       
    55             globals: {
       
    56                 Modernizr: true,
       
    57                 DocumentTouch: true,
       
    58                 TEST: true,
       
    59                 SVGFEColorMatrixElement : true,
       
    60                 Blob: true
       
    61             }
       
    62         }
       
    63     });
       
    64 
       
    65     grunt.registerTask('default', 'min');
       
    66 
       
    67     // Travis CI task.
       
    68     grunt.registerTask('travis', 'qunit');
       
    69 };