Created
November 21, 2015 13:26
-
-
Save brookslyrette/d43e2edd10337eb7caf6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
gulp.task('styles', function() { | |
//compile and copy our sass file | |
gulp.src('src/main/sass/**/*.scss') | |
.pipe(sass().on('error', sass.logError)) | |
.pipe(gulp.dest('src/main/resources/static/css/')); | |
//copy over the bootstrap fonts | |
gulp.src('node_modules/bootstrap-sass/assets/fonts/bootstrap/*') | |
.pipe(gulp.dest('src/main/resources/static/fonts/bootstrap')); | |
//copy over bootstraps javascript | |
gulp.src('node_modules/bootstrap-sass/assets/javascripts/*') | |
.pipe(gulp.dest('src/main/resources/static/js/bootstrap')); | |
}); | |
//watch task | |
gulp.task('default',function() { | |
gulp.watch('src/main/sass/**/*.scss',['styles']); | |
}); | |
//these get run by gradle when building the app | |
gulp.task('build', ['styles']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment