forked from patrickmarabeas/ng-FitText.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
27 lines (23 loc) · 848 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
var gulp = require('gulp')
, sass = require('gulp-sass');
gulp.task('scripts', function() {
gulp.src('./lib/angular/angular.min.js')
.pipe(gulp.dest('./demo/js'));
});
gulp.task('styles', function() {
gulp.src('./demo/styles/main.scss')
.on('data', function(file) {
// https://github.com/dlmanning/gulp-sass/issues/28#issuecomment-43951089
var path = require('path');
if (process.platform === 'win32') {
file.path = path.relative('.', file.path);
file.path = file.path.replace(/\\/g, '/');
}
})
.pipe(sass({ errLogToConsole: true })) // error handling still breaks in conjunction with sourcemaps
.pipe(gulp.dest('./demo/styles'));
});
gulp.task('watch', function() {
gulp.watch('./demo/**/*.scss', ['styles']);
});
gulp.task('default',['styles', 'scripts']);