在Ember-CLI中升级Ember
我刚刚创建了一个新的 Ember-CLI 应用程序(v0.1.12),并注意到引用的Ember版本是v1.8.1(bower.json)。我想获得最近发布的1.10 我的项目的好。我需要采取哪些步骤? (我是Ember的新手,Ember-CLI,Bower& NPM。)
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.)
为了顺利升级到1.10和HTMLBars,Ember-CLI用户应该$ 0.1 $ b更新到0.1.12之前或之后的版本,然后删除他们的
应用程序的Handlebars依赖关系。
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)删除您的 bower_components
文件夹
2)运行 bower install --save ember#beta
获取最新的Ember测试版(您可以指定版本,如果你想要一个特定的版本)
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)运行 bower install
重新安装保升依赖关系
3) run bower install
to reinstall your bower dependencies
4)卸载handlebars: npm uninstall - -save-dev broccoli-ember-hbs-template-compiler
4) Uninstall handlebars: npm uninstall --save-dev broccoli-ember-hbs-template-compiler
5)Inst所有HTMLbars: npm install --save-dev ember-cli-htmlbars
5) Install HTMLbars: npm install --save-dev ember-cli-htmlbars