-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
34 lines (29 loc) · 1022 Bytes
/
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
var gulp = require('gulp'),
gutil = require('gulp-util'),
shell = require('gulp-shell'),
sass = require('gulp-sass');
gulp.task('js', function(){
return gulp.src('components/js/**/*.js')
.pipe(gulp.dest('build/js'));
});
gulp.task('sass', function (){
return gulp.src('components/sass/styles.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('build/css'));
});
gulp.task('html', function(){
return gulp.src('components/**/*.html')
.pipe(gulp.dest('build'));
});
// This task will only work for KBIA.
gulp.task('upload', shell.task([
'aws s3 cp build s3://apps.nathanlawrence.org/sfx/high-price/toc --recursive --profile nl'
]));
gulp.task('watch',function(){
gutil.log('Gulp will say that this task has finished, but don\'t believe its dirty lies.');
gutil.log('Hit \^c to actually exit watch mode.');
gulp.watch('components/sass/**/*.scss',['sass']);
gulp.watch('components/**/*.js',['js']);
gulp.watch('components/**/*.html',['html']);
gulp.watch('components/**/*.jpg',['img']);
});