Skip to content
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 documentation #57

Merged
merged 1 commit into from
May 13, 2016
Merged

Improve documentation #57

merged 1 commit into from
May 13, 2016

Conversation

elwayman02
Copy link
Contributor

@elwayman02 elwayman02 commented May 11, 2016

Rendered

The goal of this change is three-fold:

  • Demonstrate how to utilize the module imports
  • Link to the shims file as a reference of all supported shims (documenting them in the README would be too verbose and mostly a copy/paste from the code itself)
  • Explain why developers might want to use the shims over other common patterns

import injectService from 'ember-service/inject';
```

Where the shim exports an object namespace, use ES6 [destructuring assignment](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment)
Copy link
Member

Choose a reason for hiding this comment

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

This isn't destructuring, it is importing a named export (destructuring assignment involves an assignment).

Spec here: http://www.ecma-international.org/ecma-262/6.0/#sec-destructuring-assignment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, thanks! Brain conflating a lot of things today. :(

@rwjblue
Copy link
Member

rwjblue commented May 11, 2016

I left a nit-pick, but otherwise this looks good. Can you include some verbiage that indicates that the goal of this particular library is to be replaced once ember itself is an NPM package / addon?

The goal of this change is three-fold:
- Demonstrate how to utilize the module imports
- Link to the shims file as a reference of all supported shims (documenting them in the README would be too verbose and mostly a copy/paste from the code itself)
- Explain why developers might want to use the shims over other common patterns
@elwayman02
Copy link
Contributor Author

@rwjblue updated, thanks for the feedback!

@rwjblue
Copy link
Member

rwjblue commented May 13, 2016

LGTM

@rwjblue rwjblue merged commit 1e4781a into ember-cli:master May 13, 2016
@rwjblue
Copy link
Member

rwjblue commented May 13, 2016

Thank you!

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

Successfully merging this pull request may close these issues.

None yet

3 participants