-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgruntfile.js
More file actions
49 lines (47 loc) · 827 Bytes
/
gruntfile.js
File metadata and controls
49 lines (47 loc) · 827 Bytes
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
module.exports = function(grunt){
grunt.initConfig({
//configure tasks here
copy: {
release: {
src: ['*.html','*.pdf'],
dest: 'release/'
},
css: {
src: 'css/*.css',
dest: 'release/'
},
images: {
src: 'images/*.*',
dest: 'release/'
},
js: {
src: 'js/*.js',
dest: 'release/'
}
},
jshint: {
files: ["js/*.js"]
},
jsdoc: {
dist: {
src: ['js/*.js'],
dest: 'doc'
}
},
jasmine: {
test: {
src: ['js/*.js'],
options: {
specs: 'test/*.js'
}
}
}
});
//load plugins here
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-contrib-jasmine');
//register tasks here
grunt.registerTask('default', ['jshint', 'copy']);
};