Conversation
| The [loopback-next](https://github.com/strongloop/loopback-next) repository uses [lerna](https://lernajs.io/) to manage multiple packages for LoopBack 4. | ||
|
|
||
| ## Packages | ||
| <!-- PLEASE KEEP THE TABLE ROWS SORTED ALPHABETICALLY BY PACKAGE NAME--> |
There was a problem hiding this comment.
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.
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:
|
| The [loopback-next](https://github.com/strongloop/loopback-next) repository uses [lerna](https://lernajs.io/) to manage multiple packages for LoopBack 4. | ||
|
|
||
| ## Packages | ||
| <!-- PLEASE KEEP THE TABLE ROWS SORTED ALPHABETICALLY BY PACKAGE NAME--> |
There was a problem hiding this comment.
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.
| ``` | ||
|
|
||
| > Make sure you set `"target": "es6"` in your compiler options in your | ||
| > Make sure you set `"target": "es2017"` in your compiler options in your |
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.). |
| 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.
and save everybody's time and energy
👍
docs/DEVELOPING.md
Outdated
|
|
||
| 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.
but, conventions vary here.
I would remove this. While it may be true, I don't think it should be documented.
| $ 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.
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.
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.
dhmlau
left a comment
There was a problem hiding this comment.
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 testpasses on your machinepackages/cliwere updatedpackages/example-*were updated