mermaid/gulpfile.js

19 lines
515 B
JavaScript
Raw Normal View History

var gulp = require('gulp');
var jison = require('gulp-jison');
var shell = require('gulp-shell')
2014-11-11 08:12:03 +01:00
gulp.task('jison2', function() {
return gulp.src('./src/*.jison')
.pipe(jison({ moduleType: 'amd' }))
.pipe(gulp.dest('./src/'));
});
2014-11-11 08:12:03 +01:00
gulp.task('jison', shell.task([
'jison src/parser/mermaid.jison -o src/parser/mermaid.js',
'source scripts/compileJison.sh'
2014-11-12 07:35:44 +01:00
]))
gulp.task('jison2', shell.task([
'jison src/parser/flow.jison -o src/parser/flow.js',
'source scripts/compileFlow.sh'
]))