planetoftheweb / responsivebootstrap

This is the repository for my course, Bootstrap Layouts: Responsive Single-Page Design on LinkedIn Learning and Lynda.com.
https://www.linkedin.com/learning/bootstrap-layouts-responsive-single-page-design?trk=insiders_6787408_learning
Other
49 stars 58 forks source link

Error: getaddrinfo ENOTFOUND validator.w3.org validator.w3.org:80 #4

Open ravishankarbanka opened 6 years ago

ravishankarbanka commented 6 years ago

Hi, I am not able to start the gulp server, it seems like it is trying to connect to validator.w3.org as I am behing corporate proxy. it is not able to connect.

can I disable this validation?

Regards,

ravishankarbanka commented 6 years ago

I commented line 5 and 17. hope to keep going hope the changes are fine...


var gulp = require('gulp'),
    gutil = require('gulp-util'),
    stylish = require('jshint-stylish'),
    jshint = require('gulp-jshint'),
    //w3cjs = require('gulp-w3cjs'), --- line 5
    prettify = require('gulp-jsbeautifier'),
    webserver = require('gulp-webserver');

gulp.task('js', function() {
  return gulp.src('builds/development/js/myscript.js')
    .pipe(jshint('./.jshintrc'))
    .pipe(jshint.reporter('jshint-stylish'));
});

gulp.task('html', function() {
    gulp.src('builds/development/*.html');
   //     .pipe(w3cjs());   //---line 17
});

gulp.task('css', function() {
    gulp.src('builds/development/css/*.css')
});

gulp.task('watch', function() {
    gulp.watch('builds/development/js/**/*', ['js']);
    gulp.watch('builds/development/css/*.css', ['css']);
    gulp.watch(['builds/development/*.html',
        'builds/development/views/*.html'
    ], ['html']);
});

gulp.task('webserver', function() {
    gulp.src('builds/development/')
        .pipe(webserver({
            livereload: true,
            open: true
        }));
});

gulp.task('default', ['watch', 'html', 'js', 'css', 'webserver']);