Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated NPM packages, including move from deprecated has-color #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
sudo: false
language: node_js
node_js:
- "4"
- "6"
- 4
- 5
- 6
- 7
- 8
- node

before_script:
- npm install -g grunt-cli
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ Options:
-h, --help Display help and usage details
```

**Note**: on Windows and other platforms, `-c` MAY not detect a color-supporting terminal. Use `--color` instead to force changelog (which uses `chalk`) to output terminal color escape codes. See also https://github.com/chalk/supports-color.


#### More Examples


Expand Down
8 changes: 4 additions & 4 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var CLI = require('cli');
var FS = require('fs');
var hasColor = require('has-color');
var hasColor = require('supports-color');
var changelog = require('./changelog');
var log = require('./log');

Expand Down Expand Up @@ -69,9 +69,9 @@ CLI.main(function (args, options) {

function generateOutput(data) {
var fn = options.json ? JSON.stringify
: options.markdown ? require('./output/markdown')
: hasColor ? require('./output/terminal')
: require('./output/markdown');
: options.markdown ? changelog.markdown
: hasColor ? changelog.terminal
: changelog.markdown;
return fn(data);
}

Expand Down
Loading