Closed SridharSubramaniam closed 9 years ago
That's a good question. I guess in some way or another, you might get it to work using something like browserify.
Most grock components should work with little to no adjustments. What I imagine might cause some trouble are external dependencies like vinyl-fs (file representation, all transforms depend on this), pretty-hrtime (measure run time, nice-to-have) and chalk (colorful console output, nice-to-have).
If I wanted to do this, I would probably start with duplicating the lib/generator.coffee
file, removing all nice-to-have requirements, and replacing vinyl-fs with a custom handler for my file representation.
It might also be tricky to get the styles to work since they are dynamically loaded (but I guess that's optional as well, you could start with a fixed default style).
Thanks for the quick response. I will try it out.
Cool! I'll leave this issue open so you can post your findings and/or problems you encounter.
Did you pursue this? I'll just close this issue for now. Feel free to open new ones for bugs or specific features you'd like to see :)
Hi,
Since there is no pygments dependency, can it run on browser with marked and highlights js ?
-Sridhar