We'll go ahead and name this task jshint, and in the second argument of this task inside the function we'll go ahead and specify the files that we're going to be linting with gulp jshint. Now we can use it, so first thing we'll do is create a new task, which is gulp.task. Once the npm install is done, we'll include it in our gulp file by typing in jshint = require('gulp-jshint'). What jshint is going to allow us to do is lint all our JavaScript files and check for errors and warnings. So to start using jshint with gulp we're going to run npm install gulp -jshint.
0 Comments
Leave a Reply. |