-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add warning when meteor is installing; Update release to 1.3 #45
Conversation
andreyantipov
commented
Mar 19, 2016
- fixed readme create section
- added verbose warning when meteor is installing
- updated release to rc3
This is good. But it seems that every time I run The below is the output of that command:
You can see that instead of |
@sungwoncho hello You are absolutely right, there is a different versioning format. Same output. So i propose at this time to use both version numerating, one for checking and one for installation, would be that okay? |
Yeah. It'd be confusing but as long as we comment the code, it'd be a good solution fine for the time being. |
Made a small refactoring. Found a cleaner way to get information about which packages is installed. Btw. Found another possible way to check which packages is installed using only public numeration. In
Two releases. // Meteor packages
let release = {"system" : "1.1.12", "public" : "1.3"} Added isInstalled method. Check if meteor package is installed. // Public and system version of packages must be related with publishedOn date field
// releases can be taken by meteor show --show-all --ejson `meteor or METEOR`
// meteor is system and METEOR is public
let isInstalled = (version) =>
{
let pkgs = JSON.parse(shelljs.exec(`meteor show meteor --ejson`, {silent: true}).output).versions
return pkgs.some(pkg => pkg.version === version && pkg.installed)
} Warn if meteor isn't installed in verbose mode. // Warn if meteor isn't installed
options.verbose && !isInstalled(release.system) && logger.invoke(`Installing meteor ${release.public}...`); Also, i'd like make same verbose notice for npm installation because can take a long time to make output more friendly, do i need to create another PR? if (process.env.NODE_ENV !== 'test') {
logger.invoke('after_init');
shelljs.set('-e');
let currentPath = shelljs.pwd();
shelljs.cd(appPath);
shelljs.exec('npm install', {silent: !options.verbose});
shelljs.cd(currentPath);
} |
Okay. This solution works. But at first I wasn't sure what the names What do you think about #47? |
I've merged #47. Let's see how it plays out. Let me know what you think. We can come back to this approach in the future. Thanks for the PR. |