Skip to content

Commit 6b1e8b9

Browse files
author
tom bertrand
committed
- Fixed issue when formData was not returning number type but string instead
- Fixed Grunt issue
1 parent ba4073a commit 6b1e8b9

File tree

5 files changed

+238
-285
lines changed

5 files changed

+238
-285
lines changed

Gruntfile.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = function (grunt) {
3939
singleline: true,
4040
multiline: true
4141
},
42-
src: [ 'dist/*.js']
42+
src: [ 'dist/jquery.validation.js']
4343
}
4444
},
4545

@@ -64,7 +64,7 @@ module.exports = function (grunt) {
6464
options: {
6565
patterns: [
6666
{
67-
match: /\s?\{debug\}[\s\S]*?\{\/debug\}/g,
67+
match: /\/\/\s?\{debug}[\s\S]*?\{\/debug}/g,
6868
replacement: ''
6969
}
7070
]
@@ -80,7 +80,7 @@ module.exports = function (grunt) {
8080
options: {
8181
patterns: [
8282
{
83-
match: /\/\*[^!][\S\s]+?\*\/[\r\n]?/gm,
83+
match: /\/\*[^!][\S\s]+?\*\//gm,
8484
replacement: ''
8585
}
8686
]
@@ -94,6 +94,12 @@ module.exports = function (grunt) {
9494
}
9595
},
9696

97+
jsbeautifier : {
98+
files : ['dist/jquery.validation.js'],
99+
options : {
100+
}
101+
},
102+
97103
uglify: {
98104
dist: {
99105
options: {
@@ -114,6 +120,7 @@ module.exports = function (grunt) {
114120
grunt.loadNpmTasks('grunt-contrib-copy');
115121
grunt.loadNpmTasks('grunt-stripcomments');
116122
grunt.loadNpmTasks('grunt-replace');
123+
grunt.loadNpmTasks("grunt-jsbeautifier");
117124
grunt.loadNpmTasks('grunt-contrib-uglify');
118125

119126
grunt.registerTask('default', [
@@ -122,6 +129,7 @@ module.exports = function (grunt) {
122129
'copy:dist',
123130
'comments',
124131
'replace:removeComments',
132+
'jsbeautifier',
125133
'replace:removeDebug',
126134
'uglify'
127135
]);

0 commit comments

Comments
 (0)