Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Upgrade to onevar linting
[qunit.git] / grunt.js
1 /*global config:true, task:true*/
2 module.exports = function( grunt ) {
3
4 grunt.initConfig({
5         pkg: '<json:package.json>',
6         qunit: {
7                 // TODO include 'test/logs.html' as well
8                 files: ['test/index.html']
9         },
10         lint: {
11                 qunit: 'qunit/qunit.js',
12                 grunt: 'grunt.js'
13                 // TODO need to figure out which warnings to fix and which to disable
14                 // tests: 'test/*.js'
15         },
16         jshint: {
17                 qunit: {
18                         options: {
19                                 onevar: true,
20                                 browser: true,
21                                 bitwise: true,
22                                 curly: true,
23                                 trailing: true,
24                                 immed: true,
25                                 latedef: false,
26                                 newcap: true,
27                                 noarg: false,
28                                 noempty: true,
29                                 nonew: true,
30                                 sub: true,
31                                 undef: true,
32                                 eqnull: true,
33                                 proto: true
34                         },
35                         globals: {
36                                 jQuery: true,
37                                 exports: true
38                         }
39                 },
40                 tests: {
41                         tests: {
42                                 globals: {
43                                         module: true,
44                                         test: true,
45                                         ok: true,
46                                         equal: true,
47                                         deepEqual: true,
48                                         QUnit: true
49                                 }
50                         }
51                 }
52         }
53 });
54
55 // Default task.
56 grunt.registerTask('default', 'lint qunit');
57
58 };

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf