Commit 685b91c9 authored by Stéphane Bouvry's avatar Stéphane Bouvry
Browse files

Base

parents
node_modules
dist
src/**/*.html
**.*~
var gulp = require('gulp'),
shell = require('gulp-shell'),
exec = require('child_process').exec;
var src = './src/',
articles = src +'articles/'
gulp.task('default', function(){
gulp.src(articles + '**/*.md', { read: false })
.pipe(shell(
['pandoc --template=./src/templates/unicaen.html --standalone <%= file.path %> -o <%= f(file.path) %>'],
{
templateData: {
f: function(s){
return s.replace(/\.md/, '.html')
}
}
}
))
});
gulp.task('watch', function(){
gulp.watch('src/articles/**/*.md', ['default']);
gulp.watch('src/templates/unicaen.html', ['default']);
})
{
"name": "dev-notes",
"version": "1.0.0",
"description": "",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"gulp": "^3.9.1",
"gulp-sass": "^4.0.1",
"gulp-shell": "^0.6.5"
},
"dependencies": {
"gulp-md-docs": "^0.1.8"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment