/
Gruntfile.js
37 lines (34 loc) · 1.05 KB
/
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
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: ".jshintrc"
},
files: ['Gruntfile.js', 'src/**/*.js']
},
testem: {
unit: {
options: {
framework: "jasmine2",
before_tests: "grunt jshint",
launch_in_dev: ["PhantomJS"],
src: [
'bower_components/lodash/dist/lodash.js',
'bower_components/jquery/dist/jquery.js',
'src/**/*.js',
'test/*.js',
'test/**/*.js'
],
watch_files: [
'src/**/*.js',
'test/**/*.js'
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-testem');
grunt.registerTask('default', ['testem:run:unit']);
};