2014-11-03 00:02:29 +01:00
|
|
|
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() {
|
2014-11-03 00:02:29 +01:00
|
|
|
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'
|
2014-11-03 00:02:29 +01:00
|
|
|
]))
|