Skip to content

Commit

Permalink
Merge 24d1978 into 14b6feb
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElter committed Sep 15, 2017
2 parents 14b6feb + 24d1978 commit 9c4e15f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ To change the default configuration, some CLI parameters are allowed:
- `--no-dependency`
- `--peer-dependency`
- `--no-optional-dependency`
- `--glob-pattern <string>`
Overwrite glob pattern (specify multiple times to include/exclude a list). Default is `['**/*.js', '!node_modules/**/*', '!test/**/*', '!tests/**/*']`

## Todo

Expand Down
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
var fs = require('fs')
var path = require('path')
var argv = require('minimist')(process.argv.slice(2), {
boolean: ['only-dependency', 'no-dependency', 'peer-dependency', 'no-optional-dependency']
boolean: ['only-dependency', 'no-dependency', 'peer-dependency', 'no-optional-dependency'],
string: 'glob-pattern'
})

var basePath = argv._.pop() + ''
Expand All @@ -29,11 +30,14 @@ if (argv['no-dependency']) {
}

if (argv['peer-dependency']) {
options.peerDependencies = false
options.peerDependencies = true
}
if (argv['no-optional-dependency']) {
options.optionalDependencies = false
}
if (argv['glob-pattern']) {
options.globPattern = argv['glob-pattern']
}

var stream = condom(options)
var output = require('./output')
Expand Down

0 comments on commit 9c4e15f

Please sign in to comment.