Skip to content

Commit 479aca5

Browse files
nschonnijzaefferer
authored andcommitted
Update Grunt build paths
Add the concat path for the default task as the files will need to be rebuilt before they can be tested now
1 parent 75b6b36 commit 479aca5

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Gruntfile.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ grunt.initConfig({
99
// used to copy to dist folder
1010
dist: {
1111
files: {
12-
'dist/jquery.validate.js': ['jquery.validate.js'],
13-
'dist/additional-methods.js': ['additional-methods.js']
12+
'dist/jquery.validate.js': ['src/core.js', 'src/*.js'],
13+
'dist/additional-methods.js': ['src/additional/additional.js', 'src/additional/*.js']
1414
}
1515
}
1616
},
@@ -43,7 +43,7 @@ grunt.initConfig({
4343
'package.json',
4444
'demo/**/*.*',
4545
'lib/**/*.*',
46-
'localization/**/*.*',
46+
'src/localization/*.js',
4747
'test/**/*.*'
4848
],
4949
dest: 'dist/<%= pkg.name %>-<%= pkg.version %>.zip'
@@ -76,9 +76,7 @@ grunt.initConfig({
7676
}
7777
},
7878
files: [
79-
'jquery.validate.js',
80-
'additional-methods.js',
81-
'localization/*.js'
79+
'src/**/*.js'
8280
],
8381
test: {
8482
options: {
@@ -122,7 +120,7 @@ grunt.loadNpmTasks('grunt-contrib-uglify');
122120
grunt.loadNpmTasks('grunt-contrib-concat');
123121
grunt.loadNpmTasks('grunt-zipstream');
124122

125-
grunt.registerTask('default', ['jshint', 'qunit']);
126-
grunt.registerTask('release', ['default', 'concat', 'uglify', 'zip']);
123+
grunt.registerTask('default', ['concat', 'jshint', 'qunit']);
124+
grunt.registerTask('release', ['default', 'uglify', 'zip']);
127125

128126
};

0 commit comments

Comments
 (0)