Commit c93430e86b3c338e9941836395e108f64da8eb0c

Authored by Theoziran Lima
1 parent 2f63d6c8
Exists in master and in 1 other branch issue488

Adição de arquivo less do plugin na tarefa de compilação

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
gulpfile.js
... ... @@ -6,7 +6,8 @@ var gutil = require('gulp-util');
6 6 var plumber = require('gulp-plumber');
7 7 var path = require('path');
8 8  
9   -var temas = ['blog','dadospessoais','debatepublico','marcocivil','pensandoodireito'];
  9 +var temas = ['themes/blog-tema','themes/dadospessoais-tema','themes/debatepublico-tema','themes/marcocivil-tema',
  10 + 'themes/pensandoodireito-tema','plugins/wp-side-comments/includes'];
10 11  
11 12 var plumberHandler = function (err) {
12 13 console.log(err);
... ... @@ -15,7 +16,7 @@ var plumberHandler = function (err) {
15 16  
16 17 temas.forEach(function(item){
17 18 gulp.task(item, function(){
18   - return gulp.src('src/wp-content/themes/'+item+'-tema/css/less/*.less')
  19 + return gulp.src('src/wp-content/'+item+'/css/less/*.less')
19 20 .pipe(plumber({
20 21 errorHandler: plumberHandler
21 22 }))
... ... @@ -23,7 +24,7 @@ temas.forEach(function(item){
23 24 .pipe(sourcemaps.init())
24 25 .pipe(minifyCss())
25 26 .pipe(sourcemaps.write())
26   - .pipe(gulp.dest('src/wp-content/themes/'+item+'-tema/css'));
  27 + .pipe(gulp.dest('src/wp-content/'+item+'/css'));
27 28 });
28 29 });
29 30  
... ...