npm ember-cli 0.2.0-beta.1
v0.2.0-beta.1

latest releases: 5.7.0-beta.0, 5.6.0, 5.6.0-beta.0...
9 years ago

Intro

This release updates the way that addons can be nested, and contains some breaking changes in non-default addon configurations. For the majority of apps, the update from 0.1.15 to 0.2.0 is non-breaking and should not cause significant concern.

Prior versions of Ember CLI maintained a flat addon structure, so that all addons (of any depth) would be added to the consuming
application. This has led to many issues, like the inability to use preprocessors (i.e. ember-cli-htmlbars, ember-cli-sass, etc)
in nested addons.

For addon creators, make sure to update to use the setupPreprocessorRegistry hook (documented here) if you need to add a preprocessor to the registry. You can review the update process in ember-cli-htmlbars#38 or ember-cli-coffeescript#60 which show how to maintain support for both 0.1.x and 0.2.0 in an addon.

Upgrading

In order to ensure a safe and easy upgrade please follow the following steps (from within your project directory):

Setup

  1. npm uninstall -g ember-cli -- Remove old global ember-cli
  2. npm cache clean -- Clear NPM cache
  3. bower cache clean -- Clear Bower cache
  4. npm install -g ember-cli@0.2.0-beta.1 -- Install new global ember-cli

Project Update

  1. rm -rf node_modules bower_components dist tmp -- Delete temporary development folders.
  2. npm install --save-dev ember-cli@0.2.0-beta.1 -- Update project's package.json to use latest version.
  3. npm install -- Reinstall NPM dependencies.
  4. bower install -- Reinstall bower dependencies.
  5. ember init -- This runs the new project blueprint on your projects directory. Please follow the prompts, and review all changes (tip: you can see a diff by pressing d). The most common source of upgrade pain is missing changes in this step.

Changes

The following changes are required if you are upgrading from the previous
version:

  • Users
    • ember new diff
    • Upgrade your project's ember-cli version - docs
    • The 6to5 project has been renamed to Babel. See the blog post for more details.
    • The default blueprint has been updated to work with Ember 1.10 by default.
    • Update the following packages in your package.json:
      • Remove broccoli-ember-hbs-template-compiler. Uninstall with npm uninstall --save-dev broccoli-ember-hbs-template-compiler.
      • Remove ember-cli-6to5. Uninstall with npm uninstall --save-dev ember-cli-6to5.
      • Add ember-cli-babel. Install with npm install --save-dev ember-cli-babel.
      • Add ember-cli-htmlbars. Install with npm install --save-dev ember-cli-htmlbars.
      • Updated ember-cli-qunit to 0.3.8. Install with npm install --save-dev ember-cli-qunit@0.3.8.
      • Updated ember-data to 1.0.0-beta.15. Install with npm install --save-dev ember-data@1.0.0-beta.15.
    • Update the following packages in your bower.json:
      • Removed handlebars. Uninstall with bower uninstall --save handlebars.
      • Updated ember to 1.10.0. Install with bower install --save ember#1.10.0.
      • Updated ember-data to 1.0.0-beta.15. Install with bower install --save ember-data#1.0.0-beta.15.
      • Updated ember-cli-test-loader to 0.1.3. Install with bower install --save ember-cli-test-loader#0.1.3.
  • Addon Developers
    • ember addon diff
    • Usage of the included hook to add items to the registry will need to be refactored to use the newly added setupPreprocessorRegistry hook instead.
  • Core Contributors
    • No changes required

Community Contributions

Thank you to all who took the time to contribute!

Don't miss a new ember-cli release

NewReleases is sending notifications on new releases.