import { Aurelia } from 'aurelia-framework'; import { PLATFORM } from 'aurelia-pal'; import environment from './environment'; import 'bootstrap'; import { logLevel } from 'aurelia-logging'; import * as Bluebird from 'bluebird'; Bluebird.config({ longStackTraces: false, warnings: { wForgottenReturn: false } }); export function configure(aurelia: Aurelia) { aurelia.use .standardConfiguration() .plugin(PLATFORM.moduleName('aurelia-validation')) .feature(PLATFORM.moduleName('aurelia-json-schema-form/index'), options => { options.logLevel = logLevel.debug; }) .globalResources([PLATFORM.moduleName('random-number-generator')]); // Uncomment the line below to enable animation. // aurelia.use.plugin(PLATFORM.moduleName('aurelia-animator-css')); // if the css animator is enabled, add swap-order="after" to all router-view elements // Anyone wanting to use HTMLImports to load views, will need to install the following plugin. // aurelia.use.plugin(PLATFORM.moduleName("aurelia-html-import-template-loader")); if (environment.debug) { aurelia.use.developmentLogging(); } // if (environment.testing) { // aurelia.use.plugin(PLATFORM.moduleName('aurelia-testing')); // } aurelia.start().then(() => aurelia.setRoot(PLATFORM.moduleName('app'))); }