2017-04-07 12:15:22 +07:00
|
|
|
import store from 'store.js';
|
2017-02-20 12:56:15 -06:00
|
|
|
|
2017-05-23 11:41:26 +04:00
|
|
|
const env = ENV;
|
2017-04-07 12:15:22 +07:00
|
|
|
const config = require(`./config/${env}`);
|
|
|
|
const logs = [];
|
|
|
|
const app = {
|
|
|
|
env: env,
|
|
|
|
config: config,
|
|
|
|
store: store,
|
|
|
|
logs: logs,
|
|
|
|
log: function(message) {
|
|
|
|
console.log(message);
|
|
|
|
logs.push(message);
|
2016-04-09 20:00:56 -04:00
|
|
|
}
|
2017-04-07 12:15:22 +07:00
|
|
|
}
|
2016-11-22 14:19:08 -06:00
|
|
|
|
2017-04-07 12:15:22 +07:00
|
|
|
global.app = app;
|
2017-05-03 23:44:08 -04:00
|
|
|
module.exports = app;
|