this project has been deprecated in-favour of the ember-cli project:
First, run npm install -g ember-cli
to install Ember CLI.
Now, on top of your existing EAK project, run ember init
. Ember CLI
will then migrate your project, showing you a diff of its overrides,
and letting you edit them, as it goes along.
config
directory.app.import()
.The Ember CLI Migrator can help you migrate your files to the standard ember-cli structure, while preserving your Git history. This tool can help you get 90% of the way there when working with EAK.
You now have to explicitly import Ember and Ember Data. Add import Ember from "ember
and
import DS from "ember-data"
anywhere you declared a route, controller, model, and so on.
To work with the API stub again, run ember generate server. This command generates a server directory for your mocks and proxies where you can then migrate your routes accordingly.
You may also want to look into Ember CLI Rest API Blueprint which generates DS.RESTAdapter compatible express routes for a given Model.
Support for custom environments like staging is currently still in progress, see Ember CLI PR #1520
The Express server has been exposed and now lives under this directory. You can now customize it any way you want, from enhancing the static file server, to simply using it as an API stub. You may even develop it further and turn it into a full-stack solution.
You can remove the Gruntfile and tasks folder since we won't be needing them anymore.
For now, you can check the app blueprint to see what other files you no longer need.
Ember CLI now picks up your app namespace. Change the import to reference the name of your project.
If you never changed your application namespace from the default
appkit
then running ember init
will break any import statements
you already have
Index Route doesn't exist
You may need to refresh your dependencies. Run rm -rf npm_modules && npm install && npm cache clean && bower install
Tests
Import tests/helpers/start-app
into each acceptance test file.
import startApp from 'your-app/tests/helpers/start-app
resolver
and startApp
still live in test/helpers/
but
module-for
is now its own package.
If you were using ember-testing-httpRespond
This has now been replaced by Pretender.
Import it and its dependencies in your Brocfile by using
app.import()
Ember App Kit aims to be the foundation for ambitious web applications built with Ember. It's been replaced by an executable ember-cli which dramatically improves buildtimes (via broccoli) and provides sane-upgrade paths, feel free to check that project out. We intend to provide a sensible upgrade path.
This project has been extracted out of several real world applications and is actively used. Currently it covers the basics fairly well, but much still needs to be done. As we learn and as more contributors join in it continues to evolve. If you encounter any bugs, clunky features or missing documentation, just submit an issue and we'll respond ASAP.
At the very least, it helps setup your Ember.js applications directory structure.
We welcome ideas and experiments.
index.html
for easy reloading of pushState router appsSome ideas in ember-app-kit originated in work by Yapp Labs (@yapplabs) with McGraw-Hill Education Labs (@mhelabs) on yapplabs/glazier. Thanks to Yapp and MHE for supporting the Ember ecosystem!
Copyright 2013 by Stefan Penner and Ember App Kit Contributors, and licensed under the MIT License. See included LICENSE file for details.