Commit 74c0c1d08d9a9b29d9eb7167508e68ffe093029e
1 parent
ef1ab2c5
Exists in
master
and in
1 other branch
Create noosfero files when build themes
Showing
1 changed file
with
13 additions
and
1 deletions
Show diff stats
gulp/build.js
... | ... | @@ -2,7 +2,9 @@ |
2 | 2 | |
3 | 3 | var path = require('path'); |
4 | 4 | var gulp = require('gulp'); |
5 | +var rename = require('gulp-rename'); | |
5 | 6 | var conf = require('./conf'); |
7 | + | |
6 | 8 | var noosferoThemePrefix = path.join("/designs/themes/angular-theme", conf.paths.dist, '/'); |
7 | 9 | |
8 | 10 | var $ = require('gulp-load-plugins')({ |
... | ... | @@ -117,4 +119,14 @@ gulp.task('clean-docs', [], function() { |
117 | 119 | return $.del([path.join(conf.paths.docs, '/')]); |
118 | 120 | }); |
119 | 121 | |
120 | -gulp.task('build', ['html', 'fonts', 'other', 'locale']); | |
122 | +gulp.task('noosfero', ['html'], function () { | |
123 | + gulp.src('layouts/**/*') | |
124 | + .pipe(gulp.dest(path.join(conf.paths.dist, "layouts"))); | |
125 | + gulp.src('theme.yml') | |
126 | + .pipe(gulp.dest(conf.paths.dist)); | |
127 | + return gulp.src(path.join(conf.paths.dist, 'index.html')) | |
128 | + .pipe(rename('index.html.erb')) | |
129 | + .pipe(gulp.dest(conf.paths.dist)); | |
130 | +}); | |
131 | + | |
132 | +gulp.task('build', ['html', 'fonts', 'other', 'locale', 'noosfero']); | ... | ... |