Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gulp.task('checkScssSyntax', function() {
- return gulp.src(scssFiles)
- .pipe(sassLint())
- .pipe(sassLint.format());
- });
- gulp.task('checkJavascriptSyntax', function() {
- var jsStream = gulp.src(jsFiles);
- return jsStream.pipe(jsHint())
- .pipe(jsHint.reporter('jshint-stylish'));
- });
- gulp.task('default', function() {
- runSequence(['checkJavascriptSyntax', 'checkScssSyntax'], function(error) {
- if (error) {
- console.log(error);
- } else {
- runSequence('compileJS', 'compileCSS', 'watch');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement