Skip to content

Conversation

@RobAWilkinson
Copy link
Contributor

text on this is open to change, nice little prompt both before and after the text dump when running the perk command

@RobAWilkinson
Copy link
Contributor Author

fixed merge conficts, adds semver dependency, all the fun code is in check.js we can use it anywhere, its just a promise that resolves to a boolean if the project is out of date. 😸

#!/usr/bin/env node --use_strict
let path = require('path');
let steps = require('./steps');
let check = require('./check');
Copy link
Owner

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');
Copy link
Owner

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`'}
 `;

Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants