node-markdown-spellcheck
node-markdown-spellcheck copied to clipboard
grunt gulp integration example
I thought I'd get the ball rolling and create a basic grunt task:
https://github.com/ColinEberhardt/grunt-mdspell
It's just a quickly thrown together test version of the code at the moment.
My grunt task is now fully functioning, however, as you can see from the implementation it repeats some of the code within mdspell itself. I also had to expose spellConfig via index, currently via a branch on my repo. I can submit this as a PR, but don't like the idea of gradually adding things to the API via index, it's a bit messy.
Probably easier to discuss a more suitable structure in person.
In the meantime I'll add this grunt task to npm, and see if I can integrate it with our blog.
I think I remember you can grab a file not exposed through the index
require('markdown-spellcheck/es5/spellConfig.js')
as I said though, I'd like it if spellConfig wasn't global and also if the logic to load the config for a single file was exposed.. for instance the existing spellFile
https://github.com/lukeapage/node-markdown-spellcheck/blob/master/es6/index.js#L23 is probably inadaquate for most uses.