Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading Ember inside of Ember-CLI

I've just created a new Ember-CLI app (v0.1.12), and noticed that the referenced version of Ember is v1.8.1 (bower.json). I'd like to get the recently released 1.10 goodness in my project. What steps do I need to take to do this? (I'm new to Ember, Ember-CLI, Bower & NPM.)

like image 962
Feckmore Avatar asked Feb 20 '26 07:02

Feckmore


2 Answers

As per the release notes for Ember 1.10.0

To smoothly upgrade to 1.10 and HTMLBars, Ember-CLI users should update to a version at or after 0.1.12 and then remove their application's Handlebars dependency.

You can do this by following the steps below:

1) Delete your bower_components folder

2) run bower install --save ember#beta to get the latest beta of Ember (you can specify the version if you want a specific version)

3) run bower install to reinstall your bower dependencies

4) Uninstall handlebars: npm uninstall --save-dev broccoli-ember-hbs-template-compiler

5) Install HTMLbars: npm install --save-dev ember-cli-htmlbars

like image 189
Oren Hizkiya Avatar answered Feb 23 '26 07:02

Oren Hizkiya


In addition to the steps listed by Oren, you will want to make this change to your Brocfile.js so that you can remove the Handlebars dependency from your bower.json file as well:

var app = new EmberApp({
  vendorFiles: {
    'handlebars.js': null
  }
});

Source

like image 33
Dhaulagiri Avatar answered Feb 23 '26 05:02

Dhaulagiri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!