mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
ddcb441268
Closes #3161 - Add a config.js file for the client which is used to configure Ember.Application during runtime. The correct version of config.js is copied into place by grunt via the copy:(dev|prod) task from either config-dev.js or config-prod.js. - Serve minified and production versions of libraries where applicable including handlebars-runtime and ember-prod. - Bundle third party libraries into vendor.min.js. - Bundle Ghost's Ember app and templates into ghost.min.js - Remove all fixture data and code from the client.
20 lines
464 B
JavaScript
Executable File
20 lines
464 B
JavaScript
Executable File
import Resolver from 'ember/resolver';
|
|
import loadInitializers from 'ember/load-initializers';
|
|
import 'ghost/utils/link-view';
|
|
import 'ghost/utils/text-field';
|
|
import configureApp from 'ghost/config';
|
|
|
|
Ember.MODEL_FACTORY_INJECTIONS = true;
|
|
|
|
var App = Ember.Application.extend({
|
|
modulePrefix: 'ghost',
|
|
Resolver: Resolver['default']
|
|
});
|
|
|
|
// Runtime configuration of Ember.Application
|
|
configureApp(App);
|
|
|
|
loadInitializers(App, 'ghost');
|
|
|
|
export default App;
|