GenFirst/react-twitter-login

View on GitHub
example/backend/gulpfile.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

var gulp = require('gulp'),
  eslint = require('gulp-eslint'),
  nodemon = require('gulp-nodemon');


//test the quality of the code with ESLint
gulp.task('lint', function () {
  return gulp.src(['**/*.js', '!node_modules/**'])
    .pipe(eslint())
    .pipe(eslint.formatEach())
    .pipe(eslint.failAfterError());
});

gulp.task('develop', function () {
  nodemon({
    exec: 'node --inspect',
    script: 'server.js',
    ext: 'html js',
    tasks: ['lint'],
    env: {'NODE_ENV': 'development'}
  });
});