-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
52 lines (41 loc) · 989 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
45
46
47
48
49
50
51
52
/*global module*/
module.exports = function(grunt) {
"use_strict";
grunt.initConfig({
jshint: {
all: ['Gruntfile.js', 'spec/**/*.js', 'lib/**/*.js'],
options: {
jshintrc: '.jshintrc'
}
},
mkdir: {
all: {
options: {
create: ['tmp']
}
}
},
clientside: {
main: {
main: 'lib/closet.js',
name: 'closet',
output: 'tmp/closet.js'
}
},
jasmine: {
src: 'tmp/closet.js',
options: {
specs: 'spec/**/*_spec.js',
helpers: 'spec/helpers/*.js'
}
},
clean: ['tmp/']
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-clientside');
grunt.loadNpmTasks('grunt-mkdir');
grunt.registerTask('test', ['jshint', 'mkdir', 'clientside', 'jasmine', 'clean']);
grunt.registerTask('default', ['test']);
};