Skip to content

Commit 7386692

Browse files
committed
Adding JSHint to custom JavaScript.
1 parent d87553a commit 7386692

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

Gruntfile.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@ module.exports = function(grunt) {
141141
files: {
142142
src: ['gruntfile.js']
143143
}
144+
},
145+
concat_before: {
146+
files: {
147+
src: ['<%= dirs.js_src %>/**/*.js']
148+
}
149+
},
150+
concat_after: {
151+
files: {
152+
src: ['<%= dirs.js_dist %>/seg_resume.js']
153+
}
144154
}
145155
},
146156
watch: {
@@ -152,7 +162,7 @@ module.exports = function(grunt) {
152162
files: [
153163
"<%= dirs.js_src %>/*.js"
154164
],
155-
tasks: [ "concat:custom", "uglify:custom" ],
165+
tasks: [ "jshint:concat_before", "concat:custom", "jshint:concat_after", "uglify:custom" ],
156166
},
157167
less: {
158168
files: [

0 commit comments

Comments
 (0)