forked from rajeshrhino/uk.co.nfpservices.module.civigiftaid
-
Notifications
You must be signed in to change notification settings - Fork 22
/
gulpfile.js
37 lines (33 loc) · 804 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
35
36
37
var gulp = require('gulp');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var autoprefixer = require('gulp-autoprefixer');
var notify = require('gulp-notify');
/**
* Default task
*/
gulp.task('default', ['css', 'js', 'watch']);
/**
* Watch
*/
gulp.task('watch', function () {
gulp.watch('resources/**/*.scss', ['css']);
gulp.watch('resources/**/*.js', ['js']);
});
/**
* CSS tasks
*/
gulp.task('css', function () {
return gulp.src('resources/**/*.scss')
.pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError))
.pipe(concat('dist.css'))
.pipe(autoprefixer())
.pipe(gulp.dest('resources/css'))
.pipe(notify({message: 'CSS tasks complete.'}));
});
/**
* JavaScript tasks
*/
gulp.task('js', function () {
// placeholder for future
});