-
Notifications
You must be signed in to change notification settings - Fork 290
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
check prerequisites 1 / 2 #2046
Conversation
- git - grunt-cli - github-api connection warn if local mongo-db not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grunt CLI and GitHub checks tested and working.
lib/installHelpers.js
Outdated
method: 'GET' | ||
}, function(error, response) { | ||
if (error) { | ||
result.errors.push(`Failed to´connect to ${url}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Random character ´
in error string.
install.js
Outdated
if(error) { | ||
return handleError(error, 1, 'Failed to get the latest framework version. Check package.json.'); | ||
return handleError(error, 1, 'Not all required pre-requisites fulfilled. Please check install guides.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest removing required
. A prerequisite is required by nature.
lib/installHelpers.js
Outdated
@@ -578,3 +579,71 @@ function error(msg) { | |||
function isSilent() { | |||
return process.env.SILENT; | |||
} | |||
|
|||
/** | |||
* Manually collect all misisng prerequisites |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: misisng
.
lib/installHelpers.js
Outdated
], result, function(error) { | ||
if (error) return callback(error); | ||
if (result.errors.length) { | ||
return callback(new Error(result.errors.join(', '))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest a line break between errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have tried this, will format it oddly. I can do however if you like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Agree that it would look nicer with each error on a separate line.
Missing the following pre-requisites, please check install guides:
- git
- grunt
- ffmpeg
- failed to connect to github.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatted much better, thanks.
}); | ||
} | ||
|
||
function checkLocalMongoDbConnection(result, callback) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't actually check the connection does it? Maybe needs a rename to avoid any confusion.
checkLocalMongoDbConnection, | ||
checkFfmpegInstalled | ||
], | ||
'Missing the following optional dependecies, please check install guides:', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: dependecies
.
Replaced with PR 2059. |
fixes #880
Checks known prerequisites in an early stage and exits if not met:
Warns if not met:
[ ] local mongodb not foundPart 2 will be to check if a connection to database can be established once it is configured. This will be based on #2015