node-markdown-spellcheck icon indicating copy to clipboard operation
node-markdown-spellcheck copied to clipboard

grunt gulp integration example

Open lukeapage opened this issue 8 years ago • 3 comments

lukeapage avatar Aug 17 '15 14:08 lukeapage

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.

ColinEberhardt avatar Aug 18 '15 05:08 ColinEberhardt

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.

ColinEberhardt avatar Aug 19 '15 15:08 ColinEberhardt

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.

lukeapage avatar Aug 19 '15 16:08 lukeapage