You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					19 lines
				
				430 B
			
		
		
			
		
	
	
					19 lines
				
				430 B
			| 
								 
											3 years ago
										 
									 | 
							
								var gulp = require('gulp');
							 | 
						||
| 
								 | 
							
								var mocha = require('gulp-mocha');
							 | 
						||
| 
								 | 
							
								var config = require('./package.json');
							 | 
						||
| 
								 | 
							
								var jscs = require('gulp-jscs');
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								gulp.task('mocha', function() {
							 | 
						||
| 
								 | 
							
								  return gulp.src('./test/*').
							 | 
						||
| 
								 | 
							
								    pipe(mocha({ reporter: 'dot' }));
							 | 
						||
| 
								 | 
							
								});
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								gulp.task('jscs', function() {
							 | 
						||
| 
								 | 
							
								  return gulp.src('./index.js').
							 | 
						||
| 
								 | 
							
								    pipe(jscs(config.jscsConfig));
							 | 
						||
| 
								 | 
							
								});
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								gulp.task('watch', function() {
							 | 
						||
| 
								 | 
							
								  gulp.watch('./index.js', ['jscs', 'mocha']);
							 | 
						||
| 
								 | 
							
								});
							 |