bramp / js-sequence-diagrams

Draws simple SVG sequence diagrams from textual representation of the diagram
https://bramp.github.io/js-sequence-diagrams/
BSD 2-Clause "Simplified" License
7.82k stars 1.08k forks source link

Support for building on Windows #73

Open ComFreek opened 10 years ago

ComFreek commented 10 years ago

I know that Makefiles can be run on Windows, but wouldn't it be easier (and more portable) to use Gulp?

bramp commented 10 years ago

Thanks for the suggestion ComFreek. I had a similar request in #10 asking for a Grunt build file. I would be happy to evaluate Gulp (patches welcome), but it would have to provide value over Make.

I don't know enough about Gulp, but for me to consider switching to it, it has to be as simple as Make, handle incremental builds, and provide all the other features Make does today. The ability to have a full JS stack + cross platform builds is certainly valuable, but of all the support emails I received, I've never had one about not being able to build on Windows. (That's not to say there isn't someone out there really trying hard to build on Windows :))

Let me investigate Gulp, and get back to you.

ComFreek commented 10 years ago

Thanks for your answer.

I didn't have the time yet to dig deeper into Gulp, but I would certainly help porting the Makefile to Gulp as good as I can.

ComFreek commented 10 years ago

@bramp I've created a simple Gulpfile: https://github.com/ComFreek/js-sequence-diagrams (git clone ..., npm install, gulp [watch]). It does not do all things the Makefile did, but building, deploying and watching is already possible.

What do you think?

bruriaP commented 7 years ago

how can i run it in window

bruriaP commented 7 years ago

D:\diagramgulp>gulp build [12:00:58] Using gulpfile D:\diagramgulp\gulpfile.js [12:00:58] Starting 'build'...

events.js:160 throw er; // Unhandled 'error' event ^ Error: Parse error on line 1: (function () { "use -^ Expecting '%%', 'START', 'LEX_BLOCK', 'ACTION', 'OPTIONS', 'PARSE_PARAM', 'LEFT', 'RIGHT', 'NONASSOC', got 'ID' at Object.parseError (D:\diagramgulp\node_modules\ebnf-parser\parser.js:211:15) at Object.parse (D:\diagramgulp\node_modules\ebnf-parser\parser.js:269:22) at Object.parse (D:\diagramgulp\node_modules\ebnf-parser\ebnf-parser.js:5:55) at Jison_Generator [as constructor] (D:\diagramgulp\node_modules\jison\lib\jison.js:83:30) at (anonymous function) [as constructor] (D:\diagramgulp\node_modules\jison\lib\util\typal.js:23:28) at new o.constructor (D:\diagramgulp\node_modules\jison\lib\util\typal.js:77:70) at new Jison_Generator (D:\diagramgulp\node_modules\jison\lib\jison.js:1906:20) at DestroyableTransform._transform (D:\diagramgulp\node_modules\gulp-jison\index.js:24:44) at DestroyableTransform.Transform._read (D:\diagramgulp\node_modules\gulp-jison\node_modules\readable-stream\lib_stream_transform.js:184:10) at DestroyableTransform.Transform._write (D:\diagramgulp\node_modules\gulp-jison\node_modules\readable-stream\lib_stream_transform.js:172:12)

bruriaP commented 7 years ago

its not working

ComFreek commented 7 years ago

@bruriaP My fork is far behind this upstream repository, 117 commits to be precise. I would recommend building with the Makefile, see the first comment in this thread.