Skip to content

Conversation

@jwooning
Copy link
Contributor

@jwooning jwooning commented Apr 4, 2018

The packages folder currently contains all the examples, the example packages don't contain any
loopback logic, therefore it makes sense to move the examples to a separate folder. All example
packages are thus moved from packages/example-{name} to examples/{name}.

Note that not all tests succeed, because the cli examples generator tries to fetch the examples from the changed examples structure, which will fail because the master is not yet restructured.

Fix #1218

Checklist

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in packages/example-* were updated

Copy link
Contributor

@virkt25 virkt25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! I've taken a quick look, will have a more thorough look later today / tomorrow. A few minor changes are needed.

.gitignore Outdated
packages/*/package
packages/_sandbox
.sandbox
examples/*/*.tgz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if **/*.tgz works (and same for below) instead of having the same thing repeat for packages and examples.

.prettierignore Outdated
packages/*/dist
packages/*/api-docs
packages/cli/generators/*/templates
examples/*/dist
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does **/*/dist work?

CODEOWNERS Outdated
packages/rest/* @bajtos @raymondfeng
packages/testlab/* @bajtos
examples/todo/* @bajtos @virkt25
examples/example-hello-world/* @b-admike
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The folder name should be updated to examples/hello-world

{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../build/config/tsconfig.common.json",
"extends": "../../packages/build/config/tsconfig.common.json",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change this to ./node_modules/@loopback/build/config/tsconfig.common.json

Copy link
Contributor

@shimks shimks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great PR! I've pointed out one small point that has to do with consistency, but everything else looks great!

.gitignore Outdated
packages/*/package
packages/_sandbox
.sandbox
examples/*/dist*
Copy link
Contributor

@shimks shimks Apr 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be consistent and use **/dist* as well. Same thing with examples/*/package

Copy link
Contributor

@shimks shimks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. I would wait on a review from @miroslav or @raymondfeng before merging

Copy link
Contributor

@virkt25 virkt25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last change (and a rebase) is needed and I think this should be good to land! Thanks for your effort :)

.prettierignore Outdated
packages/*/dist
packages/*/api-docs
packages/cli/generators/*/templates
**/*/dist
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just a **/dist should work.

the packages folder currently contains all the examples, the example packages don't contain any
loopback logic, therefore it makes sense to move the examples to a separate folder. All example
packages are thus moved from `packages/example-{name}` to `examples/{name}`.
@virkt25
Copy link
Contributor

virkt25 commented Apr 6, 2018

Merging as it's a trivial PR but a big one and don't want to have it require another rebase.

@virkt25 virkt25 merged commit 10dac0b into loopbackio:master Apr 6, 2018
@virkt25
Copy link
Contributor

virkt25 commented Apr 6, 2018

@jwooning Thanks for your contribution!! Your PR has landed 🎉

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.

4 participants