From 74c0c1d08d9a9b29d9eb7167508e68ffe093029e Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Tue, 29 Mar 2016 18:34:04 -0300 Subject: [PATCH] Create noosfero files when build themes --- gulp/build.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gulp/build.js b/gulp/build.js index 3f06a2b..f48b0f0 100644 --- a/gulp/build.js +++ b/gulp/build.js @@ -2,7 +2,9 @@ var path = require('path'); var gulp = require('gulp'); +var rename = require('gulp-rename'); var conf = require('./conf'); + var noosferoThemePrefix = path.join("/designs/themes/angular-theme", conf.paths.dist, '/'); var $ = require('gulp-load-plugins')({ @@ -117,4 +119,14 @@ gulp.task('clean-docs', [], function() { return $.del([path.join(conf.paths.docs, '/')]); }); -gulp.task('build', ['html', 'fonts', 'other', 'locale']); +gulp.task('noosfero', ['html'], function () { + gulp.src('layouts/**/*') + .pipe(gulp.dest(path.join(conf.paths.dist, "layouts"))); + gulp.src('theme.yml') + .pipe(gulp.dest(conf.paths.dist)); + return gulp.src(path.join(conf.paths.dist, 'index.html')) + .pipe(rename('index.html.erb')) + .pipe(gulp.dest(conf.paths.dist)); +}); + +gulp.task('build', ['html', 'fonts', 'other', 'locale', 'noosfero']); -- libgit2 0.21.2