cspell
cspell copied to clipboard
Integration with Gulp
Hi
Is there a proper, official way to integrate cspell with Gulp?
A package like gulp-cspell or something to run on the pipelines.
If not, what method do you recommend?
@movahhedi,
As far as I know, there isn't one, but it wouldn't be too hard to make.
There are two approaches:
-
Execute a shell command:
const fileGlobs = "**/*.md"; exec(`cspell ${fileGlobs}`, cb); -
Import it and call
lint.const cspell = require("cspell"); // ... await cspell.lint(["**/*.md"], {});
If anyone would like to help document or provide a good way support Gulp, it would be much appreciated.
I am, i was busy these days, but i've started it. I'll try to finish it soon.