-
Notifications
You must be signed in to change notification settings - Fork 6
User gets upgrade prompt #9
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
base: master
Are you sure you want to change the base?
User gets upgrade prompt #9
Conversation
|
fixed merge conficts, adds semver dependency, all the fun code is in |
| #!/usr/bin/env node --use_strict | ||
| let path = require('path'); | ||
| let steps = require('./steps'); | ||
| let check = require('./check'); |
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.
Could we name this something different than check for clarity. Maybe checkVersion?
| `; | ||
| ` + (current ? '' : 'Be Aware your perky-cli version is outdated, there may be differences with the docs'); |
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.
With ES6 string interpolation you could stick this right inside of the previous message instead of concatenating. Also there's a small typo (perky-cli) and we should notify them how to upgrade their perk-cli if they want to:
eg.
return `
Your new project has successfully been created in ${dirPath}
You should run:
cd ${dirPath} && npm install
While dependencies for your new perk app are installing you can check
out more info on how to use all the great features of perk at:
http://perkframework.com/v1/guides/getting-started-os-x.html
${current ? '' : 'Be Aware your perk-cli version is outdated, there may be differences with the docs. To upgrade run `npm install-g perk-cli`'}
`;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.
Looking forward to getting this deployed. Great work!
text on this is open to change, nice little prompt both before and after the text dump when running the perk command