mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
b4a96c9b21
Updated build scripts New way for bundling content in dist, tobe tested, currently to be considered beta
20 lines
942 B
JavaScript
20 lines
942 B
JavaScript
var gulp = require('gulp');
|
|
var shell = require('gulp-shell');
|
|
var jison = require('gulp-jison');
|
|
|
|
gulp.task('jison', function() {
|
|
return gulp.src('./src/*.jison')
|
|
.pipe(jison({ moduleType: 'commonjs' }))
|
|
.pipe(gulp.dest('./src/parser'));
|
|
});
|
|
|
|
gulp.task('jison_legacy', shell.task([
|
|
'jison src/diagrams/flowchart/parser/flow.jison -o src/diagrams/flowchart/parser/flow.js',
|
|
'jison src/diagrams/flowchart/parser/dot.jison -o src/diagrams/flowchart/parser/dot.js',
|
|
'jison src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison -o src/diagrams/sequenceDiagram/parser/sequenceDiagram.js',
|
|
'jison src/diagrams/example/parser/example.jison -o src/diagrams/example/parser/example.js',
|
|
'jison src/diagrams/gantt/parser/gantt.jison -o src/diagrams/gantt/parser/gantt.js',
|
|
//'jison src/diagrams/sequenceDiagram/parser/sequenceDiagram.jison -o src/diagrams/sequenceDiagram/parser/sequenceDiagram.js'
|
|
]));
|
|
|