-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[CLI] Improve readme of a new project #4981
Conversation
@@ -226,6 +226,7 @@ module.exports = class ProjectGenerator extends BaseGenerator { | |||
this.destinationPath(''), | |||
{ | |||
project: this.projectInfo, | |||
cliVersion, |
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.
Is cliVersion
used in a template?
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.
Yes, I am putting a message similar to what Angular says when you create a project with "this has been generated with Loopback CLI version X"
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.
Please note we already captures cli version in .yo-rc.json
.
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.
I know, this that I am putting in the README file only has a visual and informative character. It has no other functionality
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.
@frbuceta , thank you for this PR. It is a good idea to add more content to this readme.
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.
@frbuceta, thanks for your PR to beef up the project template. I have a few comments.
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.
LGTM with one minor change.
Please wait for approvals from @raymondfeng and @nabdelgadir to make sure their feedback is addressed. Thanks again @frbuceta.
@@ -226,6 +226,7 @@ module.exports = class ProjectGenerator extends BaseGenerator { | |||
this.destinationPath(''), | |||
{ | |||
project: this.projectInfo, | |||
cliVersion, |
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.
@frbuceta , thank you for this PR. It is a good idea to add more content to this readme.
Set version to 0.0.1
@frbuceta , looks like you already implemented my suggestions, so I don't need to push any commits to help you along. :) |
I generated a new application using this updated template. Based on this image, I have a few other suggestions
This way all 3 substeps of |
I see it by setting the file in MARKDOWN mode and then with the key combination |
We are doing a good job |
|
||
Refer to [Command-line interface](https://loopback.io/doc/en/lb4/Command-line-interface.html) for the full list of LoopBack 4 commands. | ||
|
||
### Adding Additional Dependencies |
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.
Do we want to mention lb4 upgrade
to handle project dependency upgrade for newer LB versions?
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.
It is currently documented at this link
@frbuceta It would be hard to maintain README generation. What about we add a new page to See #4847 |
Something like..? Getting StartedIf you are starting we recommend that you start here First StepsStarting the applicationStarting the application is as easy as: npm start .... |
@frbuceta Yes, what I have in mind is that we generate README with high-level steps, such as:
|
This would be for the "Get started" page? |
Probably a new page such as My main point is not to add too much detail the README template. The README should have high-level post scaffold instructions that link to our docs. |
We just switch the contribution method from CLA to DCO, making your contribution easier in the future. Please sign the commits with DCO by amending your commit messages with
Please refer to this docs page for details. Thanks! |
Until now, new projects and extensions did not have a README file with useful information. I want to put new things to help improve this default file.
Help links, tutorials or examples ... Anything that can help those starting with Loopback
Checklist
👉 Read and sign the CLA (Contributor License Agreement) 👈
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈