包详细信息

yaspeller-ci

ai427MIT1.0.2

Fast spelling check for Travis CI

spelling, spellcheck, typo, yaspeller

自述文件

Yaspeller for CI

Yaspeller Logo

Fast spelling check for Travis CI and AppVeyor.

It is just simple wrap for yaspeller, CLI for Yandex.Speller API. But it runs spelling check only in first CI job, to speed up build time and reduce unnecessary burden for CI service and Yandex.Speller API.

Sponsored by Evil Martians

Usage

Install yaspeller-ci:

npm install yaspeller-ci --save-dev

And add it to npm scripts:

  "scripts": {
    "spellcheck": "yaspeller-ci *.md",
    "test": "npm run unit && npm run lint && npm run spellcheck"
  }

If you use JSDoc, we recommend to pass them by spelling check too:

  "scripts": {
    "docs": "jsdoc --configure .jsdocrc *.js",
    "spellcheck": "npm run docs && yaspeller-ci *.md api/*.html",
    "test": "npm run unit && npm run lint && npm run spellcheck"
  }

Config

You can specify own dictionary and spelling check options in .yaspellerrc config.

{
  "lang": "en",
  "dictionary": [
    "yaspeller",
    "Travis"
  ]
}

Full list of options could be found in yaspeller docs.

Extra

We recommend to combine Yaspeller CI with lint-staged:

  "lint-staged": {
    "*.md": "yaspeller-ci"
  }

更新日志

Change Log

This project adheres to Semantic Versioning.

1.0.2

  • Update ci-job-number.

1.0.1

  • Reduce npm package size.

1.0

  • Use >= in yaspeller dependency to work with any future major release.

0.7

  • Use Yaspeller 4.

0.6

  • Add Semaphore support.

0.5

  • Add CircleCI support.

0.4.1

  • Move CI job detection to ci-job-number.

0.4

  • Better AppVeyor support with new APPVEYOR_JOB_NUMBER environment variable.

0.3

  • Add AppVeyor support.

0.2

  • Remove *.js.html hack in favour of exludeFiles option in yaspeller.
  • Use TRAVIS_JOB_NUMBER to detect first job (by Denis Seleznev).

0.1

  • Initial release.