forked from auduno/clmtrackr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
46 lines (44 loc) · 979 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
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.initConfig({
concat: {
dist: {
src: [
'js/license.js',
'js/clm.js',
'js/svmfilter_webgl.js',
'js/svmfilter_fft.js',
'js/mossefilter.js',
'examples/ext_js/left_eye_filter.js',
'examples/ext_js/right_eye_filter.js',
'examples/ext_js/nose_filter.js',
'examples/ext_js/numeric-1.2.6.js',
'examples/ext_js/jsfeat-min.js',
'examples/ext_js/frontalface.js',
'examples/ext_js/jsfeat_detect.js',
'examples/ext_js/mosse.js',
],
dest: './clmtrackr.js'
}
},
uglify: {
options: {
report: 'gzip',
preserveComments: 'false',
mangle: {
except: ['clmtrackr']
}
},
dist: {
src: ['./clmtrackr.js'],
dest: './clmtrackr.min.js'
}
}
});
// Default task.
grunt.registerTask('default', [
'concat',
'uglify'
]);
};