forked from igorescobar/jQuery-Mask-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
58 lines (54 loc) · 1.39 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
54
55
56
57
58
module.exports = function(grunt) {
grunt.initConfig({
connect: {
server: {
options: {
port: 9001,
base: './'
}
}
},
qunit: {
all: {
options: {
urls: [
'http://localhost:9001/test/test-for-jquery-1.11.1.html',
'http://localhost:9001/test/test-for-jquery-1.7.2.html',
'http://localhost:9001/test/test-for-jquery-1.8.3.html',
'http://localhost:9001/test/test-for-jquery-1.9.1.html',
'http://localhost:9001/test/test-for-jquery-2.1.1.html',
// 'http://localhost:9001/test/test-for-zepto.html'
]
}
}
},
clean : {
dist: 'dist/'
},
copy : {
main : {
expand: true,
cwd: 'src/',
src: ['jquery.mask.js'],
dest: 'dist/'
}
},
uglify : {
options : {
report: 'min'
},
dist : {
src : 'src/jquery.mask.js',
dest : 'dist/jquery.mask.min.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-clean');
// A convenient task alias.
grunt.registerTask('test', ['connect', 'qunit']);
grunt.registerTask('default', ['clean', 'copy', 'uglify'])
};