Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

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

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