-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
55 lines (45 loc) · 1.1 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
var gulp = require('gulp');
var sass = require('gulp-sass');
var ftp = require('gulp-ftp');
var connect = require('gulp-connect');
var paths = {
sass: ['./css/scss/**/*.scss'],
css: './css/compiled',
html: ['./*.html']
};
gulp.task('ftp', function () {
gulp.src(paths.css + "/*.css")
.pipe(ftp({
host: 'ftp.wellencpa.com',
user: 'cwellen01',
pass: 'Parsons1'
}));
});
gulp.task('connect', function () {
connect.server({
root: './',
livereload: true
});
});
gulp.task('sass', function () {
gulp.src(paths.sass)
.pipe(sass())
.pipe(gulp.dest(paths.css))
.pipe(connect.reload());
});
gulp.task('css', function() {
gulp.src(paths.css)
.pipe(connect.reload());
});
gulp.task('dist', function() {
});
gulp.task('html', function () {
gulp.src('./*.html')
.pipe(connect.reload());
});
gulp.task('watch', function () {
gulp.watch(paths.sass, ['sass']);
gulp.watch(paths.css, ['css']);
gulp.watch(paths.html, ['html']);
});
gulp.task('default', ['connect', 'watch']);