Config -- added base config object for env-independent settings

This commit is contained in:
sthzg
2015-11-09 19:25:20 +01:00
parent b55b6f9216
commit 6d886d8bbc
8 changed files with 28 additions and 6 deletions
+1
View File
@@ -1,3 +1,4 @@
import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './Main';
+6
View File
@@ -0,0 +1,6 @@
'use strict';
// Settings configured here will be merged into the final config object.
export default {
}
+5 -2
View File
@@ -1,7 +1,10 @@
'use strict';
const config = {
import baseConfig from './base';
let config = {
appEnv: 'dev' // feel free to remove the appEnv property here
};
export default config;
export default Object.freeze(Object.assign({}, baseConfig, config));
+6 -2
View File
@@ -1,7 +1,11 @@
'use strict';
const config = {
import baseConfig from './base';
let config = {
appEnv: 'dist' // feel free to remove the appEnv property here
};
export default config;
export default Object.freeze(Object.assign({}, baseConfig, config));
+6 -2
View File
@@ -1,7 +1,11 @@
'use strict';
const config = {
import baseConfig from './base';
let config = {
appEnv: 'test' // don't remove the appEnv property here
};
export default config;
export default Object.freeze(Object.assign(baseConfig, config));