Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.

QUEST | Convert code samples to RFC #176 imports #2004

Merged
merged 18 commits into from
Oct 10, 2017
Merged

QUEST | Convert code samples to RFC #176 imports #2004

merged 18 commits into from
Oct 10, 2017

Conversation

locks
Copy link
Contributor

@locks locks commented Jul 22, 2017

RFC #176 introduces new modular imports so that you can import only the parts of Ember that you require inside that file.

We need your help converting all of the code samples in the Guides to the new style of imports!

Contributing

  1. Pick a section from the list below. If a section is already taken and you would like to help, please contact the person it was assigned to directly and coordinate with them.
  2. Using the correspondence tables in ember-rfc176-data:
    2.1. Update import statements in code sample to the new imports.
    2.2. Update links to API docs. For example, change the link text from Ember.Component to Component.
  3. Make a PR against the new-imports branch, which is this one.

FAQ

I can't find the class/method in the correspondence table

Check if the API is private or public.

If it is private, the Guide should be changed to not use it.
You can post here for help, or in your own PR.

If it is public, there might have been a lapse.
Comment in ember-cli/ember-rfc176-data#12 and we'll help you sort it out!

Should I rebase? Why do I have to target the new-imports branch?

We will take care of rebasing and otherwise updating this branch as works continues.
We need to do this until 2.16 is released because we have Continuous Integration on the master branch, so any PRs merged get deployed as soon as CI finishes building.

Guides section list

  • Getting Started
  • Tutorial
  • The Object Model
  • Routing
  • Templates
  • Components
  • Controllers
  • Models
  • Application Concerns
  • Testing
  • Ember Inspector
  • Addons and Dependencies
  • Configuring Ember.js
  • Contributing to Ember.js
  • Glossary

@locks locks changed the title QUEST QUEST | Convert code samples to RFC #176 imports Jul 22, 2017
@locks locks force-pushed the new-imports branch 4 times, most recently from 33832b7 to 5cb7340 Compare July 27, 2017 15:33
@locks locks added this to the 2.16 milestone Aug 3, 2017
@locks locks force-pushed the new-imports branch 2 times, most recently from 512e866 to ee4010a Compare August 16, 2017 16:39
@acorncom
Copy link
Contributor

Marking testing as completed, thanks for your help @aureliosaraiva !

baz: {foo: 'BLAMMO', bar: 'BLAZORZ'},

something: Ember.computed('baz.foo', 'baz.bar', function() {
something: Embercomputed('baz.foo', 'baz.bar', function() {
Copy link

Choose a reason for hiding this comment

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

One of the Embercomputed conversions ^ got missed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks :)

@locks locks merged commit 059d710 into master Oct 10, 2017
@locks locks deleted the new-imports branch October 10, 2017 05:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants