replace jshint + jscs with eslint

This commit is contained in:
Riku Rouvila
2015-05-21 22:59:33 +03:00
parent 008ee37e94
commit 78fc56bf7f
4 changed files with 224 additions and 11 deletions

View File

@@ -65,9 +65,10 @@ gulp.task('scripts', function() {
.on('error', handleError)
.pipe(source(config.scripts.filename));
if (production) {
if(production) {
pipeline = pipeline.pipe(streamify(uglify()));
}
return pipeline.pipe(gulp.dest(config.scripts.destination));
});
@@ -91,7 +92,7 @@ gulp.task('templates', function() {
gulp.task('styles', function() {
var pipeline = gulp.src(config.styles.source);
if (!production) {
if(!production) {
pipeline = pipeline.pipe(sourcemaps.init());
}
@@ -102,13 +103,13 @@ gulp.task('styles', function() {
.on('error', handleError)
.pipe(prefix('last 2 versions', 'Chrome 34', 'Firefox 28', 'iOS 7'));
if (!production) {
if(!production) {
pipeline = pipeline.pipe(sourcemaps.write('.'));
}
pipeline = pipeline.pipe(gulp.dest(config.styles.destination));
if (production) {
if(production) {
return pipeline;
}