forked from dite-bth/Boilerplate-for-AngularJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
30 lines (26 loc) · 931 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
var gulp = require('gulp');
var watch = require('gulp-watch');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
gulp.task('default', function() {
});
gulp.task('css', function() {
watch('./www/css/**/*.sass', function (event) {
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
gulp.src('./www/css/**/*.sass')
.pipe(sass({ includePaths : ['./www/css/tools'] }))
.pipe(autoprefixer())
.pipe(gulp.dest('./www/src/'));
});
});
gulp.task('js', function() {
watch('./www/js/**/*.js', function (event) {
console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
gulp.src('./www/js/**/*.js')
.pipe(concat('main.js'))
//.pipe(uglify())
.pipe(gulp.dest('./www/src/'));
});
});