-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.js
42 lines (40 loc) · 991 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
karma: {
unit: {
configFile: 'karma.js'
}
},
concat: {
options: {
separator: '\n',
},
dist: {
src: [
'src/module.js',
'src/service/location.js',
'src/service/scroller.js',
'src/service/scroll_detector.js',
'src/service/viewport.js',
'src/service/config.js',
'src/directive/slides.js'
],
dest: 'dist/msl_slides.js',
},
},
uglify: {
my_target: {
files: {
'dist/msl_slides.min.js': [ 'dist/msl_slides.js' ]
}
}
}
});
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('test', ['karma']);
grunt.registerTask('build', ['concat', 'uglify']);
grunt.registerTask('default', []);
};