-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
43 lines (40 loc) · 1.51 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
38
39
40
41
42
43
module.exports = function(grunt) {
grunt.initConfig({
compress: {
main: {
options: {
mode: 'zip',
level: 2,
archive: 'TeamCityGadget.zip'
},
files: [
{expand: true, cwd: 'src/', src: ['css/**'], dest: '/'},
{expand: true, cwd: 'src/', src: ['images/**'], dest: '/'},
{expand: true, cwd: 'src/', src: ['scripts/**'], dest: '/'},
{expand: true, cwd: 'src/', src: ['drag.png'], dest: '/'},
{expand: true, cwd: 'src/', src: ['flyout_details.html'], dest: '/'},
{expand: true, cwd: 'src/', src: ['gadget.html'], dest: '/'},
{expand: true, cwd: 'src/', src: ['gadget.xml'], dest: '/'},
{expand: true, cwd: 'src/', src: ['icon.png'], dest: '/'},
{expand: true, cwd: 'src/', src: ['settings.html'], dest: '/'}
]
}
},
rename: {
moveThis: {
src: 'TeamCityGadget.zip',
dest: './dist/TeamCityGadget.gadget'
}
},
carma: {
unit: {
configFile: 'karma.conf.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-rename');
grunt.loadNpmTasks('grunt-karma');
grunt.registerTask('default', ['compress','rename']);
grunt.registerTask('test', ['carma']);
};