Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allevo/packages-condom
Check your code are not using some dev dependencies
https://github.com/allevo/packages-condom
Last synced: 14 days ago
JSON representation
Check your code are not using some dev dependencies
- Host: GitHub
- URL: https://github.com/allevo/packages-condom
- Owner: allevo
- License: mit
- Created: 2017-03-07T20:14:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T08:50:50.000Z (about 7 years ago)
- Last Synced: 2024-10-05T12:06:10.312Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 107 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# packages-condom
[![Build Status](https://travis-ci.org/allevo/packages-condom.svg?branch=master)](https://travis-ci.org/allevo/packages-condom)
[![Coverage Status](https://coveralls.io/repos/github/allevo/packages-condom/badge.svg?branch=master)](https://coveralls.io/github/allevo/packages-condom?branch=master)Check your code are not using some dev dependencies
## Why
In the build process, your code will be tested with non-production packages. In fact all dev dependencies are installed too.
Your production code can require some dev dependencies and crash at runtime.
This module search in your code all required modules and check if those are defined as dependencies or peer dependencies.## Install
```
npm install -g packages-condom
```## Usage
```
packages-condom
```Without any parameters, the condom checks all requires are included as dependencies or optionalDependencies. By default, the peerDependencies are not allowed.
To change the default configuration, some CLI parameters are allowed:
- `--no-dependency`
- `--peer-dependency`
- `--no-optional-dependency`
- `--glob-pattern `
Overwrite glob pattern (specify multiple times to include/exclude a list). Default is `['**/*.js', '!node_modules/**/*', '!test/**/*', '!tests/**/*']`## Todo
- Better output