-
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
Improve developer docs #1015
Improve developer docs #1015
Conversation
|
||
## Packages | ||
<!-- PLEASE KEEP THE TABLE ROWS SORTED ALPHABETICALLY BY PACKAGE NAME--> |
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.
Hmm, I intentionally sorted the packages by the nature of the modules such as common utilities, core, extensions, examples.
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.
The problem with "order by nature of modules" is that it's subjective. There's definitely a case to be made for either ordering but I will say that as a "third party", I think it's always easier to reference things that are alphabetically ordered.
If you are going to group by functionality, you should create separate tables and name the groupings.
@bajtos Great start. 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.
Only one suggested change
|
||
## Packages | ||
<!-- PLEASE KEEP THE TABLE ROWS SORTED ALPHABETICALLY BY PACKAGE NAME--> |
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.
The problem with "order by nature of modules" is that it's subjective. There's definitely a case to be made for either ordering but I will say that as a "third party", I think it's always easier to reference things that are alphabetically ordered.
If you are going to group by functionality, you should create separate tables and name the groupings.
@@ -33,7 +28,7 @@ Then in your Node.js project root, run: | |||
npm install -S @loopback/core | |||
``` | |||
|
|||
> Make sure you set `"target": "es6"` in your compiler options in your | |||
> Make sure you set `"target": "es2017"` in your compiler options in your |
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.
👍
README.md
Outdated
- [Join the team](https://github.com/strongloop/loopback-next/issues/110) | ||
See [Contributing Guidelines](./CONTRIBUTING.md) for more details. | ||
|
||
You can join the team by posting a comment to [issue #110](https://github.com/strongloop/loopback-next/issues/110.). |
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.
👍
We use two tools to keep our codebase healthy: | ||
|
||
- [TSLint](https://palantir.github.io/tslint/) to statically analyse our source code and detect common problems. | ||
- [Prettier](https://prettier.io/) to keep our code always formatted the same way, avoid style discussions in code reviews, and save everybody's time an energy. |
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.
and save everybody's time and energy
👍
docs/DEVELOPING.md
Outdated
@@ -138,12 +157,54 @@ The **body** provides more details, it should include the motivation for the cha | |||
|
|||
Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes"a | |||
|
|||
Paragraphs or bullet points are ok (must not exceed 100 characters per line). Typically a hyphen or asterisk is used for the bullet, followed by a single space, with blank lines in between, but conventions vary here. |
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.
but, conventions vary here.
I would remove this. While it may be true, I don't think it should be documented.
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.
Will remove.
$ npm i -g commitizen | ||
``` | ||
|
||
And to use it, simply call `git cz` instead of `git commit`. The tool will help you generate a commit message that follows the above guidelines. |
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.
Were the above guidelines directly from commitizen
or is there some kind of config that sets things like the 100 char "limit".
Might be good to mention where "the above guidelines" come from.
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.
Most of the guidelines are from https://conventionalcommits.org/, some tweaks are our own (100 char limit, list of scopes defined by monorepo packages). We do mention https://conventionalcommits.org/ at the beginning of Commit message guidelines section. I feel that's good enough.
docs/DEVELOPING.md
Outdated
- Update [MONOREPO.md](../MONOREPO.md) - insert a new table row to describe the new package, please keep the rows sorted by package name. | ||
- Update [docs/apidocs.html](./docs/apidocs.html) - add a link to API docs for this new package. | ||
- Update [CODEOWNERS](./CODEOWNERS) - add a new entry listing the primary maintainers (owners) of the new package | ||
- Ask somebody from the IBM team (e.g. [@bajtos](https://github.com/bajtos), [@raymondfeng](https://github.com/raymondfeng) or [@kjdelisle](https://github.com/kjdelisle)) to enlist the new package on http://apidocs.strongloop.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.
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.
Will fix.
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.
Just one more change on the apidoc.loopback.io URL instead of the strongloop.com one.
Makes sense, will fix.
That's a good question, indeed.
@raymondfeng Thoughts?
I agree. Let's leave it out of scope of this pull request though.
@raymondfeng what's your opinion here? May I keep alphabetical order, or are you asking me to preserve your sorting and split the table into multiple ones? |
5dd5eb0
to
2a6b090
Compare
I have rebased the patch on top of the latest master and addressed your review comments. @raymondfeng @richardpringle LGTY now? |
2a6b090
to
916ede6
Compare
This reverts commit c8af3f6.
* docs: integrate MONOREPO and DEVELOPING guides * docs: add "new package checklist" * docs: sort entries in MONOREPO.md * docs: more README cleanup * docs: add content from the wiki page "Contributing"
This is a follow-up for #977 and #1005 and requires #1013 to be landed first.
Checklist
npm test
passes on your machinepackages/cli
were updatedpackages/example-*
were updated