This repository has been archived by the owner on Dec 11, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
gruntfile.js
62 lines (53 loc) · 1.55 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
59
60
61
62
"use strict";
module.exports = function( grunt ) {
grunt.initConfig({
// TODO: change to read component.json
pkg: require('./package.json'),
uglify: {
options: {
banner: '/*\n <%= pkg.description %>\n Copyright (c) 2007 - <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)\n Version: <%= pkg.version %>\n*/\n'
},
dev: {
options: {
beautify: true,
mangle: false
},
files: {
'dist/jquery.maskedinput.js': ['src/jquery.maskedinput.js']
}
},
min: {
files: {
'dist/jquery.maskedinput.min.js': ['src/jquery.maskedinput.js']
}
}
},
jasmine: {
full: {
src: "src/**/*.js",
options: {
specs: "spec/*[S|s]pec.js",
vendor: [
"spec/lib/matchers.js",
"spec/lib/jasmine-species/jasmine-grammar.js",
"spec/lib/setup.js",
"lib/jquery-1.9.0.min.js",
"spec/lib/jquery.keymasher.js"
]
}
}
},
nugetpack: {
dist: {
src: 'jquery.maskedinput.nuspec',
dest: 'dist/'
}
}
});
grunt.loadNpmTasks("grunt-contrib-jasmine");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks('grunt-nuget');
grunt.registerTask('test', ['jasmine']);
grunt.registerTask('pack', ['default','nugetpack']);
grunt.registerTask('default', ['test', 'uglify']);
};