cspell icon indicating copy to clipboard operation
cspell copied to clipboard

Integration with Gulp

Open movahhedi opened this issue 3 years ago • 3 comments

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 avatar Jul 16 '22 11:07 movahhedi

@movahhedi,

As far as I know, there isn't one, but it wouldn't be too hard to make.

There are two approaches:

  1. Execute a shell command:

    const fileGlobs = "**/*.md";
    exec(`cspell ${fileGlobs}`, cb);
    
  2. Import it and call lint.

    const cspell = require("cspell");
    // ...
    await cspell.lint(["**/*.md"], {});
    

Jason3S avatar Jul 17 '22 05:07 Jason3S

If anyone would like to help document or provide a good way support Gulp, it would be much appreciated.

Jason3S avatar Aug 29 '22 06:08 Jason3S

I am, i was busy these days, but i've started it. I'll try to finish it soon.

movahhedi avatar Aug 29 '22 06:08 movahhedi