2014-08-29 00:40:18 +03:00
|
|
|
var gulp = require('gulp');
|
|
|
|
var less = require('gulp-less');
|
|
|
|
var print = require('gulp-print');
|
2015-07-22 04:38:46 +02:00
|
|
|
var livereload = require('gulp-livereload');
|
2014-08-29 00:40:18 +03:00
|
|
|
|
|
|
|
var paths = require('./paths');
|
2014-08-30 08:59:08 +03:00
|
|
|
var errorHandler = require('./errorHandler');
|
2014-08-29 00:40:18 +03:00
|
|
|
|
|
|
|
gulp.task('less', function () {
|
|
|
|
return gulp.src([
|
|
|
|
paths.src.content + 'bootstrap.less',
|
|
|
|
paths.src.content + 'theme.less',
|
|
|
|
paths.src.content + 'overrides.less',
|
|
|
|
paths.src.root + 'Series/series.less',
|
2014-10-12 20:21:40 +03:00
|
|
|
paths.src.root + 'Activity/activity.less',
|
2014-08-29 00:40:18 +03:00
|
|
|
paths.src.root + 'AddSeries/addSeries.less',
|
|
|
|
paths.src.root + 'Calendar/calendar.less',
|
|
|
|
paths.src.root + 'Cells/cells.less',
|
2015-03-04 02:42:37 +02:00
|
|
|
paths.src.root + 'ManualImport/manualimport.less',
|
2014-08-29 00:40:18 +03:00
|
|
|
paths.src.root + 'Settings/settings.less',
|
|
|
|
paths.src.root + 'System/Logs/logs.less',
|
|
|
|
paths.src.root + 'System/Update/update.less',
|
2014-11-21 07:43:04 +02:00
|
|
|
paths.src.root + 'System/Info/info.less',
|
2014-08-29 00:40:18 +03:00
|
|
|
])
|
|
|
|
.pipe(print())
|
|
|
|
.pipe(less({
|
|
|
|
dumpLineNumbers: 'false',
|
|
|
|
compress: true,
|
|
|
|
yuicompress: true,
|
|
|
|
ieCompat: true,
|
|
|
|
strictImports: true
|
|
|
|
}))
|
2014-08-30 08:59:08 +03:00
|
|
|
.on('error', errorHandler.onError)
|
2015-07-22 04:38:46 +02:00
|
|
|
.pipe(gulp.dest(paths.dest.content))
|
|
|
|
.pipe(livereload());
|
2014-11-21 07:43:04 +02:00
|
|
|
});
|