forked from willscott/grunt-jasmine-chromeapp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
44 lines (38 loc) · 911 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*jslint node:true*/
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/**/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
jasmine_chromeapp: {
selftest: {
files: [ { src: ['test/*.js'] } ],
scripts: ['test/selftest.js'],
options: {
outDir: '.build/self-test1/'
}
},
selftest2: {
files: [
{ cwd: 'test', src: ['selftest.js'] },
{ src: ['test/helper.js'], dest: 'test/helper.js' }
],
scripts: ['selftest.js'],
options: {
outDir: '.build/self-test2/'
}
}
}
});
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('test', ['jshint', 'jasmine_chromeapp']);
grunt.registerTask('default', ['test']);
};