optional-dev-dependency
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