/optional-dev-dependency

:sunglasses: try to install an optional development dependency, YOLO if you can't.

Primary LanguageJavaScriptISC LicenseISC

optional-dev-dependency

Build Status Coverage Status NPM version js-standard-style

For when you want to try to install a module, but want to keep on truckin' if you are unable to. I found this useful for simulating optional-dev-dependencies.

optional-dev-dependency lodash fffffffgggggg

Example

Here's an example from node_redis:

{
  "name": "redis",
  "scripts": {
    "coverage": "nyc report --reporter=text-lcov | coveralls",
    "test": "nyc ./node_modules/.bin/_mocha ./test/*.js ./test/commands/*.js ./test/parser/*.js --timeout=8000",
    "pretest": "optional-dev-dependency hiredis"
  }
}

License

ISC