2017-08-21 20:03:16 +00:00
|
|
|
var gulp = require('gulp');
|
|
|
|
|
|
|
|
var concat = require('gulp-concat');
|
|
|
|
var pump = require('pump');
|
|
|
|
var sass = require('gulp-sass');
|
|
|
|
var sassGlob = require('gulp-sass-glob');
|
|
|
|
|
|
|
|
var stylesConfig = require('../config.js').stylesConfig;
|
|
|
|
|
|
|
|
|
|
|
|
gulp.task('styles', ['styles:vendor', 'styles:app']);
|
|
|
|
|
|
|
|
gulp.task('styles:vendor', function(cb) {
|
|
|
|
pump([
|
|
|
|
gulp.src(stylesConfig.vendor),
|
|
|
|
concat('vendor.css'),
|
|
|
|
gulp.dest(stylesConfig.dest)
|
|
|
|
], cb);
|
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task('styles:app', function (cb) {
|
|
|
|
pump([
|
|
|
|
gulp.src(stylesConfig.app),
|
2017-08-24 17:18:00 +00:00
|
|
|
sassGlob({ignorePaths: stylesConfig.ignore}),
|
2017-08-21 20:03:16 +00:00
|
|
|
sass().on('error', sass.logError),
|
|
|
|
concat('app.css'),
|
|
|
|
gulp.dest(stylesConfig.dest)
|
|
|
|
], cb);
|
|
|
|
});
|