forked from iamcco/markdown.css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (26 loc) · 813 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var gulp = require('gulp');
var nib = require('nib')();
var stylus = require('gulp-stylus');
var ejs = require('gulp-ejs');
var marked = require('gulp-markdown');
gulp.task('stylus', function() {
return gulp.src('./src/*/*/*.styl')
.pipe(stylus({use: nib}))
.pipe(gulp.dest('./public'));
});
gulp.task('markdown', function() {
return gulp.src('./src/markdown/markdown.md')
.pipe(marked())
.pipe(gulp.dest('./temp'));
});
gulp.task('ejs', ['markdown', 'stylus'], function() {
return gulp.src('./src/ejs/example-github.ejs')
.pipe(ejs({}, {ext: '.html'}))
.pipe(gulp.dest('./public'));
});
gulp.task('build', function() {
return gulp.src('./src/styles/*/*.styl')
.pipe(stylus({use: nib}))
.pipe(gulp.dest('./dest'));
});
gulp.task('public', ['ejs', 'build']);