Move Ember Admin to use es6 modules

- adds required dependencies to package.json
 and to bower.json
- added required Grunt tasks to transpile and
 concat ember admin files
This commit is contained in:
Harry Wolff 2014-02-26 23:45:45 -05:00
parent 7d4c394ad1
commit 2296a4fae1
3 changed files with 15 additions and 8 deletions

8
app.js
View File

@ -1,6 +1,8 @@
/*global Ember */
var App = Ember.Application.create({
import Resolver from 'ember/resolver';
var App = Ember.Application.extend({
/**
* These are debugging flags, they are useful during development
*/
@ -9,6 +11,8 @@ var App = Ember.Application.create({
LOG_TRANSITIONS: true,
LOG_TRANSITIONS_INTERNAL: true,
LOG_VIEW_LOOKUPS: true,
rootElement: '#ember-app' // tells ember to inject this app into element with selector #ember-app
modulePrefix: 'ghost', // TODO: loaded via config
Resolver: Resolver['default']
});
export default App;

View File

@ -1,9 +1,11 @@
/*global App */
/*global Ember */
App.Router.map(function () {
// ensure we don't share routes between all Router instances
var Router = Ember.Router.extend();
Router.map(function () {
'use strict';
this.resource('posts');
this.resource('post', {path: 'post/:id'}, function () {
this.route('edit');
});
});
export default Router;

1
templates/index.hbs Executable file
View File

@ -0,0 +1 @@
<em>This is the index route</em>