Skip to content

Commit 5465cba

Browse files
committed
Grunt tasks changes
Remove jshint:dist from the build step - we should not care about it, it's just a compilation result. Add jshint:src to the build task.
1 parent ef2dfff commit 5465cba

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

Gruntfile.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ module.exports = function (grunt) {
118118
jshintrc: '.jshintrc'
119119
}
120120
},
121+
src: {
122+
files: {
123+
src: [
124+
'./src/ui-scroll.js',
125+
'./src/ui-scroll-jqlite.js'
126+
]
127+
},
128+
options: grunt.util._.extend({}, grunt.file.readJSON('.jshintrc'), grunt.file.readJSON('./src/.jshintrc'))
129+
},
121130
test: {
122131
files: {
123132
src: ['./test/*Spec.js']
@@ -157,16 +166,22 @@ module.exports = function (grunt) {
157166

158167
grunt.registerTask('default', ['server']);
159168

160-
grunt.registerTask('test', ['babel', 'karma:unit']);
169+
grunt.registerTask('test', [
170+
'babel',
171+
'karma:unit'
172+
]);
161173

162174
grunt.registerTask('build', [
163175
'jshint:test',
176+
'jshint:src',
164177
'babel',
165178
'karma:travis',
166179
'concat',
167-
'jshint:dist',
168180
'uglify:common'
169181
]);
170182

171-
grunt.registerTask('travis', ['babel', 'karma:travis']);
183+
grunt.registerTask('travis', [
184+
'babel',
185+
'karma:travis'
186+
]);
172187
};

0 commit comments

Comments
 (0)