modularizing for npm etc #12
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
So this needs a bit more, but realistically, if you have this branch checked out and a modern version of nodejs installed you should be able to type (from the root of the directory)
npm installand once that is done, switch to src and write a test.js which is as simple as
(from the src directory) running
node testthat should yield a logged MathML string. If we finish this, we register a build with npm and it makes it so that people can just add a dependency in their package.json to get support.IF this works, for you, aside from the bits about where those files should go, there are some other things to cleanup which I haven't committed in order to focus what we're looking at. I also have changes to
../playground/index.html(to ) and../utils/generate-parser.html(to put the format to commonjs)