Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. gulp.task('checkScssSyntax', function() {
  2. return gulp.src(scssFiles)
  3. .pipe(sassLint())
  4. .pipe(sassLint.format());
  5. });
  6.  
  7. gulp.task('checkJavascriptSyntax', function() {
  8. var jsStream = gulp.src(jsFiles);
  9. return jsStream.pipe(jsHint())
  10. .pipe(jsHint.reporter('jshint-stylish'));
  11. });
  12.  
  13. gulp.task('default', function() {
  14. runSequence(['checkJavascriptSyntax', 'checkScssSyntax'], function(error) {
  15. if (error) {
  16. console.log(error);
  17. } else {
  18. runSequence('compileJS', 'compileCSS', 'watch');
  19. }
  20. });
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement