This commit is contained in:
Jörn-Michael Miehe 2018-10-02 02:57:06 +02:00
parent 489f7385f4
commit c0ad010daa
3 changed files with 11 additions and 1 deletions

View file

@ -4,6 +4,7 @@ var merge = require('merge-stream');
var gulp = require('gulp'); var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps'); var sourcemaps = require('gulp-sourcemaps');
var coffee = require('gulp-coffee'); var coffee = require('gulp-coffee');
var sass = require('gulp-sass');
var pug = require('gulp-pug'); var pug = require('gulp-pug');
var insert = require('gulp-insert'); var insert = require('gulp-insert');
var uglify = require('gulp-uglify-es').default; var uglify = require('gulp-uglify-es').default;
@ -12,6 +13,7 @@ var concat = require('gulp-concat');
var paths = { var paths = {
lib: 'client/lib/*.js', lib: 'client/lib/*.js',
coffee: 'client/scripts', coffee: 'client/scripts',
styles: 'client/style/*.scss',
pug: 'client/pug/*.pug', pug: 'client/pug/*.pug',
dest: 'static', dest: 'static',
maps: 'maps' maps: 'maps'
@ -51,10 +53,17 @@ gulp.task('coffee', function(){
return merge(tasks); return merge(tasks);
}); });
gulp.task('styles', function(){
return gulp.src(paths.styles)
.pipe(concat('style.css'))
.pipe(sass())
.pipe(gulp.dest(paths.dest))
});
gulp.task('pug', function(){ gulp.task('pug', function(){
return gulp.src(paths.pug) return gulp.src(paths.pug)
.pipe(pug()) .pipe(pug())
.pipe(gulp.dest(paths.dest)) .pipe(gulp.dest(paths.dest))
}); });
gulp.task('default', [ 'lib', 'coffee', 'pug' ]); gulp.task('default', [ 'lib', 'coffee', 'styles', 'pug' ]);

View file

@ -15,6 +15,7 @@
"gulp": "*", "gulp": "*",
"gulp-sourcemaps": "*", "gulp-sourcemaps": "*",
"gulp-pug": "*", "gulp-pug": "*",
"gulp-sass": "*",
"gulp-coffee": "*", "gulp-coffee": "*",
"gulp-insert": "*", "gulp-insert": "*",
"gulp-uglify-es": "*", "gulp-uglify-es": "*",