avoid glob negations with gulp will reduce running time for gulp jshint from 13s to 3.5s
				
					
				
			Also this brings down total time of build (running `gulp`) from 33s to 23s
This commit is contained in:
		
							parent
							
								
									86d52cfe85
								
							
						
					
					
						commit
						c70d6ce12c
					
				
							
								
								
									
										13
									
								
								Gulpfile.js
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Gulpfile.js
									
									
									
									
									
								
							| @ -37,12 +37,13 @@ gulp.task('constants', function() { | |||||||
| 
 | 
 | ||||||
| gulp.task('jshint', function() { | gulp.task('jshint', function() { | ||||||
| 	return gulp.src([ | 	return gulp.src([ | ||||||
| 		'./**/*.js', | 		'./*.js', | ||||||
| 		'!./node_modules/**/*.js', | 		'./app/**/*.js', | ||||||
| 		'!./public/libs/**/*.js', | 		'./public/res/classes/**/*.js', | ||||||
| 		'!./public/res/libs/**/*.js', | 		'./public/res/extensions/**/*.js', | ||||||
| 		'!./public/res/bower-libs/**/*.js', | 		'./public/res/helpers/**/*.js', | ||||||
| 		'!./public/res-min/**/*.js' | 		'./public/res/providers/**/*.js', | ||||||
|  | 		'./public/res/*.js' | ||||||
| 	]) | 	]) | ||||||
| 		.pipe(jshint()) | 		.pipe(jshint()) | ||||||
| 		.pipe(jshint.reporter('default')) | 		.pipe(jshint.reporter('default')) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jesper Rønn-Jensen
						Jesper Rønn-Jensen