I want to use simple auth without Ember-cli. Up until version 0.8.0, simple auth was distributed as a bower addon, and could be imported with the AMD module inside the bower package (ember-simple-auth/simple-auth.amd.js). Since I want to use the newest version of Ember and Ember Data, I also need to update the simple auth version to version 1.0.1.
How do I use the new version without Ember-cli?
You cannot use Ember Simple Auth without Ember CLI anymore.
Related
I am new to Ember and have started to build an addon. Currently, I want to build the addon and implement it in an application inside its dummy application (path: tests/dummy/app).
My addon has a component which I want available in the dummy project.
How can we include the addon inside the dummy project ?
(I am using ember version: 1.13.0)
In your addon, if you define addon/components/my-component.js and you re-export it in app/components/my-component.js, then you should be able to use it normally in the dummy app like {{my-component}}.
Note that the ember-cli component generator handles the file locations for you. e.g running $ ember g component my-component would yield the files I mentioned above.
Also, you addon project should also be generated using ember-cli using $ ember addon addon-name.
I would like to update an addon to the long term support release channel using ember-cli. How do I do this?
I know I can put a different version of ember and ember-data in de bower.json and package.json files. But will updates of ember-cli not interfere with these older versions?
Also what is the lts release of ember-data?
The current LTS is 2.4, so you need to open your bower.json and in the ember line, put the following:
"ember": "~2.4.0"
This should install the latest 2.4 at the time of the install.
But will updates of ember-cli not interfere with these older versions?
Ember CLI is mostly decoupled from Ember itself, so it can be used with almost any version. When ember.js is converted into an addon (like what happened with ember-data), you'll need to mind the update instructions for it, so you continue to use the bower package instead of the npm addon.
At the moment Ember Data does not have an LTS.
What is the recommended way to upgrade Ember from version 1.13.8 to version 2.3?
I have seen an example on this link How to upgrade the Ember version in an Ember CLI application?.
Is that the only thing that I have to change?
If you want to fully upgrade your application and dependencies, I recommend following the instructions on the ember-cli release post.
If you only want to upgrade Ember.js itself, the version in bower.js is indeed the only thing you need to change.
I've been asked to use ember again, at it's been a while since i left it;
I was reading that, like in the past, ember-cli is the recommended way to start a new ember project;
But my concern is: the official stable version of ember-cli uses an outdated ember version; on the other hand the ember-cli with the latest ember (2.22) is a beta;
can someone share his experience in order to understand the preferred way to deal with ember projects right now?
You can use ember-cli 1.13.13 with Ember 2.2. Just after typing ember new, edit your bower.json and package.json appropriately and run bower install and npm install.
I have an Ember project (driven by Ember CLI ver 0.0.46) and I added latest Ember Simple Auth (ver 0.6.6) following the instruction on the https://github.com/simplabs/ember-simple-auth.
However I don't get the Ember Simple Auth initializer which is supposed to be generated when I build the project.
Any ideas why this happens or suggestions how to manually generate it are welcome.