Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Feature/version error (#15)
Browse files Browse the repository at this point in the history
* Update: Adding minimum version and error message for lower engine

* Bumping version for the relase.

* Update: Updating changelog
  • Loading branch information
jarrodek authored Nov 11, 2017
1 parent 2f0e353 commit 8a0b46c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 5 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
<a name="0.2.5"></a>
## [0.2.5](https://github.com/mulesoft-labs/api-console-cli/compare/v0.2.4...v0.2.5) (2017-11-10)

* Updating engine minimum version to reflect actual state of requiremenets
* Adding error message for incompatible engine versions.

<a name="0.2.4"></a>
## [0.2.4](https://github.com/mulesoft-labs/api-console-cli/compare/0.2.3...v0.2.4) (2017-10-16)

* Added SSL options for serve command. Thanks @ralucas for this PR.

<a name="0.2.3"></a>
## [0.2.3](https://github.com/mulesoft-labs/api-console-cli/compare/0.2.2...0.2.3) (2017-08-14)

* Adding `dev` command

<a name="0.2.2"></a>
## [0.2.2](https://github.com/mulesoft-labs/api-console-cli/compare/v0.2.1...0.2.2) (2017-07-26)

* Updated builder and enhancer dependencies to fix issues with downloading latest release information
* Now uses one code base for the `raml2obj` library
* Updated help messages.

<a name="0.2.1"></a>
## [0.2.1](https://github.com/mulesoft-labs/api-console-cli/compare/0.2.0...v0.2.1) (2017-07-04)

Expand Down
11 changes: 7 additions & 4 deletions bin/api-console-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ process.title = 'api-console';

var semver = require('semver');
// Early exit if the user's node version is too low.
if (!semver.satisfies(process.version, '>=4')) {
console.log(
'API Console CLI requires at least Node v4. ' +
'You have ' + process.version + '.');
if (!semver.satisfies(process.version, '>=6.4')) {
const colors = require('colors/safe');
console.log(colors.red(
'\n' +
'API Console CLI requires at least Node v6.4.0. ' +
'You have ' + process.version + '.' +
'\n'));
process.exit(1);
}

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"name": "api-console-cli",
"version": "0.2.4",
"version": "0.2.5",
"description": "A set of dev tools for API console",
"main": "main.js",
"scripts": {
"test": "mocha 'test/*.test.js' --reporter spec"
},
"engines": {
"node": ">=6.4.0"
},
"keywords": [
"API Console",
"tools",
Expand Down

0 comments on commit 8a0b46c

Please sign in to comment.