Skip to content

Commit 7fdb7a1

Browse files
committed
Improved code style
1 parent 58ade7a commit 7fdb7a1

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

gulpfile.js

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
1-
var gulp = require('gulp');
2-
var lr = require('gulp-livereload');
3-
var gif = require('gulp-if');
4-
var lr = require('gulp-livereload');
5-
var cached = require('gulp-cached');
6-
var uglify = require('gulp-uglify');
7-
var stylus = require('gulp-stylus');
8-
var nib = require('nib');
9-
var jeet = require('jeet');
10-
var autoprefixer = require('autoprefixer-stylus');
11-
var deploy = require('gulp-gh-pages');
1+
const gulp = require('gulp')
2+
const lr = require('gulp-livereload')
3+
const gif = require('gulp-if')
4+
const cached = require('gulp-cached')
5+
const uglify = require('gulp-uglify')
6+
const stylus = require('gulp-stylus')
7+
const nib = require('nib')
8+
const jeet = require('jeet')
9+
const autoprefixer = require('autoprefixer-stylus')
10+
const deploy = require('gulp-gh-pages')
1211

13-
gulp.task('deploy', function(){
12+
gulp.task('deploy', () => {
1413
return gulp.src('dist/**/*')
1514
.pipe(deploy({
1615
branch: 'master'
17-
}));
18-
});
16+
}))
17+
})
1918

20-
gulp.task('default', function(){
19+
gulp.task('default', () => {
2120
return gulp.src('src/**/*')
2221
.pipe(cached('build'))
2322
.pipe(gif('*.styl', stylus({
24-
use:[
23+
use: [
2524
nib(),
2625
jeet(),
2726
autoprefixer()
2827
]
2928
})))
3029
.pipe(gif('*.js', uglify()))
3130
.pipe(gulp.dest('dist'))
32-
.pipe(lr());
33-
});
31+
.pipe(lr())
32+
})
3433

35-
gulp.watch('src/**/*', ['default']);
36-
lr.listen();
34+
gulp.watch('src/**/*', ['default'])
35+
lr.listen()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy