forked from dwa012/html5-qrcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
53 lines (49 loc) · 1.78 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
44
45
46
47
48
49
50
51
52
53
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
dist: {
files: {
'lib/jsqrcode-combined.min.js': [
"src/jsqrcode/src/grid.js",
"src/jsqrcode/src/version.js",
"src/jsqrcode/src/detector.js",
"src/jsqrcode/src/formatinf.js",
"src/jsqrcode/src/errorlevel.js",
"src/jsqrcode/src/bitmat.js",
"src/jsqrcode/src/datablock.js",
"src/jsqrcode/src/bmparser.js",
"src/jsqrcode/src/datamask.js",
"src/jsqrcode/src/rsdecoder.js",
"src/jsqrcode/src/gf256poly.js",
"src/jsqrcode/src/gf256.js",
"src/jsqrcode/src/decoder.js",
"src/jsqrcode/src/QRCode.js",
"src/jsqrcode/src/findpat.js",
"src/jsqrcode/src/alignpat.js",
"src/jsqrcode/src/databr.js",
],
'lib/html5-qrcode.min.js': ['src/html5-qrcode.js']
},
options: {
beautify: false,
mangle: false,
sourceMap: false
}
}
},
watch: {
js: {
files: ['src/*.js']
}
}
});
// Load the plugin that provides the tasks.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
// Default task(s).
grunt.registerTask('default', [
'uglify'
]);
};