معرفی شرکت ها


optional-dev-dependency-2.0.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

try to install an optional development dependency, YOLO if you can't.
ویژگی مقدار
سیستم عامل -
نام فایل optional-dev-dependency-2.0.1
نام optional-dev-dependency
نسخه کتابخانه 2.0.1
نگهدارنده ['hildjj', 'bcoe']
ایمیل نگهدارنده ['joe-github@cursive.net', 'ben@npmjs.com']
نویسنده Ben Coe
ایمیل نویسنده ben@npmjs.com
آدرس صفحه اصلی git+ssh://git@github.com/bcoe/optional-dev-dependency.git
آدرس اینترنتی https://github.com/bcoe/optional-dev-dependency#readme
مجوز ISC
# optional-dev-dependency [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![NPM version][npm-image]][npm-url] [![js-standard-style][standard-image]][standard-url] 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. ```shell optional-dev-dependency lodash redis@2.2.3 fffffffgggggg ``` All different [npm install styles](https://docs.npmjs.com/cli/install) are supported besides the git remote url ## Command Line ``` optional-dev-dependency package [options] Options: -s, --silent should the `npm install` output be shown? [boolean] [default: false] -S, --save try to install the specified packages, and save them to optionalDevDependencies in package.json [boolean] [default: false] -t, --tag only try to load dependencies with this tag -V, --verbose output NPM commands before running them [boolean] [default: false] -h, --help Show help [boolean] -v, --version Show version number [boolean] Examples: ../bin/odd.js lodash hiredis try to install 'lodash' and 'hiredis', it's okay if an install fails. ../bin/odd.js -t travis try to install optionalDevDependencies for the 'travis' tag from package.json, it's okay if an install fails. ``` ## Examples Here's an example from `node_redis`: ```json { "name": "redis", "scripts": { "pretest": "optional-dev-dependency hiredis" } } ``` You can also save optionalDevDependencies in your `package.json` file for ease of installation later. For example, let's say you want most developers who download your package and play with it to run basic tests, but when you run your code on your continuous integration server, you need a few extra dependencies. You can use a `package.json` file like this: ```json { "name": "sample", "scripts": { "test": "mocha", "precoverage": "optional-dev-dependency", "coverage": "nyc npm test", "preci": "optional-dev-dependency -t ci", "ci": "nyc report --reporter=text-lcov | coveralls" }, "optionalDevDependencies": { "nyc": "^8.3.1", "coveralls": [ "^2.11.14", "ci" ] } } ``` When you do `npm run coverage`, the `precoverage` script will ensure that all optionalDevDependencies without a tag are installed (in this case, `nyc`). When you do `npm run ci` on your CI server, the `preci` script will ensure that all optionalDevDependencies with the `ci` tag are installed (in this case, `coveralls`). You can load optionalDevDependencies into your `package.json` with the --save/-S flag. This will install the latest lodash, save that version in your `package.json`, and will only install it later if the `foo` or `bar` tag is specified: ```shell optional-dev-dependency --save lodash -t foo -t bar ``` ## License ISC [travis-url]: https://travis-ci.org/bcoe/optional-dev-dependency [travis-image]: https://img.shields.io/travis/bcoe/optional-dev-dependency.svg [coveralls-url]: https://coveralls.io/github/bcoe/optional-dev-dependency [coveralls-image]: https://img.shields.io/coveralls/bcoe/optional-dev-dependency.svg [npm-url]: https://npmjs.org/package/optional-dev-dependency [npm-image]: https://img.shields.io/npm/v/optional-dev-dependency.svg [standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg [standard-url]: https://github.com/feross/standard


نیازمندی

مقدار نام
^2.2.0 async
^5.1.0 cross-spawn
^4.2.0 lodash.assign
^7.0.2 yargs


زبان مورد نیاز

مقدار نام
7.7.4 Npm


نحوه نصب


نصب پکیج tgz optional-dev-dependency-2.0.1:

    npm install optional-dev-dependency-2.0.1.tgz