Skip to content

Instantly share code, notes, and snippets.

@brookslyrette
Created November 21, 2015 13:26
Show Gist options
  • Save brookslyrette/d43e2edd10337eb7caf6 to your computer and use it in GitHub Desktop.
Save brookslyrette/d43e2edd10337eb7caf6 to your computer and use it in GitHub Desktop.
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